Searched refs:data_role (Results 1 – 7 of 7) sorted by relevance
/Zephyr-Core-3.7.0/subsys/usb/usb_c/ |
D | usbc_pe_common.c | 180 pe->data_role = dr; in pe_set_data_role() 183 tcpc_set_roles(data->tcpc, pe->power_role, pe->data_role); in pe_set_data_role() 193 return data->pe->data_role; in pe_get_data_role() 739 if (policy_check(dev, (pe->data_role == TC_ROLE_UFP) ? CHECK_DATA_ROLE_SWAP_TO_DFP in pe_drs_evaluate_swap_entry() 772 pe_set_data_role(dev, (pe->data_role == TC_ROLE_UFP) in pe_drs_evaluate_swap_run() 775 policy_notify(dev, (pe->data_role == TC_ROLE_UFP) ? DATA_ROLE_IS_UFP in pe_drs_evaluate_swap_run() 834 pe->data_role = (pe->data_role == TC_ROLE_UFP) ? TC_ROLE_DFP : TC_ROLE_UFP; in pe_drs_send_swap_run() 836 tcpc_set_roles(data->tcpc, pe->power_role, pe->data_role); in pe_drs_send_swap_run() 838 policy_notify(dev, (pe->data_role == TC_ROLE_UFP) ? DATA_ROLE_IS_UFP in pe_drs_send_swap_run()
|
D | usbc_pe_common_internal.h | 203 enum tc_data_role data_role; member
|
D | usbc_pe_src_states.c | 498 pe->data_role = TC_ROLE_DFP; in pe_src_transition_to_default_entry()
|
D | usbc_pe_snk_states.c | 580 pe->data_role = TC_ROLE_UFP; in pe_snk_transition_to_default_entry()
|
/Zephyr-Core-3.7.0/include/zephyr/drivers/usb_c/ |
D | usbc_tcpc.h | 140 enum tc_data_role data_role); 449 enum tc_data_role data_role) in tcpc_set_roles() argument 458 return api->set_roles(dev, power_role, data_role); in tcpc_set_roles()
|
/Zephyr-Core-3.7.0/drivers/usb_c/tcpc/ |
D | ucpd_stm32.c | 524 enum tc_data_role data_role) in ucpd_set_roles() argument 529 data->msg_header.dr = data_role; in ucpd_set_roles()
|
D | ucpd_numaker.c | 1908 enum tc_data_role data_role) in numaker_tcpc_set_roles() argument 1924 if (data_role == TC_ROLE_DFP) { in numaker_tcpc_set_roles()
|