Searched refs:TYPEC_SOURCE (Results 1 – 14 of 14) sorted by relevance
| /Linux-v6.6/drivers/usb/typec/ |
| 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()
|
| D | class.c | 1332 [TYPEC_SOURCE] = "source", 1498 return sprintf(buf, "%s\n", port->pwr_role == TYPEC_SOURCE ? in power_role_show() 1609 port->vconn_role == TYPEC_SOURCE ? "yes" : "no"); in vconn_source_show() 2217 port->pwr_role = TYPEC_SOURCE; in typec_register_port() 2218 port->vconn_role = TYPEC_SOURCE; in typec_register_port() 2240 if (cap->prefer_role == TYPEC_SOURCE) in typec_register_port()
|
| 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()
|
| D | stusb160x.c | 322 return TYPEC_SOURCE; in stusb160x_get_vconn_role() 349 if ((STUSB160X_CC_POWER_ROLE(status) == TYPEC_SOURCE) && in stusb160x_attach()
|
| D | pd.c | 457 [TYPEC_SOURCE] = "source-capabilities",
|
| /Linux-v6.6/drivers/usb/typec/tcpm/ |
| D | tcpm.c | 549 ((port)->try_src_count == 0 && (port)->try_role == TYPEC_SOURCE && \ 572 else if (port->try_role == TYPEC_SOURCE) in tcpm_default_state() 869 if (port->pd_capable && port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_finish() 874 } else if (port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_finish() 990 port->vconn_role = enable ? TYPEC_SOURCE : TYPEC_SINK; in tcpm_set_vconn() 1063 if (role == TYPEC_SOURCE) in tcpm_set_roles() 1146 pdo = tcpm_forge_legacy_pdo(port, port->src_pdo[i], TYPEC_SOURCE); in tcpm_pd_send_source_caps() 1365 if (port->pwr_role == TYPEC_SOURCE) { in tcpm_ams_start() 2013 port->pwr_role == TYPEC_SOURCE && in vdm_run_state_machine() 2273 if (port->pwr_role == TYPEC_SOURCE) in ready_state() [all …]
|
| D | fusb302.c | 875 [TYPEC_SOURCE] = "Source", 894 if (pwr == TYPEC_SOURCE) in tcpm_set_roles()
|
| D | tcpci.c | 431 if (role == TYPEC_SOURCE) in tcpci_set_roles()
|
| /Linux-v6.6/include/linux/usb/ |
| D | typec.h | 55 TYPEC_SOURCE, enumerator 65 return role == TYPEC_SOURCE; in is_source()
|
| D | pd.h | 92 ((pwr) == TYPEC_SOURCE ? PD_HEADER_PWR_ROLE : 0) | \
|
| /Linux-v6.6/drivers/extcon/ |
| 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()
|
| /Linux-v6.6/drivers/usb/typec/ucsi/ |
| D | ucsi.c | 622 ret = ucsi_get_pdos(con, TYPEC_SOURCE, 1, con->src_pdos); in ucsi_get_src_pdos() 669 ret = ucsi_get_pdos(con, TYPEC_SOURCE, 1, caps.pdo); in ucsi_register_partner_pdos() 674 caps.role = TYPEC_SOURCE; in ucsi_register_partner_pdos() 1234 ret = ucsi_get_pdos(con, TYPEC_SOURCE, 0, pd_caps.pdo); in ucsi_register_port() 1239 pd_caps.role = TYPEC_SOURCE; in ucsi_register_port()
|
| D | ucsi.h | 122 #define UCSI_SET_PDR_ROLE(_r_) (((_r_) == TYPEC_SOURCE ? 1 : 2) << 23)
|
| /Linux-v6.6/drivers/platform/chrome/ |
| 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()
|