Lines Matching refs:read_val
16 uchar read_val; in tps65218_reg_read() local
19 ret = i2c_read(TPS65218_CHIP_PM, dest_reg, 1, &read_val, 1); in tps65218_reg_read()
23 *dest_val = read_val; in tps65218_reg_read()
46 uchar read_val; in tps65218_reg_write() local
55 ret = i2c_read(TPS65218_CHIP_PM, dest_reg, 1, &read_val, 1); in tps65218_reg_write()
58 read_val &= (~mask); in tps65218_reg_write()
59 read_val |= (dest_val & mask); in tps65218_reg_write()
60 dest_val = read_val; in tps65218_reg_write()
93 uchar read_val; in tps65218_reg_read() local
99 ret = dm_i2c_read(tps65218_dev, dest_reg, &read_val, 1); in tps65218_reg_read()
103 *dest_val = read_val; in tps65218_reg_read()
111 uchar read_val; in tps65218_reg_write() local
123 ret = dm_i2c_read(tps65218_dev, dest_reg, &read_val, 1); in tps65218_reg_write()
127 read_val &= (~mask); in tps65218_reg_write()
128 read_val |= (dest_val & mask); in tps65218_reg_write()
129 dest_val = read_val; in tps65218_reg_write()