Searched refs:TYPEC_SOURCE (Results 1 – 14 of 14) sorted by relevance
/openbmc/linux/drivers/usb/typec/ |
H 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()
|
H A D | class.c | 1343 [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 D | anx7411.c | 492 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 D | stusb160x.c | 322 return TYPEC_SOURCE; in stusb160x_get_vconn_role() 349 if ((STUSB160X_CC_POWER_ROLE(status) == TYPEC_SOURCE) && in stusb160x_attach()
|
H A D | pd.c | 457 [TYPEC_SOURCE] = "source-capabilities",
|
/openbmc/linux/drivers/usb/typec/tcpm/ |
H A D | tcpm.c | 1063 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 D | fusb302.c | 875 [TYPEC_SOURCE] = "Source", 894 if (pwr == TYPEC_SOURCE) in tcpm_set_roles()
|
H A D | tcpci.c | 431 if (role == TYPEC_SOURCE) in tcpci_set_roles()
|
/openbmc/linux/include/linux/usb/ |
H A D | typec.h | 55 TYPEC_SOURCE, enumerator 65 return role == TYPEC_SOURCE; in is_source()
|
H A D | pd.h | 92 ((pwr) == TYPEC_SOURCE ? PD_HEADER_PWR_ROLE : 0) | \
|
/openbmc/linux/drivers/extcon/ |
H A D | extcon-usbc-tusb320.c | 307 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 D | ucsi.c | 644 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 D | ucsi.h | 133 #define UCSI_SET_PDR_ROLE(_r_) (((_r_) == TYPEC_SOURCE ? 1 : 2) << 23)
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_ec_typec.c | 661 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()
|