Lines Matching refs:spi_device
72 struct spi_device { struct
112 static inline struct spi_device *to_spi_device(struct device *dev) in to_spi_device() argument
114 return dev ? container_of(dev, struct spi_device, dev) : NULL; in to_spi_device()
118 static inline struct spi_device *spi_dev_get(struct spi_device *spi) in spi_dev_get()
123 static inline void spi_dev_put(struct spi_device *spi) in spi_dev_put()
130 static inline void *spi_get_ctldata(struct spi_device *spi) in spi_get_ctldata()
135 static inline void spi_set_ctldata(struct spi_device *spi, void *state) in spi_set_ctldata()
142 static inline void spi_set_drvdata(struct spi_device *spi, void *data) in spi_set_drvdata()
147 static inline void *spi_get_drvdata(struct spi_device *spi) in spi_get_drvdata()
182 int (*probe)(struct spi_device *spi);
183 int (*remove)(struct spi_device *spi);
184 void (*shutdown)(struct spi_device *spi);
372 int (*setup)(struct spi_device *spi);
393 int (*transfer)(struct spi_device *spi,
397 void (*cleanup)(struct spi_device *spi);
407 struct spi_device *spi,
446 void (*set_cs)(struct spi_device *spi, bool enable);
447 int (*transfer_one)(struct spi_master *master, struct spi_device *spi,
663 struct spi_device *spi;
758 extern int spi_setup(struct spi_device *spi);
759 extern int spi_async(struct spi_device *spi, struct spi_message *message);
760 extern int spi_async_locked(struct spi_device *spi,
770 extern int spi_sync(struct spi_device *spi, struct spi_message *message);
771 extern int spi_sync_locked(struct spi_device *spi, struct spi_message *message);
786 spi_write(struct spi_device *spi, const void *buf, size_t len) in spi_write()
810 spi_read(struct spi_device *spi, void *buf, size_t len) in spi_read()
837 spi_sync_transfer(struct spi_device *spi, struct spi_transfer *xfers, in spi_sync_transfer()
848 extern int spi_write_then_read(struct spi_device *spi,
862 static inline ssize_t spi_w8r8(struct spi_device *spi, u8 cmd) in spi_w8r8()
886 static inline ssize_t spi_w8r16(struct spi_device *spi, u8 cmd) in spi_w8r16()
911 static inline ssize_t spi_w8r16be(struct spi_device *spi, u8 cmd) in spi_w8r16be()
1031 extern struct spi_device *
1035 spi_add_device(struct spi_device *spi);
1037 extern struct spi_device *
1041 spi_unregister_device(struct spi_device *spi) in spi_unregister_device()
1048 spi_get_device_id(const struct spi_device *sdev);