/Linux-v5.10/drivers/power/supply/ |
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() 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-v5.10/drivers/platform/olpc/ |
D | olpc-ec.c | 127 int olpc_ec_cmd(u8 cmd, u8 *inbuf, size_t inlen, u8 *outbuf, size_t outlen) in olpc_ec_cmd() function 164 EXPORT_SYMBOL_GPL(olpc_ec_cmd); 199 return olpc_ec_cmd(EC_WRITE_EXT_SCI_MASK, (void *)&ec_word, 2, NULL, 0); in olpc_ec_mask_write() 203 return olpc_ec_cmd(EC_WRITE_SCI_MASK, &ec_byte, 1, NULL, 0); in olpc_ec_mask_write() 233 ret = olpc_ec_cmd(EC_EXT_SCI_QUERY, NULL, 0, (void *)&ec_word, 2); in olpc_ec_sci_query() 239 ret = olpc_ec_cmd(EC_SCI_QUERY, NULL, 0, &ec_byte, 1); in olpc_ec_sci_query() 296 olpc_ec_cmd(ec_cmd[0], (ec_cmd_bytes == 0) ? NULL : &ec_cmd[1], in ec_dbgfs_cmd_write() 361 ret = olpc_ec_cmd(EC_DCON_POWER_MODE, &ec_byte, 1, NULL, 0); in olpc_ec_set_dcon_power() 428 err = olpc_ec_cmd(EC_FIRMWARE_REV, NULL, 0, &ec->version, 1); in olpc_ec_probe()
|
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-v5.10/arch/x86/platform/olpc/ |
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()
|
D | olpc-xo1-sci.c | 78 if (olpc_ec_cmd(EC_READ_EB_MODE, NULL, 0, &state, 1)) { in send_ebook_state()
|
/Linux-v5.10/include/linux/ |
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-v5.10/drivers/platform/x86/ |
D | xo1-rfkill.c | 28 r = olpc_ec_cmd(cmd, NULL, 0, NULL, 0); in rfkill_set_block()
|
/Linux-v5.10/drivers/staging/olpc_dcon/ |
D | olpc_dcon.c | 125 x = olpc_ec_cmd(EC_DCON_POWER_MODE, &pm, 1, NULL, 0); in dcon_bus_stabilize() 143 olpc_ec_cmd(EC_DCON_POWER_MODE, &pm, 1, NULL, 0); in dcon_bus_stabilize() 208 x = olpc_ec_cmd(EC_DCON_POWER_MODE, &pm, 1, NULL, 0); in dcon_sleep()
|
/Linux-v5.10/drivers/net/wireless/marvell/libertas/ |
D | if_usb.c | 183 olpc_ec_cmd(0x25, NULL, 0, NULL, 0); in if_usb_reset_olpc_card()
|