Searched refs:TYPEC_SOURCE (Results 1 – 16 of 16) sorted by relevance
| /linux/drivers/usb/typec/ |
| A D | wusb3801.c | 103 return TYPEC_SOURCE; in wusb3801_get_default_role() 108 if (wusb3801->cap.prefer_role == TYPEC_SOURCE) in wusb3801_get_default_role() 109 return TYPEC_SOURCE; in wusb3801_get_default_role() 148 case TYPEC_SOURCE: in wusb3801_map_try_role() 259 pwr_role = TYPEC_SOURCE; in wusb3801_hw_update() 284 data_role = pwr_role == TYPEC_SOURCE ? TYPEC_HOST : TYPEC_DEVICE; in wusb3801_hw_update()
|
| A D | anx7411.c | 493 ctx->typec.vconn_role = (ret & VCONN_STATUS) ? TYPEC_SOURCE : TYPEC_SINK; in anx7411_data_role_detect() 513 ctx->typec.power_role = (ret & SINK_STATUS) ? TYPEC_SINK : TYPEC_SOURCE; in anx7411_power_role_detect() 515 if (ctx->typec.power_role == TYPEC_SOURCE) { in anx7411_power_role_detect() 972 ret = (int_status & SINK_STATUS) ? TYPEC_SINK : TYPEC_SOURCE; in anx7411_work_func()
|
| A D | class.c | 1405 [TYPEC_SOURCE] = "source", 1571 return sprintf(buf, "%s\n", port->pwr_role == TYPEC_SOURCE ? in power_role_show() 1682 port->vconn_role == TYPEC_SOURCE ? "yes" : "no"); in vconn_source_show() 2396 port->pwr_role = TYPEC_SOURCE; in typec_register_port() 2397 port->vconn_role = TYPEC_SOURCE; in typec_register_port() 2419 if (cap->prefer_role == TYPEC_SOURCE) in typec_register_port()
|
| A D | stusb160x.c | 322 return TYPEC_SOURCE; in stusb160x_get_vconn_role() 349 if ((STUSB160X_CC_POWER_ROLE(status) == TYPEC_SOURCE) && in stusb160x_attach()
|
| A D | pd.c | 455 [TYPEC_SOURCE] = "source-capabilities",
|
| /linux/drivers/usb/typec/tcpm/ |
| A D | tcpm.c | 1145 if (role == TYPEC_SOURCE) in tcpm_set_roles() 1453 if (port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_start() 1812 if (port->vconn_role != TYPEC_SOURCE) in tcpm_can_communicate_sop_prime() 1847 if (port->vconn_role == TYPEC_SOURCE) in tcpm_attempt_vconn_swap_discovery() 2881 if (port->pwr_role == TYPEC_SOURCE) in ready_state() 3016 caps.role = TYPEC_SOURCE; in tcpm_register_source_caps() 4516 if (port->pwr_role == TYPEC_SOURCE) in hard_reset_state() 4527 if (port->pwr_role == TYPEC_SOURCE) in unattached_state() 5236 if (port->pwr_role == TYPEC_SOURCE) in run_state_machine() 5461 if (port->pwr_role == TYPEC_SOURCE) in run_state_machine() [all …]
|
| A D | fusb302.c | 875 [TYPEC_SOURCE] = "Source", 894 if (pwr == TYPEC_SOURCE) in tcpm_set_roles()
|
| A D | tcpci.c | 460 if (role == TYPEC_SOURCE) in tcpci_set_roles()
|
| /linux/include/linux/usb/ |
| A D | typec.h | 56 TYPEC_SOURCE, enumerator 66 return role == TYPEC_SOURCE; in is_source()
|
| A D | pd.h | 92 ((pwr) == TYPEC_SOURCE ? PD_HEADER_PWR_ROLE : 0) | \
|
| /linux/drivers/extcon/ |
| A D | extcon-usbc-tusb320.c | 308 pwr_role = TYPEC_SOURCE; in tusb320_typec_irq_handler() 332 pwr_role = TYPEC_SOURCE; in tusb320_typec_irq_handler()
|
| A D | extcon-rtk-type-c.c | 351 typec_set_pwr_role(type_c->port, TYPEC_SOURCE); in switch_type_c_dr_mode()
|
| /linux/drivers/platform/chrome/ |
| A D | cros_ec_typec.c | 708 typec_set_pwr_role(port, resp->role ? TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v0() 730 TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v1() 732 TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v1() 1000 caps_desc.role = TYPEC_SOURCE; in cros_typec_register_partner_pdos()
|
| /linux/drivers/usb/typec/ucsi/ |
| A D | ucsi.h | 159 #define UCSI_SET_PDR_ROLE(_r_) (((_r_) == TYPEC_SOURCE ? 1 : 2) << 23)
|
| A D | ucsi.c | 710 ret = ucsi_get_pdos(con, TYPEC_SOURCE, 1, con->src_pdos); in ucsi_get_src_pdos() 839 pd_cap = ucsi_get_pd_caps(con, TYPEC_SOURCE, false); in ucsi_register_device_pdos() 862 cap = ucsi_get_pd_caps(con, TYPEC_SOURCE, true); in ucsi_register_partner_pdos()
|
| /linux/drivers/usb/typec/tcpm/qcom/ |
| A D | qcom_pmic_typec_pdphy.c | 443 (power_role == TYPEC_SOURCE ? MSG_CONFIG_PORT_POWER_ROLE : 0)); in qcom_pmic_typec_pdphy_set_roles()
|
Completed in 67 milliseconds