Lines Matching refs:mode

80                 if (config->mode & RT_SPI_MSB) { bit = tx_data & (0x1 << (7 - i)); }  in spi_xfer_4line_data8()
90 if (config->mode & RT_SPI_MSB) in spi_xfer_4line_data8()
110 if (!(config->mode & RT_SPI_CPHA) || (size != 0) || (i < 7)) in spi_xfer_4line_data8()
155 if (config->mode & RT_SPI_MSB) { bit = tx_data & (0x1 << (15 - i)); } in spi_xfer_4line_data16()
165 if (config->mode & RT_SPI_MSB) in spi_xfer_4line_data16()
185 if (!(config->mode & RT_SPI_CPHA) || (size != 0) || (i < 15)) in spi_xfer_4line_data16()
243 if (config->mode & RT_SPI_MSB) { bit = tx_data & (0x1 << (7 - i)); } in spi_xfer_3line_data8()
255 if (!(config->mode & RT_SPI_CPHA) || (size != 0) || (i < 7)) in spi_xfer_3line_data8()
271 if (config->mode & RT_SPI_MSB) in spi_xfer_3line_data8()
291 if (!(config->mode & RT_SPI_CPHA) || (size != 0) || (i < 7)) in spi_xfer_3line_data8()
356 if (config->mode & RT_SPI_MSB) { bit = tx_data & (0x1 << (15 - i)); } in spi_xfer_3line_data16()
368 if (!(config->mode & RT_SPI_CPHA) || (size != 0) || (i < 15)) in spi_xfer_3line_data16()
384 if (config->mode & RT_SPI_MSB) in spi_xfer_3line_data16()
404 if (!(config->mode & RT_SPI_CPHA) || (size != 0) || (i < 15)) in spi_xfer_3line_data16()
440 if (configuration->mode & RT_SPI_SLAVE) in spi_bit_configure()
445 if (configuration->mode & RT_SPI_CPOL) in spi_bit_configure()
495 if (message->cs_take && !(device->config.mode & RT_SPI_NO_CS) && (cs_pin != PIN_NONE)) in spi_bit_xfer()
498 if (device->config.mode & RT_SPI_CS_HIGH) in spi_bit_xfer()
510 if ((config->mode & RT_SPI_CPHA)) in spi_bit_xfer()
515 if (config->mode & RT_SPI_3WIRE) in spi_bit_xfer()
538 if (message->cs_release && !(device->config.mode & RT_SPI_NO_CS) && (cs_pin != PIN_NONE)) in spi_bit_xfer()
541 if ((config->mode & RT_SPI_CPOL) && !GET_SCLK(ops)) in spi_bit_xfer()
547 if (device->config.mode & RT_SPI_CS_HIGH) in spi_bit_xfer()
575 obj->config.mode = RT_SPI_MASTER | RT_SPI_MSB | RT_SPI_MODE_0; in rt_spi_bit_add_bus()