Lines Matching refs:ec_read_u8
240 static u8 ec_read_u8(u8 addr) in ec_read_u8() function
249 return (s8)ec_read_u8(addr); in ec_read_s8()
255 lo = ec_read_u8(addr); in ec_read_u16()
256 hi = ec_read_u8(addr + 1); in ec_read_u16()
286 return (int) ec_read_u8(BACKLIGHT_LEVEL_ADDR); in get_backlight_level()
356 u8 result = ec_read_u8(WIRELESS_ADDR); in compal_rfkill_set()
370 u8 result = ec_read_u8(WIRELESS_ADDR); in compal_rfkill_poll()
386 return sprintf(buf, "%d\n", ((ec_read_u8(ADDR) & MASK) != 0)); \
392 u8 old_val = ec_read_u8(ADDR); \
507 u8 status0 = ec_read_u8(BAT_STATUS0); in bat_status()
508 u8 status1 = ec_read_u8(BAT_STATUS1); in bat_status()
521 u8 status = ec_read_u8(BAT_STOP_CHARGE1); in bat_health()
536 u8 status = ec_read_u8(BAT_STATUS2); in bat_is_present()
542 u8 status = ec_read_u8(BAT_STATUS1); in bat_technology()
551 u8 status0 = ec_read_u8(BAT_STATUS0); in bat_capacity_level()
552 u8 status1 = ec_read_u8(BAT_STATUS1); in bat_capacity_level()
553 u8 status2 = ec_read_u8(BAT_STATUS2); in bat_capacity_level()
598 val->intval = ec_read_u8(BAT_POWER) * 1000000; in bat_get_property()
607 val->intval = ec_read_u8(BAT_CHARGE_LIMIT); in bat_get_property()
613 val->intval = ec_read_u8(BAT_CAPACITY); in bat_get_property()
624 val->intval = ((222 - (int)ec_read_u8(BAT_TEMP)) * 1000) >> 8; in bat_get_property()