/linux-6.3-rc2/drivers/power/supply/ |
A D | olpc_battery.c | 73 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() 344 ret = olpc_ec_cmd(EC_BAT_STATUS, NULL, 0, &ec_byte, 1); in olpc_bat_get_property() 414 ret = olpc_ec_cmd(EC_BAT_SOC, NULL, 0, &ec_byte, 1); in olpc_bat_get_property() 567 ret = olpc_ec_cmd(EC_BAT_ERRCODE, NULL, 0, &ec_byte, 1); in olpc_bat_error_read() 649 ret = olpc_ec_cmd(EC_FIRMWARE_REV, NULL, 0, &ecver, 1); in olpc_battery_probe() [all …]
|
/linux-6.3-rc2/drivers/platform/olpc/ |
A D | olpc-ec.c | 126 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() 360 ret = olpc_ec_cmd(EC_DCON_POWER_MODE, &ec_byte, 1, NULL, 0); in olpc_ec_set_dcon_power() 429 err = olpc_ec_cmd(EC_FIRMWARE_REV, NULL, 0, &ec->version, 1); in olpc_ec_probe()
|
A D | olpc-xo175-ec.c | 581 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-6.3-rc2/arch/x86/platform/olpc/ |
A D | olpc.c | 244 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()
|
A D | olpc-xo1-sci.c | 78 if (olpc_ec_cmd(EC_READ_EB_MODE, NULL, 0, &state, 1)) { in send_ebook_state()
|
/linux-6.3-rc2/include/linux/ |
A D | olpc-ec.h | 48 extern int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, 61 static inline int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, in olpc_ec_cmd() function
|
/linux-6.3-rc2/drivers/platform/x86/ |
A D | xo1-rfkill.c | 28 r = olpc_ec_cmd(cmd, NULL, 0, NULL, 0); in rfkill_set_block()
|
/linux-6.3-rc2/drivers/staging/olpc_dcon/ |
A D | olpc_dcon.c | 126 x = olpc_ec_cmd(EC_DCON_POWER_MODE, &pm, 1, NULL, 0); in dcon_bus_stabilize() 144 olpc_ec_cmd(EC_DCON_POWER_MODE, &pm, 1, NULL, 0); in dcon_bus_stabilize() 209 x = olpc_ec_cmd(EC_DCON_POWER_MODE, &pm, 1, NULL, 0); in dcon_sleep()
|
/linux-6.3-rc2/drivers/net/wireless/marvell/libertas/ |
A D | if_usb.c | 183 olpc_ec_cmd(0x25, NULL, 0, NULL, 0); in if_usb_reset_olpc_card()
|