Lines Matching refs:intval
574 val->intval = bat_status(); in bat_get_property()
577 val->intval = bat_health(); in bat_get_property()
580 val->intval = bat_is_present(); in bat_get_property()
583 val->intval = bat_technology(); in bat_get_property()
586 val->intval = ec_read_u16(BAT_VOLTAGE_DESIGN) * 1000; in bat_get_property()
589 val->intval = ec_read_u16(BAT_VOLTAGE_NOW) * 1000; in bat_get_property()
592 val->intval = ec_read_s16(BAT_CURRENT_NOW) * 1000; in bat_get_property()
595 val->intval = ec_read_s16(BAT_CURRENT_AVG) * 1000; in bat_get_property()
598 val->intval = ec_read_u8(BAT_POWER) * 1000000; in bat_get_property()
601 val->intval = ec_read_u16(BAT_CHARGE_DESIGN) * 1000; in bat_get_property()
604 val->intval = ec_read_u16(BAT_CHARGE_NOW) * 1000; in bat_get_property()
607 val->intval = ec_read_u8(BAT_CHARGE_LIMIT); in bat_get_property()
610 val->intval = BAT_CHARGE_LIMIT_MAX; in bat_get_property()
613 val->intval = ec_read_u8(BAT_CAPACITY); in bat_get_property()
616 val->intval = bat_capacity_level(); in bat_get_property()
624 val->intval = ((222 - (int)ec_read_u8(BAT_TEMP)) * 1000) >> 8; in bat_get_property()
627 val->intval = ec_read_s8(BAT_TEMP_AVG) * 10; in bat_get_property()
653 level = val->intval; in bat_set_property()