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()
341 u8 result = ec_read_u8(WIRELESS_ADDR); in compal_rfkill_set()
355 u8 result = ec_read_u8(WIRELESS_ADDR); in compal_rfkill_poll()
371 return sprintf(buf, "%d\n", ((ec_read_u8(ADDR) & MASK) != 0)); \
377 u8 old_val = ec_read_u8(ADDR); \
492 u8 status0 = ec_read_u8(BAT_STATUS0); in bat_status()
493 u8 status1 = ec_read_u8(BAT_STATUS1); in bat_status()
506 u8 status = ec_read_u8(BAT_STOP_CHARGE1); in bat_health()
521 u8 status = ec_read_u8(BAT_STATUS2); in bat_is_present()
527 u8 status = ec_read_u8(BAT_STATUS1); in bat_technology()
536 u8 status0 = ec_read_u8(BAT_STATUS0); in bat_capacity_level()
537 u8 status1 = ec_read_u8(BAT_STATUS1); in bat_capacity_level()
538 u8 status2 = ec_read_u8(BAT_STATUS2); in bat_capacity_level()
583 val->intval = ec_read_u8(BAT_POWER) * 1000000; in bat_get_property()
592 val->intval = ec_read_u8(BAT_CHARGE_LIMIT); in bat_get_property()
598 val->intval = ec_read_u8(BAT_CAPACITY); in bat_get_property()
609 val->intval = ((222 - (int)ec_read_u8(BAT_TEMP)) * 1000) >> 8; in bat_get_property()