Lines Matching refs:spi_device
180 struct spi_device { struct
240 static inline struct spi_device *to_spi_device(const struct device *dev) in to_spi_device() argument
242 return dev ? container_of(dev, struct spi_device, dev) : NULL; in to_spi_device()
246 static inline struct spi_device *spi_dev_get(struct spi_device *spi) in spi_dev_get()
251 static inline void spi_dev_put(struct spi_device *spi) in spi_dev_put()
258 static inline void *spi_get_ctldata(const struct spi_device *spi) in spi_get_ctldata()
263 static inline void spi_set_ctldata(struct spi_device *spi, void *state) in spi_set_ctldata()
270 static inline void spi_set_drvdata(struct spi_device *spi, void *data) in spi_set_drvdata()
275 static inline void *spi_get_drvdata(const struct spi_device *spi) in spi_get_drvdata()
280 static inline u8 spi_get_chipselect(const struct spi_device *spi, u8 idx) in spi_get_chipselect()
285 static inline void spi_set_chipselect(struct spi_device *spi, u8 idx, u8 chipselect) in spi_set_chipselect()
290 static inline struct gpio_desc *spi_get_csgpiod(const struct spi_device *spi, u8 idx) in spi_get_csgpiod()
295 static inline void spi_set_csgpiod(struct spi_device *spi, u8 idx, struct gpio_desc *csgpiod) in spi_set_csgpiod()
327 int (*probe)(struct spi_device *spi);
328 void (*remove)(struct spi_device *spi);
329 void (*shutdown)(struct spi_device *spi);
351 extern struct spi_device *spi_new_ancillary_device(struct spi_device *spi, u8 chip_select);
584 size_t (*max_transfer_size)(struct spi_device *spi);
585 size_t (*max_message_size)(struct spi_device *spi);
607 int (*setup)(struct spi_device *spi);
617 int (*set_cs_timing)(struct spi_device *spi);
639 int (*transfer)(struct spi_device *spi,
643 void (*cleanup)(struct spi_device *spi);
653 struct spi_device *spi,
702 void (*set_cs)(struct spi_device *spi, bool enable);
703 int (*transfer_one)(struct spi_controller *ctlr, struct spi_device *spi,
870 extern struct spi_device *acpi_spi_device_alloc(struct spi_controller *ctlr,
1109 struct spi_device *spi;
1224 extern int spi_setup(struct spi_device *spi);
1225 extern int spi_async(struct spi_device *spi, struct spi_message *message);
1226 extern int spi_slave_abort(struct spi_device *spi);
1227 extern int spi_target_abort(struct spi_device *spi);
1230 spi_max_message_size(struct spi_device *spi) in spi_max_message_size()
1240 spi_max_transfer_size(struct spi_device *spi) in spi_max_transfer_size()
1263 static inline bool spi_is_bpw_supported(struct spi_device *spi, u32 bpw) in spi_is_bpw_supported()
1347 extern int spi_sync(struct spi_device *spi, struct spi_message *message);
1348 extern int spi_sync_locked(struct spi_device *spi, struct spi_message *message);
1366 spi_sync_transfer(struct spi_device *spi, struct spi_transfer *xfers, in spi_sync_transfer()
1389 spi_write(struct spi_device *spi, const void *buf, size_t len) in spi_write()
1412 spi_read(struct spi_device *spi, void *buf, size_t len) in spi_read()
1423 extern int spi_write_then_read(struct spi_device *spi,
1438 static inline ssize_t spi_w8r8(struct spi_device *spi, u8 cmd) in spi_w8r8()
1463 static inline ssize_t spi_w8r16(struct spi_device *spi, u8 cmd) in spi_w8r16()
1488 static inline ssize_t spi_w8r16be(struct spi_device *spi, u8 cmd) in spi_w8r16be()
1614 extern struct spi_device *
1618 spi_add_device(struct spi_device *spi);
1620 extern struct spi_device *
1623 extern void spi_unregister_device(struct spi_device *spi);
1626 spi_get_device_id(const struct spi_device *sdev);
1629 spi_get_device_match_data(const struct spi_device *sdev);