• Home
  • Raw
  • Download

Lines Matching full:client

29 provide.  A client structure holds device-specific information like the
66 Extra client data
69 Each client structure has a special ``data`` field that can point to any
75 void i2c_set_clientdata(struct i2c_client *client, void *data);
78 void *i2c_get_clientdata(const struct i2c_client *client);
86 Accessing the client
89 Let's say we have a valid client structure. At some time, we will need
90 to gather information from the client, or write new information to the
91 client.
101 int foo_read_value(struct i2c_client *client, u8 reg)
104 return i2c_smbus_read_byte_data(client, reg);
106 return i2c_smbus_read_word_data(client, reg);
109 int foo_write_value(struct i2c_client *client, u8 reg, u16 value)
114 return i2c_smbus_write_byte_data(client, reg, value);
116 return i2c_smbus_write_word_data(client, reg, value);
154 static int foo_probe(struct i2c_client *client);
155 static void foo_remove(struct i2c_client *client);
157 Remember that the i2c_driver does not create those client handles. The
168 const struct i2c_device_id *id = i2c_match_id(foo_idtable, client);
321 int i2c_master_send(struct i2c_client *client, const char *buf,
323 int i2c_master_recv(struct i2c_client *client, char *buf, int count);
325 These routines read and write some bytes from/to a client. The client
340 contains for each message the client address, the number of bytes of the
361 s32 i2c_smbus_read_byte(struct i2c_client *client);
362 s32 i2c_smbus_write_byte(struct i2c_client *client, u8 value);
363 s32 i2c_smbus_read_byte_data(struct i2c_client *client, u8 command);
364 s32 i2c_smbus_write_byte_data(struct i2c_client *client,
366 s32 i2c_smbus_read_word_data(struct i2c_client *client, u8 command);
367 s32 i2c_smbus_write_word_data(struct i2c_client *client,
369 s32 i2c_smbus_read_block_data(struct i2c_client *client,
371 s32 i2c_smbus_write_block_data(struct i2c_client *client,
373 s32 i2c_smbus_read_i2c_block_data(struct i2c_client *client,
375 s32 i2c_smbus_write_i2c_block_data(struct i2c_client *client,
382 s32 i2c_smbus_write_quick(struct i2c_client *client, u8 value);
383 s32 i2c_smbus_process_call(struct i2c_client *client,
385 s32 i2c_smbus_block_process_call(struct i2c_client *client,