Lines Matching refs:spi_device

142 struct spi_device {  struct
186 static inline struct spi_device *to_spi_device(struct device *dev) in to_spi_device() argument
188 return dev ? container_of(dev, struct spi_device, dev) : NULL; in to_spi_device()
192 static inline struct spi_device *spi_dev_get(struct spi_device *spi) in spi_dev_get()
197 static inline void spi_dev_put(struct spi_device *spi) in spi_dev_put()
204 static inline void *spi_get_ctldata(struct spi_device *spi) in spi_get_ctldata()
209 static inline void spi_set_ctldata(struct spi_device *spi, void *state) in spi_set_ctldata()
216 static inline void spi_set_drvdata(struct spi_device *spi, void *data) in spi_set_drvdata()
221 static inline void *spi_get_drvdata(struct spi_device *spi) in spi_get_drvdata()
256 int (*probe)(struct spi_device *spi);
257 int (*remove)(struct spi_device *spi);
258 void (*shutdown)(struct spi_device *spi);
460 size_t (*max_transfer_size)(struct spi_device *spi);
461 size_t (*max_message_size)(struct spi_device *spi);
479 int (*setup)(struct spi_device *spi);
500 int (*transfer)(struct spi_device *spi,
504 void (*cleanup)(struct spi_device *spi);
514 struct spi_device *spi,
554 void (*set_cs)(struct spi_device *spi, bool enable);
555 int (*transfer_one)(struct spi_controller *ctlr, struct spi_device *spi,
667 extern void *spi_res_alloc(struct spi_device *spi,
833 struct spi_device *spi;
937 extern int spi_setup(struct spi_device *spi);
938 extern int spi_async(struct spi_device *spi, struct spi_message *message);
939 extern int spi_async_locked(struct spi_device *spi,
941 extern int spi_slave_abort(struct spi_device *spi);
944 spi_max_message_size(struct spi_device *spi) in spi_max_message_size()
954 spi_max_transfer_size(struct spi_device *spi) in spi_max_transfer_size()
1028 extern int spi_sync(struct spi_device *spi, struct spi_message *message);
1029 extern int spi_sync_locked(struct spi_device *spi, struct spi_message *message);
1047 spi_sync_transfer(struct spi_device *spi, struct spi_transfer *xfers, in spi_sync_transfer()
1070 spi_write(struct spi_device *spi, const void *buf, size_t len) in spi_write()
1093 spi_read(struct spi_device *spi, void *buf, size_t len) in spi_read()
1104 extern int spi_write_then_read(struct spi_device *spi,
1119 static inline ssize_t spi_w8r8(struct spi_device *spi, u8 cmd) in spi_w8r8()
1144 static inline ssize_t spi_w8r16(struct spi_device *spi, u8 cmd) in spi_w8r16()
1169 static inline ssize_t spi_w8r16be(struct spi_device *spi, u8 cmd) in spi_w8r16be()
1292 extern struct spi_device *
1296 spi_add_device(struct spi_device *spi);
1298 extern struct spi_device *
1301 extern void spi_unregister_device(struct spi_device *spi);
1304 spi_get_device_id(const struct spi_device *sdev);