Lines Matching refs:i2c_client
34 struct i2c_client;
40 typedef int (*i2c_slave_cb_t)(struct i2c_client *client,
65 int i2c_transfer_buffer_flags(const struct i2c_client *client,
76 static inline int i2c_master_recv(const struct i2c_client *client, in i2c_master_recv()
91 static inline int i2c_master_recv_dmasafe(const struct i2c_client *client, in i2c_master_recv_dmasafe()
106 static inline int i2c_master_send(const struct i2c_client *client, in i2c_master_send()
121 static inline int i2c_master_send_dmasafe(const struct i2c_client *client, in i2c_master_send_dmasafe()
152 s32 i2c_smbus_read_byte(const struct i2c_client *client);
153 s32 i2c_smbus_write_byte(const struct i2c_client *client, u8 value);
154 s32 i2c_smbus_read_byte_data(const struct i2c_client *client, u8 command);
155 s32 i2c_smbus_write_byte_data(const struct i2c_client *client,
157 s32 i2c_smbus_read_word_data(const struct i2c_client *client, u8 command);
158 s32 i2c_smbus_write_word_data(const struct i2c_client *client,
162 i2c_smbus_read_word_swapped(const struct i2c_client *client, u8 command) in i2c_smbus_read_word_swapped()
170 i2c_smbus_write_word_swapped(const struct i2c_client *client, in i2c_smbus_write_word_swapped()
177 s32 i2c_smbus_read_block_data(const struct i2c_client *client,
179 s32 i2c_smbus_write_block_data(const struct i2c_client *client,
182 s32 i2c_smbus_read_i2c_block_data(const struct i2c_client *client,
184 s32 i2c_smbus_write_i2c_block_data(const struct i2c_client *client,
186 s32 i2c_smbus_read_i2c_block_data_or_emulated(const struct i2c_client *client,
189 int i2c_get_device_id(const struct i2c_client *client,
191 const struct i2c_device_id *i2c_client_get_device_id(const struct i2c_client *client);
274 int (*probe)(struct i2c_client *client);
275 void (*remove)(struct i2c_client *client);
279 void (*shutdown)(struct i2c_client *client);
288 void (*alert)(struct i2c_client *client, enum i2c_alert_protocol protocol,
294 int (*command)(struct i2c_client *client, unsigned int cmd, void *arg);
300 int (*detect)(struct i2c_client *client, struct i2c_board_info *info);
331 struct i2c_client { struct
357 #define to_i2c_client(d) container_of(d, struct i2c_client, dev) argument
361 const struct i2c_client *client);
363 const void *i2c_get_match_data(const struct i2c_client *client);
365 static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj) in kobj_to_i2c_client()
371 static inline void *i2c_get_clientdata(const struct i2c_client *client) in i2c_get_clientdata()
376 static inline void i2c_set_clientdata(struct i2c_client *client, void *data) in i2c_set_clientdata()
391 int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb);
392 int i2c_slave_unregister(struct i2c_client *client);
393 int i2c_slave_event(struct i2c_client *client,
460 struct i2c_client *
469 struct i2c_client *
478 struct i2c_client *
481 struct i2c_client *
484 struct i2c_client *
485 i2c_new_ancillary_device(struct i2c_client *client,
489 void i2c_unregister_device(struct i2c_client *client);
491 struct i2c_client *i2c_verify_client(struct device *dev);
493 static inline struct i2c_client *i2c_verify_client(struct device *dev) in i2c_verify_client()
577 int (*reg_target)(struct i2c_client *client);
578 int (*reg_slave)(struct i2c_client *client);
581 int (*unreg_target)(struct i2c_client *client);
582 int (*unreg_slave)(struct i2c_client *client);
902 static inline bool i2c_client_has_driver(struct i2c_client *client) in i2c_client_has_driver()
998 struct i2c_client *i2c_find_device_by_fwnode(struct fwnode_handle *fwnode);
1008 static inline struct i2c_client *
1030 static inline struct i2c_client *of_find_i2c_device_by_node(struct device_node *node) in of_find_i2c_device_by_node()
1052 static inline struct i2c_client *of_find_i2c_device_by_node(struct device_node *node) in of_find_i2c_device_by_node()
1084 struct i2c_client *i2c_acpi_new_device_by_fwnode(struct fwnode_handle *fwnode,
1103 static inline struct i2c_client *i2c_acpi_new_device_by_fwnode( in i2c_acpi_new_device_by_fwnode()
1119 static inline struct i2c_client *i2c_acpi_new_device(struct device *dev, in i2c_acpi_new_device()