Lines Matching refs:ltc2992_write_reg
205 static int ltc2992_write_reg(struct ltc2992_state *st, u8 addr, const u8 reg_len, u32 val) in ltc2992_write_reg() function
275 ltc2992_write_reg(st, ltc2992_gpio_addr_map[offset].ctrl, 1, gpio_ctrl); in ltc2992_gpio_set()
296 ltc2992_write_reg(st, LTC2992_GPIO_IO_CTRL, 1, gpio_ctrl_io); in ltc2992_gpio_set_multiple()
297 ltc2992_write_reg(st, LTC2992_GPIO_CTRL, 1, gpio_ctrl); in ltc2992_gpio_set_multiple()
308 ret = ltc2992_write_reg(st, LTC2992_GPIO_IO_CTRL, 1, 0); in ltc2992_config_gpio()
427 return ltc2992_write_reg(st, reg, 2, val); in ltc2992_set_voltage()
447 return ltc2992_write_reg(st, ltc2992_gpio_addr_map[nr_gpio].alarm, 1, reg_val); in ltc2992_read_gpio_alarm()
498 return ltc2992_write_reg(st, LTC2992_SENSE_FAULT(channel), 1, reg_val); in ltc2992_read_in_alarm()
556 return ltc2992_write_reg(st, reg, 2, reg_val); in ltc2992_set_current()
576 return ltc2992_write_reg(st, LTC2992_DSENSE_FAULT(channel), 1, reg_val); in ltc2992_read_curr_alarm()
631 return ltc2992_write_reg(st, reg, 3, reg_val); in ltc2992_set_power()
651 return ltc2992_write_reg(st, LTC2992_POWER_FAULT(channel), 1, reg_val); in ltc2992_read_power_alarm()