Lines Matching refs:dest_reg
14 int tps65218_reg_read(uchar dest_reg, uchar *dest_val) in tps65218_reg_read() argument
19 ret = i2c_read(TPS65218_CHIP_PM, dest_reg, 1, &read_val, 1); in tps65218_reg_read()
43 int tps65218_reg_write(uchar prot_level, uchar dest_reg, uchar dest_val, in tps65218_reg_write() argument
55 ret = i2c_read(TPS65218_CHIP_PM, dest_reg, 1, &read_val, 1); in tps65218_reg_write()
64 xor_reg = dest_reg ^ TPS65218_PASSWORD_UNLOCK; 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
99 ret = dm_i2c_read(tps65218_dev, dest_reg, &read_val, 1); in tps65218_reg_read()
108 int tps65218_reg_write(uchar prot_level, uchar dest_reg, uchar dest_val, in tps65218_reg_write() argument
123 ret = dm_i2c_read(tps65218_dev, dest_reg, &read_val, 1); in tps65218_reg_write()
133 xor_reg = dest_reg ^ TPS65218_PASSWORD_UNLOCK; 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()