Lines Matching refs:slave
27 struct spi_slave *slave; in spi_setup_slave() local
32 slave = spi_alloc_slave_base(bus, cs); in spi_setup_slave()
33 if (!slave) in spi_setup_slave()
41 return slave; in spi_setup_slave()
44 void spi_free_slave(struct spi_slave *slave) in spi_free_slave() argument
46 free(slave); in spi_free_slave()
65 int spi_claim_bus(struct spi_slave *slave) in spi_claim_bus() argument
70 void spi_release_bus(struct spi_slave *slave) in spi_release_bus() argument
75 int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout, in spi_xfer() argument
85 slave->bus, slave->cs, *(uint *) dout, *(uint *) din, bitlen); in spi_xfer()
88 spi_cs_activate(slave); in spi_xfer()
163 spi_cs_deactivate(slave); in spi_xfer()