SPI_LSB_FIRST
st->spi_hw_has_lsb_first = spi->mode & SPI_LSB_FIRST;
ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST;
FIELD_PREP(CFG_B_L_ENDIAN, !!(spi->mode & SPI_LSB_FIRST)) |
ctlr->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST |
(device->mode & SPI_LSB_FIRST ? APPLE_SPI_CFG_LSB_FIRST : 0));
ctlr->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST;
ctlr->mode_bits = SPI_LSB_FIRST;
if (spi->mode & SPI_LSB_FIRST)
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST;
SPI_LSB_FIRST |
SPI_LSB_FIRST | SPI_3WIRE;
mpi_cfg.s.lsbfirst = (mode & SPI_LSB_FIRST) ? 1 : 0;
dspi->bitbang.flags = SPI_NO_CS | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_WORD;
if (spi->mode & SPI_LSB_FIRST)
if (spi->mode & SPI_LSB_FIRST)
ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST;
if (!(m->spi->mode & SPI_LSB_FIRST) && first->bits_per_word != 8 &&
espi->swab = spi->mode & SPI_LSB_FIRST && trans->bits_per_word > 8;
if (!(spi->mode & SPI_LSB_FIRST))
SPI_LSB_FIRST | SPI_LOOP;
| SPI_LSB_FIRST | SPI_LOOP;
!(spi->mode & SPI_LSB_FIRST));
if (m->spi->mode & SPI_LSB_FIRST && t->bits_per_word > 8)
if (!(spi->mode & SPI_LSB_FIRST))
bool msb_first = (mode & SPI_LSB_FIRST) ? false : true;
if (mode_changed & SPI_LSB_FIRST)
if (unlikely(spi->mode & SPI_LSB_FIRST))
if (unlikely(spi->mode & SPI_LSB_FIRST))
if (unlikely(spi->mode & SPI_LSB_FIRST))
if (unlikely(spi->mode & SPI_LSB_FIRST))
if (unlikely(spi->mode & SPI_LSB_FIRST))
if (unlikely(spi->mode & SPI_LSB_FIRST))
if (unlikely(spi->mode & SPI_LSB_FIRST))
if (unlikely(spi->mode & SPI_LSB_FIRST))
SPI_CS_HIGH | SPI_LSB_FIRST | SPI_MOSI_IDLE_LOW |
if (spi->mode & SPI_LSB_FIRST)
if (spi->mode & SPI_LSB_FIRST)
ctlr->mode_bits = SPI_MODE_3 | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH;
if (mode & SPI_LSB_FIRST)
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_CS_HIGH |
if ((spi->mode & SPI_LSB_FIRST) == 0) {
host->mode_bits = SPI_CS_HIGH | SPI_3WIRE | SPI_LSB_FIRST;
if (spi->mode & SPI_LSB_FIRST)
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST;
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST;
if (spi->mode & SPI_LSB_FIRST)
if (spi->mode & SPI_LSB_FIRST)
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST;
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST;
if (spi->mode & SPI_LSB_FIRST) {
if (spi->mode & SPI_LSB_FIRST)
host->mode_bits = SPI_LSB_FIRST;
if (spi->mode & SPI_LSB_FIRST)
host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST | SPI_CS_WORD;
if (spi->mode & SPI_LSB_FIRST)
mode = spi->mode & (SPI_MODE_3 | SPI_LSB_FIRST);
if (mode & SPI_LSB_FIRST)
if (spi->mode & SPI_LSB_FIRST) {
host->mode_bits |= SPI_LSB_FIRST;
if (spi->mode & SPI_LSB_FIRST)
SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST;
if (spi->mode & SPI_LSB_FIRST)
ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_LSB_FIRST;
ctlr->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST |
if (spi->mode & SPI_LSB_FIRST)
conf32 |= FIELD_PREP(RSPI_SPCMD_LSBF, !!(spi->mode & SPI_LSB_FIRST));
SPI_LSB_FIRST | SPI_LOOP;
!!(spi->mode & SPI_LSB_FIRST));
controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_CS_HIGH;
if (mode & SPI_LSB_FIRST)
host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST;
ctlr->mode_bits |= SPI_LSB_FIRST | SPI_3WIRE;
spi->mode & SPI_LSB_FIRST, cs_high);
if (device->mode & SPI_LSB_FIRST)
| SPI_CS_HIGH | SPI_LSB_FIRST
if (spi->mode & SPI_LSB_FIRST)
ctlr->mode_bits |= SPI_LSB_FIRST;
if (spi->mode & SPI_LSB_FIRST)
| SPI_MODE_0 | SPI_MODE_1 | SPI_LSB_FIRST;
#define MODEBITS (SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH)
if ((spi->mode & SPI_LSB_FIRST) == 0)
if (spi_dev->mode & SPI_LSB_FIRST)
!!(spi_dev->mode & SPI_LSB_FIRST),
ctrl->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST |
if (spi->mode & SPI_LSB_FIRST)
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST;
if (spi->mode & SPI_LSB_FIRST)
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST |
if (s->mode & SPI_LSB_FIRST)
ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST;
if (mode & SPI_LSB_FIRST)
if (bpw == 8 && !(xfer->len % 4) && !(spi->mode & SPI_LSB_FIRST))
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST |
if (spi->mode & SPI_LSB_FIRST)
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST;
if (!(spi->mode & SPI_LSB_FIRST))
if (spi->mode & SPI_LSB_FIRST)
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST;
static_assert(VIRTIO_SPI_MODE_LSB_FIRST == SPI_LSB_FIRST,
(SPI_MODE_X_MASK | SPI_CS_HIGH | SPI_LSB_FIRST)
ctrl->mode_bits |= SPI_LSB_FIRST;
if (spi->mode & SPI_LSB_FIRST)
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP |
if (spi->mode & SPI_LSB_FIRST)
spi->mode |= SPI_LSB_FIRST;
lookup->mode |= SPI_LSB_FIRST;
(spi->mode & SPI_LSB_FIRST) ? "lsb, " : "",
retval = put_user((spi->mode & SPI_LSB_FIRST) ? 1 : 0,
spi->mode |= SPI_LSB_FIRST;
spi->mode &= ~SPI_LSB_FIRST;
| SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \
(__entry->mode & SPI_LSB_FIRST) ? "lsb, " : "",
mode |= SPI_LSB_FIRST;