Lines Matching refs:spi_device

70 struct spi_device {  struct
105 static inline struct spi_device *to_spi_device(struct device *dev) in to_spi_device() argument
107 return dev ? container_of(dev, struct spi_device, dev) : NULL; in to_spi_device()
111 static inline struct spi_device *spi_dev_get(struct spi_device *spi) in spi_dev_get()
116 static inline void spi_dev_put(struct spi_device *spi) in spi_dev_put()
123 static inline void *spi_get_ctldata(struct spi_device *spi) in spi_get_ctldata()
128 static inline void spi_set_ctldata(struct spi_device *spi, void *state) in spi_set_ctldata()
135 static inline void spi_set_drvdata(struct spi_device *spi, void *data) in spi_set_drvdata()
140 static inline void *spi_get_drvdata(struct spi_device *spi) in spi_get_drvdata()
178 int (*probe)(struct spi_device *spi);
179 int (*remove)(struct spi_device *spi);
180 void (*shutdown)(struct spi_device *spi);
181 int (*suspend)(struct spi_device *spi, pm_message_t mesg);
182 int (*resume)(struct spi_device *spi);
317 int (*setup)(struct spi_device *spi);
338 int (*transfer)(struct spi_device *spi,
342 void (*cleanup)(struct spi_device *spi);
544 struct spi_device *spi;
618 extern int spi_setup(struct spi_device *spi);
619 extern int spi_async(struct spi_device *spi, struct spi_message *message);
620 extern int spi_async_locked(struct spi_device *spi,
630 extern int spi_sync(struct spi_device *spi, struct spi_message *message);
631 extern int spi_sync_locked(struct spi_device *spi, struct spi_message *message);
646 spi_write(struct spi_device *spi, const void *buf, size_t len) in spi_write()
670 spi_read(struct spi_device *spi, void *buf, size_t len) in spi_read()
684 extern int spi_write_then_read(struct spi_device *spi,
698 static inline ssize_t spi_w8r8(struct spi_device *spi, u8 cmd) in spi_w8r8()
722 static inline ssize_t spi_w8r16(struct spi_device *spi, u8 cmd) in spi_w8r16()
840 extern struct spi_device *
844 spi_add_device(struct spi_device *spi);
846 extern struct spi_device *
850 spi_unregister_device(struct spi_device *spi) in spi_unregister_device()
857 spi_get_device_id(const struct spi_device *sdev);