Home
last modified time | relevance | path

Searched refs:olpc_ec_cmd (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/power/supply/
H A Dolpc_battery.c73 ret = olpc_ec_cmd(EC_BAT_STATUS, NULL, 0, &status, 1); in olpc_ac_get_prop()
128 ret = olpc_ec_cmd(EC_BAT_ERRCODE, NULL, 0, &ec_byte, 1); in olpc_bat_get_health()
166 ret = olpc_ec_cmd(EC_BAT_EEPROM, &ec_byte, 1, &ec_byte, 1); in olpc_bat_get_mfr()
191 ret = olpc_ec_cmd(EC_BAT_EEPROM, &ec_byte, 1, &ec_byte, 1); in olpc_bat_get_tech()
221 ret = olpc_ec_cmd(EC_BAT_EEPROM, &ec_byte, 1, &ec_byte, 1); in olpc_bat_get_charge_full_design()
262 ret = olpc_ec_cmd(EC_BAT_SOC, NULL, 0, &soc, 1); in olpc_bat_get_charge_now()
286 ret = olpc_ec_cmd(EC_BAT_EEPROM, &ec_byte, 1, &ec_byte, 1); in olpc_bat_get_voltage_max_design()
344 ret = olpc_ec_cmd(EC_BAT_STATUS, NULL, 0, &ec_byte, 1); in olpc_bat_get_property()
399 ret = olpc_ec_cmd(EC_BAT_VOLTAGE, NULL, 0, (void *)&ec_word, 2); in olpc_bat_get_property()
407 ret = olpc_ec_cmd(EC_BAT_CURRENT, NULL, 0, (void *)&ec_word, 2); in olpc_bat_get_property()
[all …]
/linux/drivers/platform/olpc/
H A Dolpc-ec.c126 int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, size_t outlen) in olpc_ec_cmd() function
163 EXPORT_SYMBOL_GPL(olpc_ec_cmd);
198 return olpc_ec_cmd(EC_WRITE_EXT_SCI_MASK, (void *)&ec_word, 2, NULL, 0); in olpc_ec_mask_write()
202 return olpc_ec_cmd(EC_WRITE_SCI_MASK, &ec_byte, 1, NULL, 0); in olpc_ec_mask_write()
232 ret = olpc_ec_cmd(EC_EXT_SCI_QUERY, NULL, 0, (void *)&ec_word, 2); in olpc_ec_sci_query()
238 ret = olpc_ec_cmd(EC_SCI_QUERY, NULL, 0, &ec_byte, 1); in olpc_ec_sci_query()
295 olpc_ec_cmd(ec_cmd[0], (ec_cmd_bytes == 0) ? NULL : &ec_cmd[1], in ec_dbgfs_cmd_write()
357 ret = olpc_ec_cmd(EC_DCON_POWER_MODE, &ec_byte, 1, NULL, 0); in olpc_ec_set_dcon_power()
426 err = olpc_ec_cmd(EC_FIRMWARE_REV, NULL, 0, &ec->version, 1); in olpc_ec_probe()
H A Dolpc-xo175-ec.c581 return olpc_ec_cmd(CMD_WRITE_EXT_SCI_MASK, args, 2, NULL, 0); in olpc_xo175_ec_set_event_mask()
587 olpc_ec_cmd(CMD_POWER_OFF, NULL, 0, NULL, 0); in olpc_xo175_ec_power_off()
608 olpc_ec_cmd(CMD_SUSPEND_HINT, (void *)&hintargs, sizeof(hintargs), in olpc_xo175_ec_suspend()
639 olpc_ec_cmd(CMD_SUSPEND_HINT, &x, 1, NULL, 0); in olpc_xo175_ec_resume()
/linux/arch/x86/platform/olpc/
H A Dolpc.c244 return olpc_ec_cmd(EC_SET_SCI_INHIBIT, NULL, 0, NULL, 0); in olpc_xo1_ec_suspend()
250 olpc_ec_cmd(EC_SET_SCI_INHIBIT_RELEASE, NULL, 0, NULL, 0); in olpc_xo1_ec_resume()
256 olpc_ec_cmd(EC_WAKE_UP_WLAN, NULL, 0, NULL, 0); in olpc_xo1_ec_resume()
257 olpc_ec_cmd(EC_WAKE_UP_WLAN, NULL, 0, NULL, 0); in olpc_xo1_ec_resume()
/linux/include/linux/
H A Dolpc-ec.h48 extern int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf,
63 static inline int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, in olpc_ec_cmd() function
/linux/drivers/net/wireless/marvell/libertas/
H A Dif_usb.c183 olpc_ec_cmd(0x25, NULL, 0, NULL, 0); in if_usb_reset_olpc_card()