Lines Matching +defs:val +defs:x
62 #define LTC2992_POWER(x) (LTC2992_POWER1 + ((x) * 0x32)) argument
63 #define LTC2992_POWER_MAX(x) (LTC2992_POWER1_MAX + ((x) * 0x32)) argument
64 #define LTC2992_POWER_MIN(x) (LTC2992_POWER1_MIN + ((x) * 0x32)) argument
65 #define LTC2992_POWER_MAX_THRESH(x) (LTC2992_POWER1_MAX_THRESH + ((x) * 0x32)) argument
66 #define LTC2992_POWER_MIN_THRESH(x) (LTC2992_POWER1_MIN_THRESH + ((x) * 0x32)) argument
67 #define LTC2992_DSENSE(x) (LTC2992_DSENSE1 + ((x) * 0x32)) argument
68 #define LTC2992_DSENSE_MAX(x) (LTC2992_DSENSE1_MAX + ((x) * 0x32)) argument
69 #define LTC2992_DSENSE_MIN(x) (LTC2992_DSENSE1_MIN + ((x) * 0x32)) argument
70 #define LTC2992_DSENSE_MAX_THRESH(x) (LTC2992_DSENSE1_MAX_THRESH + ((x) * 0x32)) argument
71 #define LTC2992_DSENSE_MIN_THRESH(x) (LTC2992_DSENSE1_MIN_THRESH + ((x) * 0x32)) argument
72 #define LTC2992_SENSE(x) (LTC2992_SENSE1 + ((x) * 0x32)) argument
73 #define LTC2992_SENSE_MAX(x) (LTC2992_SENSE1_MAX + ((x) * 0x32)) argument
74 #define LTC2992_SENSE_MIN(x) (LTC2992_SENSE1_MIN + ((x) * 0x32)) argument
75 #define LTC2992_SENSE_MAX_THRESH(x) (LTC2992_SENSE1_MAX_THRESH + ((x) * 0x32)) argument
76 #define LTC2992_SENSE_MIN_THRESH(x) (LTC2992_SENSE1_MIN_THRESH + ((x) * 0x32)) argument
77 #define LTC2992_POWER_FAULT(x) (LTC2992_FAULT1 + ((x) * 0x32)) argument
78 #define LTC2992_SENSE_FAULT(x) (LTC2992_FAULT1 + ((x) * 0x32)) argument
79 #define LTC2992_DSENSE_FAULT(x) (LTC2992_FAULT1 + ((x) * 0x32)) argument
85 #define LTC2992_POWER_FAULT_MSK(x) (BIT(6) << (x)) argument
86 #define LTC2992_DSENSE_FAULT_MSK(x) (BIT(4) << (x)) argument
87 #define LTC2992_SENSE_FAULT_MSK(x) (BIT(2) << (x)) argument
90 #define LTC2992_GPIO1_FAULT_MSK(x) (BIT(0) << (x)) argument
93 #define LTC2992_GPIO2_FAULT_MSK(x) (BIT(0) << (x)) argument
96 #define LTC2992_GPIO3_FAULT_MSK(x) (BIT(6) << (x)) argument
97 #define LTC2992_GPIO4_FAULT_MSK(x) (BIT(4) << (x)) argument
108 #define LTC2992_GPIO_BIT(x) (LTC2992_GPIO_NR - (x) - 1) argument
190 int val; in ltc2992_read_reg() local
205 static int ltc2992_write_reg(struct ltc2992_state *st, u8 addr, const u8 reg_len, u32 val) in ltc2992_write_reg()
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()
450 static int ltc2992_read_gpios_in(struct device *dev, u32 attr, int nr_gpio, long *val) 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()
501 static int ltc2992_read_in(struct device *dev, u32 attr, int channel, long *val) 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()
579 static int ltc2992_read_curr(struct device *dev, u32 attr, int channel, long *val) 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()
654 static int ltc2992_read_power(struct device *dev, u32 attr, int channel, long *val) in ltc2992_read_power()
686 long *val) in ltc2992_read()
700 static int ltc2992_write_curr(struct device *dev, u32 attr, int channel, long val) in ltc2992_write_curr()
719 static int ltc2992_write_gpios_in(struct device *dev, u32 attr, int nr_gpio, long val) in ltc2992_write_gpios_in()
738 static int ltc2992_write_in(struct device *dev, u32 attr, int channel, long val) in ltc2992_write_in()
760 static int ltc2992_write_power(struct device *dev, u32 attr, int channel, long val) in ltc2992_write_power()
779 static int ltc2992_write_chip(struct device *dev, u32 attr, int channel, long val) in ltc2992_write_chip()
793 long val) in ltc2992_write()
858 u32 val; in ltc2992_parse_dt() local