| /linux/drivers/extcon/ |
| H A D | extcon-usbc-tusb320.c | 309 data_role = TYPEC_HOST; in tusb320_typec_irq_handler() 334 data_role = TYPEC_HOST; in tusb320_typec_irq_handler()
|
| H A D | extcon-rtk-type-c.c | 350 typec_set_data_role(type_c->port, TYPEC_HOST); in switch_type_c_dr_mode() 710 if (role == TYPEC_HOST) in type_c_port_dr_set()
|
| /linux/include/linux/usb/ |
| H A D | typec.h | 54 TYPEC_HOST, enumerator
|
| H A D | pd.h | 98 ((data) == TYPEC_HOST ? PD_HEADER_DATA_ROLE : 0) | \
|
| /linux/drivers/usb/typec/ |
| H A D | class.c | 85 if (port->data_role == TYPEC_HOST) in get_pd_product_type() 932 if (to_typec_port(dev->parent)->data_role == TYPEC_HOST) { in typec_partner_set_identity() 1690 [TYPEC_HOST] = "host", 1799 return sprintf(buf, "%s\n", port->data_role == TYPEC_HOST ? in data_role_show() 2731 port->data_role = TYPEC_HOST; in typec_register_port() 2738 port->data_role = TYPEC_HOST; in typec_register_port()
|
| H A D | wusb3801.c | 284 data_role = pwr_role == TYPEC_SOURCE ? TYPEC_HOST : TYPEC_DEVICE; in wusb3801_hw_update()
|
| H A D | rt1719.c | 187 return TYPEC_HOST; in rt1719_get_data_role() 198 if (data_role == TYPEC_HOST) in rt1719_set_data_role()
|
| H A D | anx7411.c | 494 ctx->typec.data_role = (ret & DATA_ROLE) ? TYPEC_HOST : TYPEC_DEVICE; in anx7411_data_role_detect() 501 if (ctx->typec.data_role == TYPEC_HOST) in anx7411_data_role_detect() 969 ret = (int_status & DATA_ROLE) ? TYPEC_HOST : TYPEC_DEVICE; in anx7411_work_func()
|
| H A D | hd3ss3220.c | 232 typec_set_data_role(hd3ss3220->port, TYPEC_HOST); in hd3ss3220_set_role()
|
| H A D | stusb160x.c | 334 if (data_role == TYPEC_HOST) in stusb160x_set_data_role()
|
| /linux/drivers/platform/chrome/ |
| H A D | cros_ec_typec.c | 86 role = (resp.role & PD_CTRL_RESP_ROLE_DATA) ? TYPEC_HOST : in cros_typec_perform_role_swap() 109 role = resp.role & PD_CTRL_RESP_ROLE_DATA ? TYPEC_HOST : TYPEC_DEVICE; in cros_typec_perform_role_swap() 859 TYPEC_HOST : TYPEC_DEVICE); in cros_typec_set_port_params_v1()
|
| /linux/drivers/usb/typec/tcpm/ |
| H A D | tcpm.c | 658 TYPEC_DEVICE : TYPEC_HOST) 662 TYPEC_HOST : TYPEC_DEVICE) 1195 if (data == TYPEC_HOST) in tcpm_set_roles() 1200 if (data == TYPEC_HOST) { in tcpm_set_roles() 1961 return port->data_role == TYPEC_HOST; in tcpm_can_communicate_sop_prime() 1982 if ((port->negotiated_rev == PD_REV20 && port->data_role == TYPEC_HOST) || in tcpm_attempt_vconn_swap_discovery() 3782 (port->data_role == TYPEC_HOST) && rx_sop_type == TCPC_TX_SOP) { in tcpm_pd_rx_handler() 5605 if (port->data_role == TYPEC_HOST) in run_state_machine() 5610 TYPEC_HOST); in run_state_machine() 7069 port->data_role == TYPEC_HOST)) in tcpm_port_type_set()
|
| H A D | wcove.c | 337 ret = wcove_typec_func(wcove, WCOVE_FUNC_ROLE, data == TYPEC_HOST ? in wcove_set_roles()
|
| H A D | fusb302.c | 888 [TYPEC_HOST] = "Host", 904 if (data == TYPEC_HOST) in tcpm_set_roles()
|
| H A D | tcpci.c | 468 if (data == TYPEC_HOST) in tcpci_set_roles()
|
| /linux/drivers/usb/typec/ucsi/ |
| H A D | ucsi.h | 178 #define UCSI_SET_UOR_ROLE(_r_) (((_r_) == TYPEC_HOST ? 1 : 2) << 23)
|
| H A D | ucsi.c | 1166 typec_set_data_role(con->port, TYPEC_HOST); in ucsi_partner_change() 1522 role == TYPEC_HOST)) in ucsi_dr_swap() 1732 typec_set_data_role(con->port, TYPEC_HOST); in ucsi_register_port()
|
| /linux/drivers/usb/typec/tcpm/qcom/ |
| H A D | qcom_pmic_typec_pdphy.c | 443 (data_role == TYPEC_HOST ? MSG_CONFIG_PORT_DATA_ROLE : 0) | in qcom_pmic_typec_pdphy_set_roles()
|
| /linux/drivers/usb/typec/altmodes/ |
| H A D | displayport.c | 767 if (typec_altmode_get_data_role(alt) != TYPEC_HOST) in dp_altmode_probe()
|
| /linux/Documentation/driver-api/usb/ |
| H A D | typec.rst | 73 TYPEC_DEVICE, and with Try.SRC the value must be TYPEC_HOST.
|
| /linux/drivers/usb/typec/tipd/ |
| H A D | core.c | 330 if (role == TYPEC_HOST) in tps6598x_set_data_role()
|