Lines Matching refs:val1
189 int ret = 0, reg, val1; in axp20x_battery_get_prop() local
214 &val1); in axp20x_battery_get_prop()
218 if (val1) { in axp20x_battery_get_prop()
223 ret = regmap_read(axp20x_batt->regmap, AXP20X_FG_RES, &val1); in axp20x_battery_get_prop()
231 if ((val1 & AXP209_FG_PERCENT) == 100) in axp20x_battery_get_prop()
239 &val1); in axp20x_battery_get_prop()
243 if (val1 & AXP20X_PWR_OP_BATT_ACTIVATED) { in axp20x_battery_get_prop()
271 ret = iio_read_channel_processed(axp20x_batt->batt_dischrg_i, &val1); in axp20x_battery_get_prop()
272 val->intval = -val1; in axp20x_battery_get_prop()
443 int val1 = (min_voltage - 2600000) / 100000; in axp20x_set_voltage_min_design() local
445 if (val1 < 0 || val1 > AXP20X_V_OFF_MASK) in axp20x_set_voltage_min_design()
449 AXP20X_V_OFF_MASK, val1); in axp20x_set_voltage_min_design()