Lines Matching refs:resp
130 struct ec_response_charge_port_count resp; in cros_usbpd_charger_get_num_ports() local
135 NULL, 0, &resp, sizeof(resp)); in cros_usbpd_charger_get_num_ports()
139 return resp.port_count; in cros_usbpd_charger_get_num_ports()
144 struct ec_response_usb_pd_ports resp; in cros_usbpd_charger_get_usbpd_num_ports() local
148 NULL, 0, &resp, sizeof(resp)); in cros_usbpd_charger_get_usbpd_num_ports()
152 return resp.num_ports; in cros_usbpd_charger_get_usbpd_num_ports()
158 struct ec_params_usb_pd_discovery_entry resp; in cros_usbpd_charger_get_discovery_info() local
167 &resp, sizeof(resp)); in cros_usbpd_charger_get_discovery_info()
175 port->port_number, resp.vid, resp.pid, resp.ptype); in cros_usbpd_charger_get_discovery_info()
178 resp.vid); in cros_usbpd_charger_get_discovery_info()
179 snprintf(port->model_name, sizeof(port->model_name), "%x", resp.pid); in cros_usbpd_charger_get_discovery_info()
187 struct ec_response_usb_pd_power_info resp; in cros_usbpd_charger_get_power_info() local
197 &resp, sizeof(resp)); in cros_usbpd_charger_get_power_info()
206 switch (resp.role) { in cros_usbpd_charger_get_power_info()
224 dev_err(dev, "Unknown role %d\n", resp.role); in cros_usbpd_charger_get_power_info()
228 port->psy_voltage_max_design = resp.meas.voltage_max; in cros_usbpd_charger_get_power_info()
229 port->psy_voltage_now = resp.meas.voltage_now; in cros_usbpd_charger_get_power_info()
230 port->psy_current_max = resp.meas.current_max; in cros_usbpd_charger_get_power_info()
231 port->psy_power_max = resp.max_power; in cros_usbpd_charger_get_power_info()
233 switch (resp.type) { in cros_usbpd_charger_get_power_info()
244 if (resp.role == USB_PD_PORT_POWER_SOURCE && resp.dualrole) in cros_usbpd_charger_get_power_info()
263 if (resp.dualrole) in cros_usbpd_charger_get_power_info()
291 port->port_number, resp.type, resp.meas.voltage_max, in cros_usbpd_charger_get_power_info()
292 resp.meas.voltage_now, resp.meas.current_max, in cros_usbpd_charger_get_power_info()
293 resp.meas.current_lim, resp.max_power); in cros_usbpd_charger_get_power_info()