Lines Matching refs:spi_device
133 struct spi_device { struct
176 static inline struct spi_device *to_spi_device(struct device *dev) in to_spi_device() argument
178 return dev ? container_of(dev, struct spi_device, dev) : NULL; in to_spi_device()
182 static inline struct spi_device *spi_dev_get(struct spi_device *spi) in spi_dev_get()
187 static inline void spi_dev_put(struct spi_device *spi) in spi_dev_put()
194 static inline void *spi_get_ctldata(struct spi_device *spi) in spi_get_ctldata()
199 static inline void spi_set_ctldata(struct spi_device *spi, void *state) in spi_set_ctldata()
206 static inline void spi_set_drvdata(struct spi_device *spi, void *data) in spi_set_drvdata()
211 static inline void *spi_get_drvdata(struct spi_device *spi) in spi_get_drvdata()
246 int (*probe)(struct spi_device *spi);
247 int (*remove)(struct spi_device *spi);
248 void (*shutdown)(struct spi_device *spi);
441 int (*setup)(struct spi_device *spi);
462 int (*transfer)(struct spi_device *spi,
466 void (*cleanup)(struct spi_device *spi);
476 struct spi_device *spi,
515 void (*set_cs)(struct spi_device *spi, bool enable);
516 int (*transfer_one)(struct spi_master *master, struct spi_device *spi,
735 struct spi_device *spi;
830 extern int spi_setup(struct spi_device *spi);
831 extern int spi_async(struct spi_device *spi, struct spi_message *message);
832 extern int spi_async_locked(struct spi_device *spi,
842 extern int spi_sync(struct spi_device *spi, struct spi_message *message);
843 extern int spi_sync_locked(struct spi_device *spi, struct spi_message *message);
860 spi_write(struct spi_device *spi, const void *buf, size_t len) in spi_write()
886 spi_read(struct spi_device *spi, void *buf, size_t len) in spi_read()
913 spi_sync_transfer(struct spi_device *spi, struct spi_transfer *xfers, in spi_sync_transfer()
924 extern int spi_write_then_read(struct spi_device *spi,
939 static inline ssize_t spi_w8r8(struct spi_device *spi, u8 cmd) in spi_w8r8()
964 static inline ssize_t spi_w8r16(struct spi_device *spi, u8 cmd) in spi_w8r16()
989 static inline ssize_t spi_w8r16be(struct spi_device *spi, u8 cmd) in spi_w8r16be()
1109 extern struct spi_device *
1113 spi_add_device(struct spi_device *spi);
1115 extern struct spi_device *
1119 spi_unregister_device(struct spi_device *spi) in spi_unregister_device()
1126 spi_get_device_id(const struct spi_device *sdev);