Lines Matching refs:i2c_client
45 struct i2c_client;
50 typedef int (*i2c_slave_cb_t)(struct i2c_client *, enum i2c_slave_event, u8 *);
62 extern int i2c_master_send(const struct i2c_client *client, const char *buf,
64 extern int i2c_master_recv(const struct i2c_client *client, char *buf,
87 extern s32 i2c_smbus_read_byte(const struct i2c_client *client);
88 extern s32 i2c_smbus_write_byte(const struct i2c_client *client, u8 value);
89 extern s32 i2c_smbus_read_byte_data(const struct i2c_client *client,
91 extern s32 i2c_smbus_write_byte_data(const struct i2c_client *client,
93 extern s32 i2c_smbus_read_word_data(const struct i2c_client *client,
95 extern s32 i2c_smbus_write_word_data(const struct i2c_client *client,
99 i2c_smbus_read_word_swapped(const struct i2c_client *client, u8 command) in i2c_smbus_read_word_swapped()
107 i2c_smbus_write_word_swapped(const struct i2c_client *client, in i2c_smbus_write_word_swapped()
114 extern s32 i2c_smbus_read_block_data(const struct i2c_client *client,
116 extern s32 i2c_smbus_write_block_data(const struct i2c_client *client,
119 extern s32 i2c_smbus_read_i2c_block_data(const struct i2c_client *client,
121 extern s32 i2c_smbus_write_i2c_block_data(const struct i2c_client *client,
170 int (*probe)(struct i2c_client *, const struct i2c_device_id *);
171 int (*remove)(struct i2c_client *);
174 void (*shutdown)(struct i2c_client *);
181 void (*alert)(struct i2c_client *, unsigned int data);
186 int (*command)(struct i2c_client *client, unsigned int cmd, void *arg);
192 int (*detect)(struct i2c_client *, struct i2c_board_info *);
217 struct i2c_client { struct
231 #define to_i2c_client(d) container_of(d, struct i2c_client, dev) argument
233 extern struct i2c_client *i2c_verify_client(struct device *dev);
236 static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj) in kobj_to_i2c_client()
242 static inline void *i2c_get_clientdata(const struct i2c_client *dev) in i2c_get_clientdata()
247 static inline void i2c_set_clientdata(struct i2c_client *dev, void *data) in i2c_set_clientdata()
263 extern int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb);
264 extern int i2c_slave_unregister(struct i2c_client *client);
266 static inline int i2c_slave_event(struct i2c_client *client, in i2c_slave_event()
325 extern struct i2c_client *
334 extern struct i2c_client *
346 extern struct i2c_client *
349 extern void i2c_unregister_device(struct i2c_client *);
408 int (*reg_slave)(struct i2c_client *client);
409 int (*unreg_slave)(struct i2c_client *client);
590 extern struct i2c_client *i2c_use_client(struct i2c_client *client);
591 extern void i2c_release_client(struct i2c_client *client);
636 extern struct i2c_client *of_find_i2c_device_by_node(struct device_node *node);
643 static inline struct i2c_client *of_find_i2c_device_by_node(struct device_node *node) in of_find_i2c_device_by_node()