Lines Matching refs:olpc_ec_cmd
66 ret = olpc_ec_cmd(EC_BAT_STATUS, NULL, 0, &status, 1); in olpc_ac_get_prop()
122 ret = olpc_ec_cmd(EC_BAT_ERRCODE, NULL, 0, &ec_byte, 1); in olpc_bat_get_health()
160 ret = olpc_ec_cmd(EC_BAT_EEPROM, &ec_byte, 1, &ec_byte, 1); in olpc_bat_get_mfr()
185 ret = olpc_ec_cmd(EC_BAT_EEPROM, &ec_byte, 1, &ec_byte, 1); in olpc_bat_get_tech()
215 ret = olpc_ec_cmd(EC_BAT_EEPROM, &ec_byte, 1, &ec_byte, 1); in olpc_bat_get_charge_full_design()
258 ret = olpc_ec_cmd(EC_BAT_SOC, NULL, 0, &soc, 1); in olpc_bat_get_charge_now()
282 ret = olpc_ec_cmd(EC_BAT_STATUS, NULL, 0, &ec_byte, 1); in olpc_bat_get_property()
337 ret = olpc_ec_cmd(EC_BAT_VOLTAGE, NULL, 0, (void *)&ec_word, 2); in olpc_bat_get_property()
345 ret = olpc_ec_cmd(EC_BAT_CURRENT, NULL, 0, (void *)&ec_word, 2); in olpc_bat_get_property()
352 ret = olpc_ec_cmd(EC_BAT_SOC, NULL, 0, &ec_byte, 1); in olpc_bat_get_property()
376 ret = olpc_ec_cmd(EC_BAT_TEMP, NULL, 0, (void *)&ec_word, 2); in olpc_bat_get_property()
383 ret = olpc_ec_cmd(EC_AMB_TEMP, NULL, 0, (void *)&ec_word, 2); in olpc_bat_get_property()
390 ret = olpc_ec_cmd(EC_BAT_ACR, NULL, 0, (void *)&ec_word, 2); in olpc_bat_get_property()
397 ret = olpc_ec_cmd(EC_BAT_SERIAL, NULL, 0, (void *)&ser_buf, 8); in olpc_bat_get_property()
474 ret = olpc_ec_cmd(EC_BAT_EEPROM, &ec_byte, 1, &buf[i], 1); in olpc_bat_eeprom_read()
503 ret = olpc_ec_cmd(EC_BAT_ERRCODE, NULL, 0, &ec_byte, 1); in olpc_bat_error_read()
555 ret = olpc_ec_cmd(EC_BAT_STATUS, NULL, 0, &status, 1); in olpc_bat_init()