Home
last modified time | relevance | path

Searched refs:data_role (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.7.0/subsys/usb/usb_c/
Dusbc_pe_common.c180 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()
Dusbc_pe_common_internal.h203 enum tc_data_role data_role; member
Dusbc_pe_src_states.c498 pe->data_role = TC_ROLE_DFP; in pe_src_transition_to_default_entry()
Dusbc_pe_snk_states.c580 pe->data_role = TC_ROLE_UFP; in pe_snk_transition_to_default_entry()
/Zephyr-Core-3.7.0/include/zephyr/drivers/usb_c/
Dusbc_tcpc.h140 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/
Ducpd_stm32.c524 enum tc_data_role data_role) in ucpd_set_roles() argument
529 data->msg_header.dr = data_role; in ucpd_set_roles()
Ducpd_numaker.c1908 enum tc_data_role data_role) in numaker_tcpc_set_roles() argument
1924 if (data_role == TC_ROLE_DFP) { in numaker_tcpc_set_roles()