Lines Matching refs:client
62 * Client operations: operations with a particular i2c slave device.
68 struct i2c_client *client;
70 client = kmem_alloc(sizeof(*client), KM_SLEEP);
71 client->adapter = adapter;
72 client->addr = info->addr;
73 client->flags = info->flags;
75 return client;
79 i2c_unregister_device(struct i2c_client *client)
82 kmem_free(client, sizeof(*client));
86 i2c_master_send(const struct i2c_client *client, const char *buf, int count)
89 .addr = client->addr,
90 .flags = client->flags & I2C_M_TEN,
98 ret = i2c_transfer(client->adapter, &msg, 1);
106 i2c_master_recv(const struct i2c_client *client, char *buf, int count)
109 .addr = client->addr,
110 .flags = (client->flags & I2C_M_TEN) | I2C_M_RD,
116 ret = i2c_transfer(client->adapter, &msg, 1);