Lines Matching refs:pspval
211 union power_supply_propval pspval; in power_supply_hwmon_read() local
218 ret = power_supply_get_property(psy, prop, &pspval); in power_supply_hwmon_read()
230 pspval.intval = DIV_ROUND_CLOSEST(pspval.intval, 1000); in power_supply_hwmon_read()
236 if (check_mul_overflow(pspval.intval, 100, in power_supply_hwmon_read()
237 &pspval.intval)) in power_supply_hwmon_read()
244 *val = pspval.intval; in power_supply_hwmon_read()
255 union power_supply_propval pspval; in power_supply_hwmon_write() local
262 pspval.intval = val; in power_supply_hwmon_write()
272 if (check_mul_overflow(pspval.intval, 1000, in power_supply_hwmon_write()
273 &pspval.intval)) in power_supply_hwmon_write()
280 pspval.intval = DIV_ROUND_CLOSEST(pspval.intval, 100); in power_supply_hwmon_write()
286 return power_supply_set_property(psy, prop, &pspval); in power_supply_hwmon_write()