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,
264 int (*probe)(struct i2c_client *client, const struct i2c_device_id *id);
265 int (*remove)(struct i2c_client *client);
270 int (*probe_new)(struct i2c_client *client);
273 void (*shutdown)(struct i2c_client *client);
282 void (*alert)(struct i2c_client *client, enum i2c_alert_protocol protocol,
288 int (*command)(struct i2c_client *client, unsigned int cmd, void *arg);
294 int (*detect)(struct i2c_client *client, struct i2c_board_info *info);
321 struct i2c_client { struct
346 #define to_i2c_client(d) container_of(d, struct i2c_client, dev) argument
350 const struct i2c_client *client);
352 static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj) in kobj_to_i2c_client()
358 static inline void *i2c_get_clientdata(const struct i2c_client *client) in i2c_get_clientdata()
363 static inline void i2c_set_clientdata(struct i2c_client *client, void *data) in i2c_set_clientdata()
379 int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb);
380 int i2c_slave_unregister(struct i2c_client *client);
383 static inline int i2c_slave_event(struct i2c_client *client, in i2c_slave_event()
451 struct i2c_client *
460 struct i2c_client *
469 struct i2c_client *
472 struct i2c_client *
475 struct i2c_client *
476 i2c_new_ancillary_device(struct i2c_client *client,
480 void i2c_unregister_device(struct i2c_client *client);
482 struct i2c_client *i2c_verify_client(struct device *dev);
484 static inline struct i2c_client *i2c_verify_client(struct device *dev) in i2c_verify_client()
558 int (*reg_slave)(struct i2c_client *client);
559 int (*unreg_slave)(struct i2c_client *client);
875 static inline bool i2c_client_has_driver(struct i2c_client *client) in i2c_client_has_driver()
959 struct i2c_client *of_find_i2c_device_by_node(struct device_node *node);
969 struct i2c_client *client);
976 static inline struct i2c_client *of_find_i2c_device_by_node(struct device_node *node) in of_find_i2c_device_by_node()
993 struct i2c_client *client) in i2c_of_match_device()
1015 struct i2c_client *i2c_acpi_new_device(struct device *dev, int index,
1032 static inline struct i2c_client *i2c_acpi_new_device(struct device *dev, in i2c_acpi_new_device()