Lines Matching refs:spi_slave
24 struct spi_slave { struct
31 static struct spi_slave spi_slave; variable
40 if ((tx && (spi_slave.mode & (SPI_TX_DUAL | SPI_TX_QUAD)) != in spi_mem_check_buswidth_req()
42 (!tx && (spi_slave.mode & (SPI_RX_DUAL | SPI_RX_QUAD)) != in spi_mem_check_buswidth_req()
49 if ((tx && (spi_slave.mode & SPI_TX_QUAD) != 0U) || in spi_mem_check_buswidth_req()
50 (!tx && (spi_slave.mode & SPI_RX_QUAD) != 0U)) { in spi_mem_check_buswidth_req()
89 const struct spi_bus_ops *ops = spi_slave.ops; in spi_mem_set_speed_mode()
92 ret = ops->set_speed(spi_slave.max_hz); in spi_mem_set_speed_mode()
98 ret = ops->set_mode(spi_slave.mode); in spi_mem_set_speed_mode()
150 const struct spi_bus_ops *ops = spi_slave.ops; in spi_mem_exec_op()
163 ret = ops->claim_bus(spi_slave.cs); in spi_mem_exec_op()
216 spi_slave.cs = fdt32_to_cpu(*cuint); in spi_mem_init_slave()
219 spi_slave.max_hz = SPI_MEM_DEFAULT_SPEED_HZ; in spi_mem_init_slave()
223 spi_slave.max_hz = fdt32_to_cpu(*cuint); in spi_mem_init_slave()
283 spi_slave.mode = mode; in spi_mem_init_slave()
284 spi_slave.ops = ops; in spi_mem_init_slave()