Lines Matching refs:davinci_spi_slave
120 struct davinci_spi_slave { struct
138 static inline u32 davinci_spi_xfer_data(struct davinci_spi_slave *ds, u32 data) in davinci_spi_xfer_data() argument
152 static int davinci_spi_read(struct davinci_spi_slave *ds, unsigned int len, in davinci_spi_read()
182 static int davinci_spi_write(struct davinci_spi_slave *ds, unsigned int len, in davinci_spi_write()
215 static int davinci_spi_read_write(struct davinci_spi_slave *ds, unsigned in davinci_spi_read_write()
244 static int __davinci_spi_claim_bus(struct davinci_spi_slave *ds, int cs) in __davinci_spi_claim_bus()
295 static int __davinci_spi_release_bus(struct davinci_spi_slave *ds) in __davinci_spi_release_bus()
303 static int __davinci_spi_xfer(struct davinci_spi_slave *ds, in __davinci_spi_xfer()
347 static inline struct davinci_spi_slave *to_davinci_spi(struct spi_slave *slave) in to_davinci_spi()
349 return container_of(slave, struct davinci_spi_slave, slave); in to_davinci_spi()
398 struct davinci_spi_slave *ds; in spi_setup_slave()
403 ds = spi_alloc_slave(struct davinci_spi_slave, bus, cs); in spi_setup_slave()
433 struct davinci_spi_slave *ds = to_davinci_spi(slave); in spi_free_slave()
441 struct davinci_spi_slave *ds = to_davinci_spi(slave); in spi_xfer()
450 struct davinci_spi_slave *ds = to_davinci_spi(slave); in spi_claim_bus()
462 struct davinci_spi_slave *ds = to_davinci_spi(slave); in spi_release_bus()
470 struct davinci_spi_slave *ds = dev_get_priv(bus); in davinci_spi_set_speed()
483 struct davinci_spi_slave *ds = dev_get_priv(bus); in davinci_spi_set_mode()
496 struct davinci_spi_slave *ds = dev_get_priv(bus); in davinci_spi_claim_bus()
509 struct davinci_spi_slave *ds = dev_get_priv(dev->parent); in davinci_spi_release_bus()
521 struct davinci_spi_slave *ds = dev_get_priv(bus); in davinci_spi_xfer()
540 struct davinci_spi_slave *ds = dev_get_priv(bus); in davinci_ofdata_to_platadata()
575 .priv_auto_alloc_size = sizeof(struct davinci_spi_slave),