Home
last modified time | relevance | path

Searched refs:ec_byte (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/drivers/power/
Dolpc_battery.c96 static int olpc_bat_get_status(union power_supply_propval *val, uint8_t ec_byte) in olpc_bat_get_status() argument
99 if (ec_byte & (BAT_STAT_CHARGING | BAT_STAT_TRICKLE)) in olpc_bat_get_status()
101 else if (ec_byte & BAT_STAT_DISCHARGING) in olpc_bat_get_status()
103 else if (ec_byte & BAT_STAT_FULL) in olpc_bat_get_status()
109 if (!(ec_byte & BAT_STAT_AC)) /* No AC means discharging */ in olpc_bat_get_status()
111 else if (ec_byte & BAT_STAT_FULL) in olpc_bat_get_status()
122 uint8_t ec_byte; in olpc_bat_get_health() local
125 ret = olpc_ec_cmd(EC_BAT_ERRCODE, NULL, 0, &ec_byte, 1); in olpc_bat_get_health()
129 switch (ec_byte) { in olpc_bat_get_health()
159 uint8_t ec_byte; in olpc_bat_get_mfr() local
[all …]
/linux-4.4.14/arch/x86/platform/olpc/
Dolpc.c239 unsigned char ec_byte = bits & 0xff; in olpc_ec_mask_write() local
240 return olpc_ec_cmd(EC_WRITE_SCI_MASK, &ec_byte, 1, NULL, 0); in olpc_ec_mask_write()
256 unsigned char ec_byte; in olpc_ec_sci_query() local
257 ret = olpc_ec_cmd(EC_SCI_QUERY, NULL, 0, &ec_byte, 1); in olpc_ec_sci_query()
259 *sci_value = ec_byte; in olpc_ec_sci_query()