Searched refs:olpc_ec_cmd (Results 1 - 8 of 8) sorted by relevance

/linux-4.1.27/include/linux/
H A Dolpc-ec.h32 extern int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf,
37 static inline int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, olpc_ec_cmd() function
/linux-4.1.27/drivers/power/
H A Dolpc_battery.c67 ret = olpc_ec_cmd(EC_BAT_STATUS, NULL, 0, &status, 1); olpc_ac_get_prop()
125 ret = olpc_ec_cmd(EC_BAT_ERRCODE, NULL, 0, &ec_byte, 1); olpc_bat_get_health()
163 ret = olpc_ec_cmd(EC_BAT_EEPROM, &ec_byte, 1, &ec_byte, 1); olpc_bat_get_mfr()
188 ret = olpc_ec_cmd(EC_BAT_EEPROM, &ec_byte, 1, &ec_byte, 1); olpc_bat_get_tech()
218 ret = olpc_ec_cmd(EC_BAT_EEPROM, &ec_byte, 1, &ec_byte, 1); olpc_bat_get_charge_full_design()
259 ret = olpc_ec_cmd(EC_BAT_SOC, NULL, 0, &soc, 1); olpc_bat_get_charge_now()
283 ret = olpc_ec_cmd(EC_BAT_EEPROM, &ec_byte, 1, &ec_byte, 1); olpc_bat_get_voltage_max_design()
332 ret = olpc_ec_cmd(EC_BAT_STATUS, NULL, 0, &ec_byte, 1); olpc_bat_get_property()
387 ret = olpc_ec_cmd(EC_BAT_VOLTAGE, NULL, 0, (void *)&ec_word, 2); olpc_bat_get_property()
395 ret = olpc_ec_cmd(EC_BAT_CURRENT, NULL, 0, (void *)&ec_word, 2); olpc_bat_get_property()
402 ret = olpc_ec_cmd(EC_BAT_SOC, NULL, 0, &ec_byte, 1); olpc_bat_get_property()
426 ret = olpc_ec_cmd(EC_BAT_TEMP, NULL, 0, (void *)&ec_word, 2); olpc_bat_get_property()
433 ret = olpc_ec_cmd(EC_AMB_TEMP, NULL, 0, (void *)&ec_word, 2); olpc_bat_get_property()
440 ret = olpc_ec_cmd(EC_BAT_ACR, NULL, 0, (void *)&ec_word, 2); olpc_bat_get_property()
447 ret = olpc_ec_cmd(EC_BAT_SERIAL, NULL, 0, (void *)&ser_buf, 8); olpc_bat_get_property()
531 ret = olpc_ec_cmd(EC_BAT_EEPROM, &ec_byte, 1, &buf[i], 1); olpc_bat_eeprom_read()
560 ret = olpc_ec_cmd(EC_BAT_ERRCODE, NULL, 0, &ec_byte, 1); olpc_bat_error_read()
620 ret = olpc_ec_cmd(EC_BAT_STATUS, NULL, 0, &status, 1); olpc_battery_probe()
/linux-4.1.27/arch/x86/platform/olpc/
H A Dolpc.c236 return olpc_ec_cmd(EC_WRITE_EXT_SCI_MASK, (void *) &ec_word, 2, olpc_ec_mask_write()
240 return olpc_ec_cmd(EC_WRITE_SCI_MASK, &ec_byte, 1, NULL, 0); olpc_ec_mask_write()
251 ret = olpc_ec_cmd(EC_EXT_SCI_QUERY, olpc_ec_sci_query()
257 ret = olpc_ec_cmd(EC_SCI_QUERY, NULL, 0, &ec_byte, 1); olpc_ec_sci_query()
323 olpc_ec_cmd(EC_FIRMWARE_REV, NULL, 0, olpc_xo1_ec_probe()
345 return olpc_ec_cmd(EC_SET_SCI_INHIBIT, NULL, 0, NULL, 0); olpc_xo1_ec_suspend()
351 olpc_ec_cmd(EC_SET_SCI_INHIBIT_RELEASE, NULL, 0, NULL, 0); olpc_xo1_ec_resume()
357 olpc_ec_cmd(EC_WAKE_UP_WLAN, NULL, 0, NULL, 0); olpc_xo1_ec_resume()
358 olpc_ec_cmd(EC_WAKE_UP_WLAN, NULL, 0, NULL, 0); olpc_xo1_ec_resume()
H A Dolpc-xo1-sci.c83 if (olpc_ec_cmd(EC_READ_EB_MODE, NULL, 0, &state, 1)) { send_ebook_state()
167 * This is handled in a workqueue because olpc_ec_cmd can be slow (and
/linux-4.1.27/drivers/platform/olpc/
H A Dolpc-ec.c90 /* Finished, wake up olpc_ec_cmd() */ olpc_ec_worker()
115 int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, size_t outlen) olpc_ec_cmd() function
149 EXPORT_SYMBOL_GPL(olpc_ec_cmd); variable
199 olpc_ec_cmd(ec_cmd[0], (ec_cmd_bytes == 0) ? NULL : &ec_cmd[1], ec_dbgfs_cmd_write()
/linux-4.1.27/drivers/platform/x86/
H A Dxo1-rfkill.c32 r = olpc_ec_cmd(cmd, NULL, 0, NULL, 0); rfkill_set_block()
/linux-4.1.27/drivers/staging/olpc_dcon/
H A Dolpc_dcon.c129 x = olpc_ec_cmd(EC_DCON_POWER_MODE, &pm, 1, NULL, 0); dcon_bus_stabilize()
147 olpc_ec_cmd(EC_DCON_POWER_MODE, &pm, 1, NULL, 0); dcon_bus_stabilize()
212 x = olpc_ec_cmd(EC_DCON_POWER_MODE, &pm, 1, NULL, 0); dcon_sleep()
/linux-4.1.27/drivers/net/wireless/libertas/
H A Dif_usb.c185 olpc_ec_cmd(0x25, NULL, 0, NULL, 0); if_usb_reset_olpc_card()

Completed in 361 milliseconds