Lines Matching refs:i2c_client

48 struct i2c_client;
54 typedef int (*i2c_slave_cb_t)(struct i2c_client *, enum i2c_slave_event, u8 *);
67 extern int i2c_transfer_buffer_flags(const struct i2c_client *client,
78 static inline int i2c_master_recv(const struct i2c_client *client, in i2c_master_recv()
93 static inline int i2c_master_recv_dmasafe(const struct i2c_client *client, in i2c_master_recv_dmasafe()
108 static inline int i2c_master_send(const struct i2c_client *client, in i2c_master_send()
123 static inline int i2c_master_send_dmasafe(const struct i2c_client *client, in i2c_master_send_dmasafe()
155 extern s32 i2c_smbus_read_byte(const struct i2c_client *client);
156 extern s32 i2c_smbus_write_byte(const struct i2c_client *client, u8 value);
157 extern s32 i2c_smbus_read_byte_data(const struct i2c_client *client,
159 extern s32 i2c_smbus_write_byte_data(const struct i2c_client *client,
161 extern s32 i2c_smbus_read_word_data(const struct i2c_client *client,
163 extern s32 i2c_smbus_write_word_data(const struct i2c_client *client,
167 i2c_smbus_read_word_swapped(const struct i2c_client *client, u8 command) in i2c_smbus_read_word_swapped()
175 i2c_smbus_write_word_swapped(const struct i2c_client *client, in i2c_smbus_write_word_swapped()
182 extern s32 i2c_smbus_read_block_data(const struct i2c_client *client,
184 extern s32 i2c_smbus_write_block_data(const struct i2c_client *client,
187 extern s32 i2c_smbus_read_i2c_block_data(const struct i2c_client *client,
189 extern s32 i2c_smbus_write_i2c_block_data(const struct i2c_client *client,
193 i2c_smbus_read_i2c_block_data_or_emulated(const struct i2c_client *client,
195 int i2c_get_device_id(const struct i2c_client *client,
271 int (*probe)(struct i2c_client *, const struct i2c_device_id *);
272 int (*remove)(struct i2c_client *);
277 int (*probe_new)(struct i2c_client *);
280 void (*shutdown)(struct i2c_client *);
289 void (*alert)(struct i2c_client *, enum i2c_alert_protocol protocol,
295 int (*command)(struct i2c_client *client, unsigned int cmd, void *arg);
301 int (*detect)(struct i2c_client *, struct i2c_board_info *);
328 struct i2c_client { struct
342 #define to_i2c_client(d) container_of(d, struct i2c_client, dev) argument
344 extern struct i2c_client *i2c_verify_client(struct device *dev);
347 const struct i2c_client *client);
349 static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj) in kobj_to_i2c_client()
355 static inline void *i2c_get_clientdata(const struct i2c_client *dev) in i2c_get_clientdata()
360 static inline void i2c_set_clientdata(struct i2c_client *dev, void *data) in i2c_set_clientdata()
376 extern int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb);
377 extern int i2c_slave_unregister(struct i2c_client *client);
380 static inline int i2c_slave_event(struct i2c_client *client, in i2c_slave_event()
447 extern struct i2c_client *
456 extern struct i2c_client *
468 extern struct i2c_client *
471 extern struct i2c_client *
472 i2c_new_secondary_device(struct i2c_client *client,
476 extern void i2c_unregister_device(struct i2c_client *);
535 int (*reg_slave)(struct i2c_client *client);
536 int (*unreg_slave)(struct i2c_client *client);
806 extern struct i2c_client *i2c_use_client(struct i2c_client *client);
807 extern void i2c_release_client(struct i2c_client *client);
888 extern struct i2c_client *of_find_i2c_device_by_node(struct device_node *node);
898 struct i2c_client *client);
905 static inline struct i2c_client *of_find_i2c_device_by_node(struct device_node *node) in of_find_i2c_device_by_node()
922 struct i2c_client *client) in i2c_of_match_device()
938 struct i2c_client *i2c_acpi_new_device(struct device *dev, int index,
945 static inline struct i2c_client *i2c_acpi_new_device(struct device *dev, in i2c_acpi_new_device()