Lines Matching refs:intval
572 val->intval = bat_status(); in bat_get_property()
575 val->intval = bat_health(); in bat_get_property()
578 val->intval = bat_is_present(); in bat_get_property()
581 val->intval = bat_technology(); in bat_get_property()
584 val->intval = ec_read_u16(BAT_VOLTAGE_DESIGN) * 1000; in bat_get_property()
587 val->intval = ec_read_u16(BAT_VOLTAGE_NOW) * 1000; in bat_get_property()
590 val->intval = ec_read_s16(BAT_CURRENT_NOW) * 1000; in bat_get_property()
593 val->intval = ec_read_s16(BAT_CURRENT_AVG) * 1000; in bat_get_property()
596 val->intval = ec_read_u8(BAT_POWER) * 1000000; in bat_get_property()
599 val->intval = ec_read_u16(BAT_CHARGE_DESIGN) * 1000; in bat_get_property()
602 val->intval = ec_read_u16(BAT_CHARGE_NOW) * 1000; in bat_get_property()
605 val->intval = ec_read_u8(BAT_CAPACITY); in bat_get_property()
608 val->intval = bat_capacity_level(); in bat_get_property()
616 val->intval = ((222 - (int)ec_read_u8(BAT_TEMP)) * 1000) >> 8; in bat_get_property()
619 val->intval = ec_read_s8(BAT_TEMP_AVG) * 10; in bat_get_property()