Home
last modified time | relevance | path

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

/openbmc/linux/drivers/usb/typec/
H A 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()
H A Dclass.c1343 [TYPEC_SOURCE] = "source",
1509 return sprintf(buf, "%s\n", port->pwr_role == TYPEC_SOURCE ? in power_role_show()
1620 port->vconn_role == TYPEC_SOURCE ? "yes" : "no"); in vconn_source_show()
2229 port->pwr_role = TYPEC_SOURCE; in typec_register_port()
2230 port->vconn_role = TYPEC_SOURCE; in typec_register_port()
2252 if (cap->prefer_role == TYPEC_SOURCE) in typec_register_port()
H A 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()
H A Dstusb160x.c322 return TYPEC_SOURCE; in stusb160x_get_vconn_role()
349 if ((STUSB160X_CC_POWER_ROLE(status) == TYPEC_SOURCE) && in stusb160x_attach()
H A Dpd.c457 [TYPEC_SOURCE] = "source-capabilities",
/openbmc/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c1063 if (role == TYPEC_SOURCE) in tcpm_set_roles()
1365 if (port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_start()
2280 if (port->pwr_role == TYPEC_SOURCE) in ready_state()
2414 caps.role = TYPEC_SOURCE; in tcpm_register_source_caps()
3832 if (port->pwr_role == TYPEC_SOURCE) in hard_reset_state()
3842 if (port->pwr_role == TYPEC_SOURCE) in unattached_state()
4495 if (port->pwr_role == TYPEC_SOURCE) in run_state_machine()
4702 if (port->pwr_role == TYPEC_SOURCE) in run_state_machine()
4823 if (port->pwr_role == TYPEC_SOURCE) in run_state_machine()
4829 if (port->pwr_role == TYPEC_SOURCE) in run_state_machine()
[all …]
H A Dfusb302.c875 [TYPEC_SOURCE] = "Source",
894 if (pwr == TYPEC_SOURCE) in tcpm_set_roles()
H A Dtcpci.c431 if (role == TYPEC_SOURCE) in tcpci_set_roles()
/openbmc/linux/include/linux/usb/
H A Dtypec.h55 TYPEC_SOURCE, enumerator
65 return role == TYPEC_SOURCE; in is_source()
H A Dpd.h92 ((pwr) == TYPEC_SOURCE ? PD_HEADER_PWR_ROLE : 0) | \
/openbmc/linux/drivers/extcon/
H A Dextcon-usbc-tusb320.c307 pwr_role = TYPEC_SOURCE; in tusb320_typec_irq_handler()
331 pwr_role = TYPEC_SOURCE; in tusb320_typec_irq_handler()
/openbmc/linux/drivers/usb/typec/ucsi/
H A Ducsi.c644 ret = ucsi_get_pdos(con, TYPEC_SOURCE, 1, con->src_pdos); in ucsi_get_src_pdos()
691 ret = ucsi_get_pdos(con, TYPEC_SOURCE, 1, caps.pdo); in ucsi_register_partner_pdos()
696 caps.role = TYPEC_SOURCE; in ucsi_register_partner_pdos()
1274 ret = ucsi_get_pdos(con, TYPEC_SOURCE, 0, pd_caps.pdo); in ucsi_register_port()
1279 pd_caps.role = TYPEC_SOURCE; in ucsi_register_port()
H A Ducsi.h133 #define UCSI_SET_PDR_ROLE(_r_) (((_r_) == TYPEC_SOURCE ? 1 : 2) << 23)
/openbmc/linux/drivers/platform/chrome/
H A Dcros_ec_typec.c661 typec_set_pwr_role(port, resp->role ? TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v0()
683 TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v1()
685 TYPEC_SOURCE : TYPEC_SINK); in cros_typec_set_port_params_v1()
953 caps_desc.role = TYPEC_SOURCE; in cros_typec_register_partner_pdos()