Lines Matching refs:operation
62 if (config->operation & SPI_HALF_DUPLEX) { in spi_config()
67 if (SPI_WORD_SIZE_GET(config->operation) > dev_config->data_width) { in spi_config()
72 if (config->operation & SPI_CS_ACTIVE_HIGH) { in spi_config()
77 if (config->operation & SPI_LOCK_ON) { in spi_config()
83 (config->operation & SPI_LINES_MASK) != SPI_LINES_SINGLE) { in spi_config()
88 if (config->operation & SPI_TRANSFER_LSB) { in spi_config()
93 if (config->operation & (SPI_MODE_CPOL | SPI_MODE_CPHA)) { in spi_config()
98 if (config->operation & SPI_OP_MODE_SLAVE) { in spi_config()
104 if (!litex_read8(dev_config->loopback_addr) != !(config->operation & SPI_MODE_LOOP)) { in spi_config()
105 litex_write8(((config->operation & SPI_MODE_LOOP) ? 0x1 : 0x0), in spi_config()
109 *control = (uint16_t) (SPI_WORD_SIZE_GET(config->operation) in spi_config()