Lines Matching full:slave
26 struct spi_slave slave; member
30 static inline struct soft_spi_slave *to_soft_spi(struct spi_slave *slave) in to_soft_spi() argument
32 return container_of(slave, struct soft_spi_slave, slave); in to_soft_spi()
55 return &ss->slave; in spi_setup_slave()
58 void spi_free_slave(struct spi_slave *slave) in spi_free_slave() argument
60 struct soft_spi_slave *ss = to_soft_spi(slave); in spi_free_slave()
65 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus() argument
70 struct soft_spi_slave *ss = to_soft_spi(slave); in spi_claim_bus()
74 * this slave. in spi_claim_bus()
84 void spi_release_bus(struct spi_slave *slave) in spi_release_bus() argument
101 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, in spi_xfer() argument
107 struct soft_spi_slave *ss = to_soft_spi(slave); in spi_xfer()
116 PRINTD("spi_xfer: slave %u:%u dout %08X din %08X bitlen %u\n", in spi_xfer()
117 slave->bus, slave->cs, *(uint *)txd, *(uint *)rxd, bitlen); in spi_xfer()
120 spi_cs_activate(slave); in spi_xfer()
165 spi_cs_deactivate(slave); in spi_xfer()