Lines Matching refs:dest_val
14 int tps65218_reg_read(uchar dest_reg, uchar *dest_val) in tps65218_reg_read() argument
23 *dest_val = read_val; in tps65218_reg_read()
43 int tps65218_reg_write(uchar prot_level, uchar dest_reg, uchar dest_val, in tps65218_reg_write() argument
59 read_val |= (dest_val & mask); in tps65218_reg_write()
60 dest_val = read_val; in tps65218_reg_write()
71 ret = i2c_write(TPS65218_CHIP_PM, dest_reg, 1, &dest_val, 1); in tps65218_reg_write()
81 ret = i2c_write(TPS65218_CHIP_PM, dest_reg, 1, &dest_val, 1); in tps65218_reg_write()
91 int tps65218_reg_read(uchar dest_reg, uchar *dest_val) in tps65218_reg_read() argument
103 *dest_val = read_val; in tps65218_reg_read()
108 int tps65218_reg_write(uchar prot_level, uchar dest_reg, uchar dest_val, in tps65218_reg_write() argument
128 read_val |= (dest_val & mask); in tps65218_reg_write()
129 dest_val = read_val; in tps65218_reg_write()
140 ret = dm_i2c_write(tps65218_dev, dest_reg, &dest_val, 1); in tps65218_reg_write()
150 ret = dm_i2c_write(tps65218_dev, dest_reg, &dest_val, 1); in tps65218_reg_write()