Home
last modified time | relevance | path

Searched refs:TYPEC_SOURCE (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/drivers/usb/typec/
Dwusb3801.c103 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()
Dclass.c1314 [TYPEC_SOURCE] = "source",
1480 return sprintf(buf, "%s\n", port->pwr_role == TYPEC_SOURCE ? in power_role_show()
1591 port->vconn_role == TYPEC_SOURCE ? "yes" : "no"); in vconn_source_show()
2189 port->pwr_role = TYPEC_SOURCE; in typec_register_port()
2190 port->vconn_role = TYPEC_SOURCE; in typec_register_port()
2212 if (cap->prefer_role == TYPEC_SOURCE) in typec_register_port()
Danx7411.c492 ctx->typec.vconn_role = (ret & VCONN_STATUS) ? TYPEC_SOURCE : TYPEC_SINK; in anx7411_data_role_detect()
512 ctx->typec.power_role = (ret & SINK_STATUS) ? TYPEC_SINK : TYPEC_SOURCE; in anx7411_power_role_detect()
514 if (ctx->typec.power_role == TYPEC_SOURCE) { in anx7411_power_role_detect()
971 ret = (int_status & SINK_STATUS) ? TYPEC_SINK : TYPEC_SOURCE; in anx7411_work_func()
Dstusb160x.c322 return TYPEC_SOURCE; in stusb160x_get_vconn_role()
349 if ((STUSB160X_CC_POWER_ROLE(status) == TYPEC_SOURCE) && in stusb160x_attach()
Dpd.c451 [TYPEC_SOURCE] = "source-capabilities",
/linux-6.1.9/drivers/usb/typec/tcpm/
Dtcpm.c540 ((port)->try_src_count == 0 && (port)->try_role == TYPEC_SOURCE && \
563 else if (port->try_role == TYPEC_SOURCE) in tcpm_default_state()
860 if (port->pd_capable && port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_finish()
865 } else if (port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_finish()
981 port->vconn_role = enable ? TYPEC_SOURCE : TYPEC_SINK; in tcpm_set_vconn()
1054 if (role == TYPEC_SOURCE) in tcpm_set_roles()
1137 pdo = tcpm_forge_legacy_pdo(port, port->src_pdo[i], TYPEC_SOURCE); in tcpm_pd_send_source_caps()
1356 if (port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_start()
1982 port->pwr_role == TYPEC_SOURCE && in vdm_run_state_machine()
2241 if (port->pwr_role == TYPEC_SOURCE) in ready_state()
[all …]
Dfusb302.c875 [TYPEC_SOURCE] = "Source",
894 if (pwr == TYPEC_SOURCE) in tcpm_set_roles()
Dtcpci.c422 if (role == TYPEC_SOURCE) in tcpci_set_roles()
/linux-6.1.9/include/linux/usb/
Dtypec.h54 TYPEC_SOURCE, enumerator
64 return role == TYPEC_SOURCE; in is_source()
Dpd.h92 ((pwr) == TYPEC_SOURCE ? PD_HEADER_PWR_ROLE : 0) | \
/linux-6.1.9/drivers/extcon/
Dextcon-usbc-tusb320.c290 role = TYPEC_SOURCE; in tusb320_typec_irq_handler()
296 typec_set_data_role(port, role == TYPEC_SOURCE ? in tusb320_typec_irq_handler()
/linux-6.1.9/drivers/platform/chrome/
Dcros_ec_typec.c691 typec_set_pwr_role(port, resp->role ? TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v0()
713 TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v1()
715 TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v1()
983 caps_desc.role = TYPEC_SOURCE; in cros_typec_register_partner_pdos()
/linux-6.1.9/drivers/usb/typec/ucsi/
Ducsi.h121 #define UCSI_SET_PDR_ROLE(_r_) (((_r_) == TYPEC_SOURCE ? 1 : 2) << 23)