/openbmc/linux/drivers/regulator/ |
H A D | cros-ec-regulator.c | 33 return cros_ec_cmd(data->ec_dev, 0, EC_CMD_REGULATOR_ENABLE, &cmd, in cros_ec_regulator_enable() 45 return cros_ec_cmd(data->ec_dev, 0, EC_CMD_REGULATOR_ENABLE, &cmd, in cros_ec_regulator_disable() 58 ret = cros_ec_cmd(data->ec_dev, 0, EC_CMD_REGULATOR_IS_ENABLED, &cmd, in cros_ec_regulator_is_enabled() 85 ret = cros_ec_cmd(data->ec_dev, 0, EC_CMD_REGULATOR_GET_VOLTAGE, &cmd, in cros_ec_regulator_get_voltage() 111 return cros_ec_cmd(data->ec_dev, 0, EC_CMD_REGULATOR_SET_VOLTAGE, &cmd, in cros_ec_regulator_set_voltage() 133 ret = cros_ec_cmd(data->ec_dev, 0, EC_CMD_REGULATOR_GET_INFO, &cmd, in cros_ec_regulator_init_info()
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_typec_vdm.c | 32 ret = cros_ec_cmd(typec->ec, 0, EC_CMD_TYPEC_VDM_RESPONSE, &req, in cros_typec_handle_vdm_attention() 70 ret = cros_ec_cmd(typec->ec, 0, EC_CMD_TYPEC_VDM_RESPONSE, &req, in cros_typec_handle_vdm_response() 116 return cros_ec_cmd(port->typec_data->ec, 0, EC_CMD_TYPEC_CONTROL, &req, in cros_typec_port_amode_enter() 141 return cros_ec_cmd(port->typec_data->ec, 0, EC_CMD_TYPEC_CONTROL, &req, in cros_typec_port_amode_vdm()
|
H A D | cros_typec_switch.c | 48 return cros_ec_cmd(sdata->ec, 0, EC_CMD_TYPEC_CONTROL, &req, sizeof(req), NULL, 0); in cros_typec_cmd_mux_set() 79 return cros_ec_cmd(sdata->ec, 0, EC_CMD_TYPEC_CONTROL, &req, sizeof(req), NULL, 0); in cros_typec_send_clear_event() 90 ret = cros_ec_cmd(sdata->ec, 0, EC_CMD_TYPEC_STATUS, &req, sizeof(req), in cros_typec_check_event()
|
H A D | cros_ec_typec.c | 576 ret = cros_ec_cmd(typec->ec, 0, EC_CMD_USB_PD_MUX_INFO, in cros_typec_configure_mux() 639 if (cros_ec_cmd(typec->ec, 0, EC_CMD_USB_PD_MUX_ACK, &mux_ack, in cros_typec_configure_mux() 808 ret = cros_ec_cmd(typec->ec, 0, EC_CMD_TYPEC_DISCOVERY, &req, sizeof(req), in cros_typec_handle_sop_prime_disc() 891 ret = cros_ec_cmd(typec->ec, 0, EC_CMD_TYPEC_DISCOVERY, &req, sizeof(req), in cros_typec_handle_sop_disc() 924 return cros_ec_cmd(typec->ec, 0, EC_CMD_TYPEC_CONTROL, &req, in cros_typec_send_clear_event() 976 ret = cros_ec_cmd(typec->ec, 0, EC_CMD_TYPEC_STATUS, &req, sizeof(req), in cros_typec_handle_status() 1071 ret = cros_ec_cmd(typec->ec, typec->pd_ctrl_ver, in cros_typec_port_update() 1108 ret = cros_ec_cmd(typec->ec, 1, EC_CMD_GET_CMD_VERSIONS, in cros_typec_get_cmd_version() 1200 ret = cros_ec_cmd(typec->ec, 0, EC_CMD_USB_PD_PORTS, NULL, 0, in cros_typec_probe()
|
H A D | cros_usbpd_notify.c | 74 ret = cros_ec_cmd(ec_dev, 0, EC_CMD_PD_HOST_EVENT_STATUS, in cros_usbpd_get_event_and_notify()
|
H A D | cros_ec_proto.c | 912 ret = cros_ec_cmd(ec->ec_dev, 0, EC_CMD_GET_FEATURES + ec->cmd_offset, in cros_ec_check_features() 1006 int cros_ec_cmd(struct cros_ec_device *ec_dev, in cros_ec_cmd() function 1039 EXPORT_SYMBOL_GPL(cros_ec_cmd);
|
H A D | cros_ec_proto_test.c | 2622 ret = cros_ec_cmd(ec_dev, 0x88, 0x77, out, ARRAY_SIZE(out), in, ARRAY_SIZE(in)); in cros_ec_proto_test_ec_cmd()
|
/openbmc/linux/include/linux/platform_data/ |
H A D | cros_ec_proto.h | 261 int cros_ec_cmd(struct cros_ec_device *ec_dev, unsigned int version, int command, void *outdata,
|
/openbmc/linux/drivers/mfd/ |
H A D | cros_ec_dev.c | 252 retval = cros_ec_cmd(ec->ec_dev, 0, EC_CMD_PCHG_COUNT, NULL, 0, in ec_device_probe()
|