Home
last modified time | relevance | path

Searched refs:cros_ec_cmd (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/drivers/regulator/
H A Dcros-ec-regulator.c33 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 Dcros_typec_vdm.c32 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 Dcros_typec_switch.c48 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 Dcros_ec_typec.c576 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 Dcros_usbpd_notify.c74 ret = cros_ec_cmd(ec_dev, 0, EC_CMD_PD_HOST_EVENT_STATUS, in cros_usbpd_get_event_and_notify()
H A Dcros_ec_proto.c912 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 Dcros_ec_proto_test.c2622 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 Dcros_ec_proto.h261 int cros_ec_cmd(struct cros_ec_device *ec_dev, unsigned int version, int command, void *outdata,
/openbmc/linux/drivers/mfd/
H A Dcros_ec_dev.c252 retval = cros_ec_cmd(ec->ec_dev, 0, EC_CMD_PCHG_COUNT, NULL, 0, in ec_device_probe()