Lines Matching refs:spi_device
160 struct spi_device { struct
214 static inline struct spi_device *to_spi_device(struct device *dev) in to_spi_device() argument
216 return dev ? container_of(dev, struct spi_device, dev) : NULL; in to_spi_device()
220 static inline struct spi_device *spi_dev_get(struct spi_device *spi) in spi_dev_get()
225 static inline void spi_dev_put(struct spi_device *spi) in spi_dev_put()
232 static inline void *spi_get_ctldata(struct spi_device *spi) in spi_get_ctldata()
237 static inline void spi_set_ctldata(struct spi_device *spi, void *state) in spi_set_ctldata()
244 static inline void spi_set_drvdata(struct spi_device *spi, void *data) in spi_set_drvdata()
249 static inline void *spi_get_drvdata(struct spi_device *spi) in spi_get_drvdata()
284 int (*probe)(struct spi_device *spi);
285 int (*remove)(struct spi_device *spi);
286 void (*shutdown)(struct spi_device *spi);
527 size_t (*max_transfer_size)(struct spi_device *spi);
528 size_t (*max_message_size)(struct spi_device *spi);
546 int (*setup)(struct spi_device *spi);
556 int (*set_cs_timing)(struct spi_device *spi, struct spi_delay *setup,
578 int (*transfer)(struct spi_device *spi,
582 void (*cleanup)(struct spi_device *spi);
592 struct spi_device *spi,
634 void (*set_cs)(struct spi_device *spi, bool enable);
635 int (*transfer_one)(struct spi_controller *ctlr, struct spi_device *spi,
802 extern void *spi_res_alloc(struct spi_device *spi,
1020 struct spi_device *spi;
1140 extern int spi_set_cs_timing(struct spi_device *spi,
1145 extern int spi_setup(struct spi_device *spi);
1146 extern int spi_async(struct spi_device *spi, struct spi_message *message);
1147 extern int spi_async_locked(struct spi_device *spi,
1149 extern int spi_slave_abort(struct spi_device *spi);
1152 spi_max_message_size(struct spi_device *spi) in spi_max_message_size()
1162 spi_max_transfer_size(struct spi_device *spi) in spi_max_transfer_size()
1185 static inline bool spi_is_bpw_supported(struct spi_device *spi, u32 bpw) in spi_is_bpw_supported()
1256 extern int spi_sync(struct spi_device *spi, struct spi_message *message);
1257 extern int spi_sync_locked(struct spi_device *spi, struct spi_message *message);
1275 spi_sync_transfer(struct spi_device *spi, struct spi_transfer *xfers, in spi_sync_transfer()
1298 spi_write(struct spi_device *spi, const void *buf, size_t len) in spi_write()
1321 spi_read(struct spi_device *spi, void *buf, size_t len) in spi_read()
1332 extern int spi_write_then_read(struct spi_device *spi,
1347 static inline ssize_t spi_w8r8(struct spi_device *spi, u8 cmd) in spi_w8r8()
1372 static inline ssize_t spi_w8r16(struct spi_device *spi, u8 cmd) in spi_w8r16()
1397 static inline ssize_t spi_w8r16be(struct spi_device *spi, u8 cmd) in spi_w8r16be()
1521 extern struct spi_device *
1525 spi_add_device(struct spi_device *spi);
1527 extern struct spi_device *
1530 extern void spi_unregister_device(struct spi_device *spi);
1533 spi_get_device_id(const struct spi_device *sdev);
1545 extern struct spi_device *
1550 static inline struct spi_device *