Lines Matching refs:addr
138 .addr = client->addr,
157 int addr = RS5C_ADDR(RS5C372_REG_SECS);
160 if (i2c_smbus_read_i2c_block_data(client, addr, size,
265 int addr;
273 addr = RS5C_ADDR(RS5C372_REG_SECS);
282 if (i2c_smbus_write_i2c_block_data(client, addr, sizeof(buf), buf) < 0) {
288 addr = RS5C_ADDR(RS5C_REG_CTRL2);
289 ctrl2 = i2c_smbus_read_byte_data(client, addr);
306 if (i2c_smbus_write_byte_data(client, addr, ctrl2) < 0) {
362 int status, addr;
373 addr = RS5C_ADDR(RS5C_REG_CTRL1);
379 if (i2c_smbus_write_byte_data(client, addr, buf) < 0) {
424 int status, addr, i;
440 addr = RS5C_ADDR(RS5C_REG_CTRL1);
442 if (i2c_smbus_write_byte_data(client, addr, buf[0]) < 0) {
455 addr = RS5C_ADDR(RS5C_REG_ALARM_A_MIN + i);
456 if (i2c_smbus_write_byte_data(client, addr, buf[i]) < 0) {
464 addr = RS5C_ADDR(RS5C_REG_CTRL1);
466 if (i2c_smbus_write_byte_data(client, addr, buf[0]) < 0)
499 int addr;
504 addr = RS5C_ADDR(RS5C_REG_CTRL2);
505 ctrl2 = i2c_smbus_read_byte_data(rs5c->client, addr);
532 if (i2c_smbus_write_byte_data(rs5c->client, addr, ctrl2) < 0) {
587 int addr = RS5C_ADDR(RS5C372_REG_TRIM);
654 if (i2c_smbus_write_byte_data(rs5c->client, addr, val) < 0) {
655 dev_err(&rs5c->client->dev, "failed to write 0x%x to reg %d\n", val, addr);
741 int addr, i, ret = 0;
743 addr = RS5C_ADDR(RS5C_REG_CTRL1);
782 addr = RS5C_ADDR(RS5C_REG_CTRL1 + i);
783 ret = i2c_smbus_write_byte_data(rs5c372->client, addr, buf[i]);