Lines Matching refs:client

41 typedef int (*i2c_slave_cb_t)(struct i2c_client *client,
66 int i2c_transfer_buffer_flags(const struct i2c_client *client,
71 * @client: Handle to slave device
77 static inline int i2c_master_recv(const struct i2c_client *client,
80 return i2c_transfer_buffer_flags(client, buf, count, I2C_M_RD);
86 * @client: Handle to slave device
92 static inline int i2c_master_recv_dmasafe(const struct i2c_client *client,
95 return i2c_transfer_buffer_flags(client, buf, count,
101 * @client: Handle to slave device
107 static inline int i2c_master_send(const struct i2c_client *client,
110 return i2c_transfer_buffer_flags(client, (char *)buf, count, 0);
116 * @client: Handle to slave device
122 static inline int i2c_master_send_dmasafe(const struct i2c_client *client,
125 return i2c_transfer_buffer_flags(client, (char *)buf, count,
153 s32 i2c_smbus_read_byte(const struct i2c_client *client);
154 s32 i2c_smbus_write_byte(const struct i2c_client *client, u8 value);
155 s32 i2c_smbus_read_byte_data(const struct i2c_client *client, u8 command);
156 s32 i2c_smbus_write_byte_data(const struct i2c_client *client,
158 s32 i2c_smbus_read_word_data(const struct i2c_client *client, u8 command);
159 s32 i2c_smbus_write_word_data(const struct i2c_client *client,
163 i2c_smbus_read_word_swapped(const struct i2c_client *client, u8 command)
165 s32 value = i2c_smbus_read_word_data(client, command);
171 i2c_smbus_write_word_swapped(const struct i2c_client *client,
174 return i2c_smbus_write_word_data(client, command, swab16(value));
178 s32 i2c_smbus_read_block_data(const struct i2c_client *client,
180 s32 i2c_smbus_write_block_data(const struct i2c_client *client,
183 s32 i2c_smbus_read_i2c_block_data(const struct i2c_client *client,
185 s32 i2c_smbus_write_i2c_block_data(const struct i2c_client *client,
187 s32 i2c_smbus_read_i2c_block_data_or_emulated(const struct i2c_client *client,
190 int i2c_get_device_id(const struct i2c_client *client,
192 const struct i2c_device_id *i2c_client_get_device_id(const struct i2c_client *client);
196 * struct i2c_device_identity - i2c client device identification
275 int (*probe)(struct i2c_client *client);
276 void (*remove)(struct i2c_client *client);
280 void (*shutdown)(struct i2c_client *client);
289 void (*alert)(struct i2c_client *client, enum i2c_alert_protocol protocol,
295 int (*command)(struct i2c_client *client, unsigned int cmd, void *arg);
301 int (*detect)(struct i2c_client *client, struct i2c_board_info *info);
359 const struct i2c_client *client);
361 const void *i2c_get_match_data(const struct i2c_client *client);
369 static inline void *i2c_get_clientdata(const struct i2c_client *client)
371 return dev_get_drvdata(&client->dev);
374 static inline void i2c_set_clientdata(struct i2c_client *client, void *data)
376 dev_set_drvdata(&client->dev, data);
389 int i2c_slave_register(struct i2c_client *client, i2c_slave_cb_t slave_cb);
390 int i2c_slave_unregister(struct i2c_client *client);
391 int i2c_slave_event(struct i2c_client *client,
483 i2c_new_ancillary_device(struct i2c_client *client,
487 void i2c_unregister_device(struct i2c_client *client);
528 * @reg_slave: Register given client to I2C slave mode of this adapter
529 * @unreg_slave: Unregister given client from I2C slave mode of this adapter
566 int (*reg_slave)(struct i2c_client *client);
567 int (*unreg_slave)(struct i2c_client *client);
883 static inline bool i2c_client_has_driver(struct i2c_client *client)
885 return !IS_ERR_OR_NULL(client) && client->dev.driver;
1015 struct i2c_client *client);
1039 struct i2c_client *client)