Lines Matching refs:client
19 struct i2c_client *client = to_i2c_client(dev); in adxl34x_smbus_read() local
21 return i2c_smbus_read_byte_data(client, reg); in adxl34x_smbus_read()
27 struct i2c_client *client = to_i2c_client(dev); in adxl34x_smbus_write() local
29 return i2c_smbus_write_byte_data(client, reg, val); in adxl34x_smbus_write()
36 struct i2c_client *client = to_i2c_client(dev); in adxl34x_smbus_read_block() local
38 return i2c_smbus_read_i2c_block_data(client, reg, count, buf); in adxl34x_smbus_read_block()
45 struct i2c_client *client = to_i2c_client(dev); in adxl34x_i2c_read_block() local
48 ret = i2c_master_send(client, ®, 1); in adxl34x_i2c_read_block()
52 ret = i2c_master_recv(client, buf, count); in adxl34x_i2c_read_block()
76 static int adxl34x_i2c_probe(struct i2c_client *client, in adxl34x_i2c_probe() argument
82 error = i2c_check_functionality(client->adapter, in adxl34x_i2c_probe()
85 dev_err(&client->dev, "SMBUS Byte Data not Supported\n"); in adxl34x_i2c_probe()
89 ac = adxl34x_probe(&client->dev, client->irq, false, in adxl34x_i2c_probe()
90 i2c_check_functionality(client->adapter, in adxl34x_i2c_probe()
96 i2c_set_clientdata(client, ac); in adxl34x_i2c_probe()
101 static int adxl34x_i2c_remove(struct i2c_client *client) in adxl34x_i2c_remove() argument
103 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_remove()
110 struct i2c_client *client = to_i2c_client(dev); in adxl34x_i2c_suspend() local
111 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_suspend()
120 struct i2c_client *client = to_i2c_client(dev); in adxl34x_i2c_resume() local
121 struct adxl34x *ac = i2c_get_clientdata(client); in adxl34x_i2c_resume()