Lines Matching refs:i2c_client

35 struct i2c_client;
41 typedef int (*i2c_slave_cb_t)(struct i2c_client *client,
66 int i2c_transfer_buffer_flags(const struct i2c_client *client,
77 static inline int i2c_master_recv(const struct i2c_client *client,
92 static inline int i2c_master_recv_dmasafe(const struct i2c_client *client,
107 static inline int i2c_master_send(const struct i2c_client *client,
122 static inline int i2c_master_send_dmasafe(const struct i2c_client *client,
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)
171 i2c_smbus_write_word_swapped(const struct i2c_client *client,
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);
265 * The i2c_client structure which is handed to the @detect callback is
266 * not a real i2c_client. It is initialized just enough so that you can
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);
310 * struct i2c_client - represent an I2C slave device
326 * An i2c_client identifies a single device (i.e. chip) connected to an
330 struct i2c_client {
355 #define to_i2c_client(d) container_of(d, struct i2c_client, dev)
359 const struct i2c_client *client);
361 const void *i2c_get_match_data(const struct i2c_client *client);
363 static inline struct i2c_client *kobj_to_i2c_client(struct kobject *kobj)
369 static inline void *i2c_get_clientdata(const struct i2c_client *client)
374 static inline void i2c_set_clientdata(struct i2c_client *client, void *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,
401 * @type: chip type, to initialize i2c_client.name
402 * @flags: to initialize i2c_client.flags
403 * @addr: stored in i2c_client.addr
405 * @platform_data: stored in i2c_client.dev.platform_data
411 * @irq: stored in i2c_client.irq
458 struct i2c_client *
467 struct i2c_client *
476 struct i2c_client *
479 struct i2c_client *
482 struct i2c_client *
483 i2c_new_ancillary_device(struct i2c_client *client,
487 void i2c_unregister_device(struct i2c_client *client);
489 struct i2c_client *i2c_verify_client(struct device *dev);
491 static inline struct i2c_client *i2c_verify_client(struct device *dev)
566 int (*reg_slave)(struct i2c_client *client);
567 int (*unreg_slave)(struct i2c_client *client);
884 static inline bool i2c_client_has_driver(struct i2c_client *client)
889 /* call the i2c_client->command() of all attached clients with
966 /* must call put_device() when done with returned i2c_client device */
967 struct i2c_client *i2c_find_device_by_fwnode(struct fwnode_handle *fwnode);
976 /* must call put_device() when done with returned i2c_client device */
977 static inline struct i2c_client *of_find_i2c_device_by_node(struct device_node *node)
996 struct i2c_client *client);
1003 static inline struct i2c_client *of_find_i2c_device_by_node(struct device_node *node)
1020 struct i2c_client *client)
1042 struct i2c_client *i2c_acpi_new_device_by_fwnode(struct fwnode_handle *fwnode,
1061 static inline struct i2c_client *i2c_acpi_new_device_by_fwnode(
1077 static inline struct i2c_client *i2c_acpi_new_device(struct device *dev,