Lines Matching refs:buf
20 uchar buf; in tps65910_set_i2c_control() local
24 &buf, 1); in tps65910_set_i2c_control()
29 buf |= TPS65910_DEVCTRL_REG_SR_CTL_I2C_SEL_CTL_I2C; in tps65910_set_i2c_control()
32 &buf, 1); in tps65910_set_i2c_control()
43 uchar buf; in tps65910_voltage_update() local
53 ret = i2c_read(TPS65910_CTRL_I2C_ADDR, reg_offset, 1, &buf, 1); in tps65910_voltage_update()
57 buf &= ~TPS65910_OP_REG_CMD_MASK; in tps65910_voltage_update()
59 ret = i2c_write(TPS65910_CTRL_I2C_ADDR, reg_offset, 1, &buf, 1); in tps65910_voltage_update()
64 ret = i2c_read(TPS65910_CTRL_I2C_ADDR, reg_offset, 1, &buf, 1); in tps65910_voltage_update()
68 buf &= ~TPS65910_OP_REG_SEL_MASK; in tps65910_voltage_update()
69 buf |= vddx_op_vol_sel; in tps65910_voltage_update()
71 ret = i2c_write(TPS65910_CTRL_I2C_ADDR, reg_offset, 1, &buf, 1); in tps65910_voltage_update()
75 ret = i2c_read(TPS65910_CTRL_I2C_ADDR, reg_offset, 1, &buf, 1); in tps65910_voltage_update()
79 if ((buf & TPS65910_OP_REG_SEL_MASK) != vddx_op_vol_sel) in tps65910_voltage_update()