Lines Matching refs:ec_read_u8
227 static u8 ec_read_u8(u8 addr) in ec_read_u8() function
236 return (s8)ec_read_u8(addr); in ec_read_s8()
242 lo = ec_read_u8(addr); in ec_read_u16()
243 hi = ec_read_u8(addr + 1); in ec_read_u16()
273 return (int) ec_read_u8(BACKLIGHT_LEVEL_ADDR); in get_backlight_level()
343 u8 result = ec_read_u8(WIRELESS_ADDR); in compal_rfkill_set()
357 u8 result = ec_read_u8(WIRELESS_ADDR); in compal_rfkill_poll()
373 return sprintf(buf, "%d\n", ((ec_read_u8(ADDR) & MASK) != 0)); \
379 u8 old_val = ec_read_u8(ADDR); \
494 u8 status0 = ec_read_u8(BAT_STATUS0); in bat_status()
495 u8 status1 = ec_read_u8(BAT_STATUS1); in bat_status()
508 u8 status = ec_read_u8(BAT_STOP_CHARGE1); in bat_health()
523 u8 status = ec_read_u8(BAT_STATUS2); in bat_is_present()
529 u8 status = ec_read_u8(BAT_STATUS1); in bat_technology()
538 u8 status0 = ec_read_u8(BAT_STATUS0); in bat_capacity_level()
539 u8 status1 = ec_read_u8(BAT_STATUS1); in bat_capacity_level()
540 u8 status2 = ec_read_u8(BAT_STATUS2); in bat_capacity_level()
585 val->intval = ec_read_u8(BAT_POWER) * 1000000; in bat_get_property()
594 val->intval = ec_read_u8(BAT_CHARGE_LIMIT); in bat_get_property()
600 val->intval = ec_read_u8(BAT_CAPACITY); in bat_get_property()
611 val->intval = ((222 - (int)ec_read_u8(BAT_TEMP)) * 1000) >> 8; in bat_get_property()