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,
125 i2c_smbus_read_i2c_block_data_or_emulated(const struct i2c_client *client,
173 int (*probe)(struct i2c_client *, const struct i2c_device_id *);
174 int (*remove)(struct i2c_client *);
177 void (*shutdown)(struct i2c_client *);
184 void (*alert)(struct i2c_client *, unsigned int data);
189 int (*command)(struct i2c_client *client, unsigned int cmd, void *arg);
195 int (*detect)(struct i2c_client *, struct i2c_board_info *);
220 struct i2c_client { struct
234 #define to_i2c_client(d) container_of(d, struct i2c_client, dev) argument
236 extern struct i2c_client *i2c_verify_client(struct device *dev);
239 static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj) in kobj_to_i2c_client()
245 static inline void *i2c_get_clientdata(const struct i2c_client *dev) in i2c_get_clientdata()
250 static inline void i2c_set_clientdata(struct i2c_client *dev, void *data) in i2c_set_clientdata()
266 extern int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb);
267 extern int i2c_slave_unregister(struct i2c_client *client);
269 static inline int i2c_slave_event(struct i2c_client *client, in i2c_slave_event()
328 extern struct i2c_client *
337 extern struct i2c_client *
349 extern struct i2c_client *
352 extern void i2c_unregister_device(struct i2c_client *);
411 int (*reg_slave)(struct i2c_client *client);
412 int (*unreg_slave)(struct i2c_client *client);
594 extern struct i2c_client *i2c_use_client(struct i2c_client *client);
595 extern void i2c_release_client(struct i2c_client *client);
640 extern struct i2c_client *of_find_i2c_device_by_node(struct device_node *node);
649 static inline struct i2c_client *of_find_i2c_device_by_node(struct device_node *node) in of_find_i2c_device_by_node()