Searched refs:ec_byte (Results 1 – 2 of 2) sorted by relevance
/linux/drivers/power/supply/ |
H A D | olpc_battery.c | 99 union power_supply_propval *val, uint8_t ec_byte) in olpc_bat_get_status() argument 102 if (ec_byte & (BAT_STAT_CHARGING | BAT_STAT_TRICKLE)) in olpc_bat_get_status() 104 else if (ec_byte & BAT_STAT_DISCHARGING) in olpc_bat_get_status() 106 else if (ec_byte & BAT_STAT_FULL) in olpc_bat_get_status() 112 if (!(ec_byte & BAT_STAT_AC)) /* No AC means discharging */ in olpc_bat_get_status() 114 else if (ec_byte & BAT_STAT_FULL) in olpc_bat_get_status() 125 uint8_t ec_byte; in olpc_bat_get_health() local 128 ret = olpc_ec_cmd(EC_BAT_ERRCODE, NULL, 0, &ec_byte, 1); in olpc_bat_get_health() 132 switch (ec_byte) { in olpc_bat_get_health() 162 uint8_t ec_byte; in olpc_bat_get_mfr() local [all …]
|
/linux/drivers/platform/olpc/ |
H A D | olpc-ec.c | 200 u8 ec_byte = bits & 0xff; in olpc_ec_mask_write() local 202 return olpc_ec_cmd(EC_WRITE_SCI_MASK, &ec_byte, 1, NULL, 0); in olpc_ec_mask_write() 236 u8 ec_byte; in olpc_ec_sci_query() local 238 ret = olpc_ec_cmd(EC_SCI_QUERY, NULL, 0, &ec_byte, 1); in olpc_ec_sci_query() 240 *sci_value = ec_byte; in olpc_ec_sci_query() 351 unsigned char ec_byte = state; in olpc_ec_set_dcon_power() local 357 ret = olpc_ec_cmd(EC_DCON_POWER_MODE, &ec_byte, 1, NULL, 0); in olpc_ec_set_dcon_power()
|