Lines Matching refs:client
39 typedef int (*i2c_slave_cb_t)(struct i2c_client *client,
53 extern int i2c_transfer_buffer_flags(const struct i2c_client *client,
64 static inline int i2c_master_recv(const struct i2c_client *client, in i2c_master_recv() argument
67 return i2c_transfer_buffer_flags(client, buf, count, I2C_M_RD); in i2c_master_recv()
79 static inline int i2c_master_recv_dmasafe(const struct i2c_client *client, in i2c_master_recv_dmasafe() argument
82 return i2c_transfer_buffer_flags(client, buf, count, in i2c_master_recv_dmasafe()
94 static inline int i2c_master_send(const struct i2c_client *client, in i2c_master_send() argument
97 return i2c_transfer_buffer_flags(client, (char *)buf, count, 0); in i2c_master_send()
109 static inline int i2c_master_send_dmasafe(const struct i2c_client *client, in i2c_master_send_dmasafe() argument
112 return i2c_transfer_buffer_flags(client, (char *)buf, count, in i2c_master_send_dmasafe()
141 extern s32 i2c_smbus_read_byte(const struct i2c_client *client);
142 extern s32 i2c_smbus_write_byte(const struct i2c_client *client, u8 value);
143 extern s32 i2c_smbus_read_byte_data(const struct i2c_client *client,
145 extern s32 i2c_smbus_write_byte_data(const struct i2c_client *client,
147 extern s32 i2c_smbus_read_word_data(const struct i2c_client *client,
149 extern s32 i2c_smbus_write_word_data(const struct i2c_client *client,
153 i2c_smbus_read_word_swapped(const struct i2c_client *client, u8 command) in i2c_smbus_read_word_swapped() argument
155 s32 value = i2c_smbus_read_word_data(client, command); in i2c_smbus_read_word_swapped()
161 i2c_smbus_write_word_swapped(const struct i2c_client *client, in i2c_smbus_write_word_swapped() argument
164 return i2c_smbus_write_word_data(client, command, swab16(value)); in i2c_smbus_write_word_swapped()
168 extern s32 i2c_smbus_read_block_data(const struct i2c_client *client,
170 extern s32 i2c_smbus_write_block_data(const struct i2c_client *client,
173 extern s32 i2c_smbus_read_i2c_block_data(const struct i2c_client *client,
175 extern s32 i2c_smbus_write_i2c_block_data(const struct i2c_client *client,
179 i2c_smbus_read_i2c_block_data_or_emulated(const struct i2c_client *client,
181 int i2c_get_device_id(const struct i2c_client *client,
257 int (*probe)(struct i2c_client *client, const struct i2c_device_id *id);
258 int (*remove)(struct i2c_client *client);
263 int (*probe_new)(struct i2c_client *client);
266 void (*shutdown)(struct i2c_client *client);
275 void (*alert)(struct i2c_client *client, enum i2c_alert_protocol protocol,
281 int (*command)(struct i2c_client *client, unsigned int cmd, void *arg);
287 int (*detect)(struct i2c_client *client, struct i2c_board_info *info);
342 const struct i2c_client *client);
371 extern int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb);
372 extern int i2c_slave_unregister(struct i2c_client *client);
375 static inline int i2c_slave_event(struct i2c_client *client, in i2c_slave_event() argument
378 return client->slave_cb(client, event, val); in i2c_slave_event()
476 i2c_new_ancillary_device(struct i2c_client *client,
480 extern void i2c_unregister_device(struct i2c_client *client);
551 int (*reg_slave)(struct i2c_client *client);
552 int (*unreg_slave)(struct i2c_client *client);
849 extern struct i2c_client *i2c_use_client(struct i2c_client *client);
850 extern void i2c_release_client(struct i2c_client *client);
941 struct i2c_client *client);
965 struct i2c_client *client) in i2c_of_match_device() argument