Lines Matching refs:intval

309 			val->intval = 1;  in sbs_get_battery_presence_and_health()
311 val->intval = 0; in sbs_get_battery_presence_and_health()
312 chip->is_present = val->intval; in sbs_get_battery_presence_and_health()
323 val->intval = 0; /* battery removed */ in sbs_get_battery_presence_and_health()
333 val->intval = 0; in sbs_get_battery_presence_and_health()
345 val->intval = 0; in sbs_get_battery_presence_and_health()
347 val->intval = 1; in sbs_get_battery_presence_and_health()
350 val->intval = POWER_SUPPLY_HEALTH_UNSPEC_FAILURE; in sbs_get_battery_presence_and_health()
352 val->intval = POWER_SUPPLY_HEALTH_OVERHEAT; in sbs_get_battery_presence_and_health()
354 val->intval = POWER_SUPPLY_HEALTH_DEAD; in sbs_get_battery_presence_and_health()
356 val->intval = POWER_SUPPLY_HEALTH_GOOD; in sbs_get_battery_presence_and_health()
379 val->intval = ret; in sbs_get_battery_property()
384 val->intval = POWER_SUPPLY_STATUS_FULL; in sbs_get_battery_property()
386 val->intval = POWER_SUPPLY_STATUS_NOT_CHARGING; in sbs_get_battery_property()
388 val->intval = POWER_SUPPLY_STATUS_DISCHARGING; in sbs_get_battery_property()
390 val->intval = POWER_SUPPLY_STATUS_CHARGING; in sbs_get_battery_property()
393 chip->last_state = val->intval; in sbs_get_battery_property()
394 else if (chip->last_state != val->intval) { in sbs_get_battery_property()
401 val->intval = POWER_SUPPLY_STATUS_UNKNOWN; in sbs_get_battery_property()
403 val->intval = 0; in sbs_get_battery_property()
436 val->intval *= BATTERY_MODE_CAP_MULT_WATT; in sbs_unit_adjustment()
446 val->intval *= BASE_UNIT_CONVERSION; in sbs_unit_adjustment()
453 val->intval -= TEMP_KELVIN_TO_CELSIUS; in sbs_unit_adjustment()
461 val->intval *= TIME_UNIT_CONVERSION; in sbs_unit_adjustment()
515 val->intval = min(ret, 100); in sbs_get_battery_capacity()
517 val->intval = ret; in sbs_get_battery_capacity()
573 val->intval = POWER_SUPPLY_TECHNOLOGY_LION; in sbs_get_property()
652 "%s: property = %d, value = %x\n", __func__, psp, val->intval); in sbs_get_property()