Lines Matching refs:client

20 	struct i2c_client *client = to_i2c_client(dev);  in adxl34x_smbus_read()  local
22 return i2c_smbus_read_byte_data(client, reg); in adxl34x_smbus_read()
28 struct i2c_client *client = to_i2c_client(dev); in adxl34x_smbus_write() local
30 return i2c_smbus_write_byte_data(client, reg, val); in adxl34x_smbus_write()
37 struct i2c_client *client = to_i2c_client(dev); in adxl34x_smbus_read_block() local
39 return i2c_smbus_read_i2c_block_data(client, reg, count, buf); in adxl34x_smbus_read_block()
46 struct i2c_client *client = to_i2c_client(dev); in adxl34x_i2c_read_block() local
49 ret = i2c_master_send(client, &reg, 1); in adxl34x_i2c_read_block()
53 ret = i2c_master_recv(client, buf, count); in adxl34x_i2c_read_block()
77 static int adxl34x_i2c_probe(struct i2c_client *client, in adxl34x_i2c_probe() argument
83 error = i2c_check_functionality(client->adapter, in adxl34x_i2c_probe()
86 dev_err(&client->dev, "SMBUS Byte Data not Supported\n"); in adxl34x_i2c_probe()
90 ac = adxl34x_probe(&client->dev, client->irq, false, in adxl34x_i2c_probe()
91 i2c_check_functionality(client->adapter, in adxl34x_i2c_probe()
97 i2c_set_clientdata(client, ac); in adxl34x_i2c_probe()
102 static int adxl34x_i2c_remove(struct i2c_client *client) in adxl34x_i2c_remove() argument
104 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_remove()
111 struct i2c_client *client = to_i2c_client(dev); in adxl34x_i2c_suspend() local
112 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_suspend()
121 struct i2c_client *client = to_i2c_client(dev); in adxl34x_i2c_resume() local
122 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_resume()