Lines Matching refs:ltc2992_state

110 struct ltc2992_state {  struct
187 static int ltc2992_read_reg(struct ltc2992_state *st, u8 addr, const u8 reg_len) in ltc2992_read_reg()
205 static int ltc2992_write_reg(struct ltc2992_state *st, u8 addr, const u8 reg_len, u32 val) in ltc2992_write_reg()
218 struct ltc2992_state *st = gpiochip_get_data(chip); in ltc2992_gpio_get()
237 struct ltc2992_state *st = gpiochip_get_data(chip); in ltc2992_gpio_get_multiple()
261 struct ltc2992_state *st = gpiochip_get_data(chip); in ltc2992_gpio_set()
282 struct ltc2992_state *st = gpiochip_get_data(chip); in ltc2992_gpio_set_multiple()
301 static int ltc2992_config_gpio(struct ltc2992_state *st) in ltc2992_config_gpio()
345 const struct ltc2992_state *st = data; in ltc2992_is_visible()
408 static int ltc2992_get_voltage(struct ltc2992_state *st, u32 reg, u32 scale, long *val) in ltc2992_get_voltage()
422 static int ltc2992_set_voltage(struct ltc2992_state *st, u32 reg, u32 scale, long val) in ltc2992_set_voltage()
430 static int ltc2992_read_gpio_alarm(struct ltc2992_state *st, int nr_gpio, u32 attr, long *val) in ltc2992_read_gpio_alarm()
452 struct ltc2992_state *st = dev_get_drvdata(dev); in ltc2992_read_gpios_in()
481 static int ltc2992_read_in_alarm(struct ltc2992_state *st, int channel, long *val, u32 attr) in ltc2992_read_in_alarm()
503 struct ltc2992_state *st = dev_get_drvdata(dev); in ltc2992_read_in()
535 static int ltc2992_get_current(struct ltc2992_state *st, u32 reg, u32 channel, long *val) in ltc2992_get_current()
549 static int ltc2992_set_current(struct ltc2992_state *st, u32 reg, u32 channel, long val) in ltc2992_set_current()
559 static int ltc2992_read_curr_alarm(struct ltc2992_state *st, int channel, long *val, u32 attr) in ltc2992_read_curr_alarm()
581 struct ltc2992_state *st = dev_get_drvdata(dev); in ltc2992_read_curr()
610 static int ltc2992_get_power(struct ltc2992_state *st, u32 reg, u32 channel, long *val) in ltc2992_get_power()
624 static int ltc2992_set_power(struct ltc2992_state *st, u32 reg, u32 channel, long val) in ltc2992_set_power()
634 static int ltc2992_read_power_alarm(struct ltc2992_state *st, int channel, long *val, u32 attr) in ltc2992_read_power_alarm()
656 struct ltc2992_state *st = dev_get_drvdata(dev); in ltc2992_read_power()
702 struct ltc2992_state *st = dev_get_drvdata(dev); in ltc2992_write_curr()
721 struct ltc2992_state *st = dev_get_drvdata(dev); in ltc2992_write_gpios_in()
740 struct ltc2992_state *st = dev_get_drvdata(dev); in ltc2992_write_in()
762 struct ltc2992_state *st = dev_get_drvdata(dev); in ltc2992_write_power()
781 struct ltc2992_state *st = dev_get_drvdata(dev); in ltc2992_write_chip()
855 static int ltc2992_parse_dt(struct ltc2992_state *st) in ltc2992_parse_dt()
894 struct ltc2992_state *st; in ltc2992_i2c_probe()