Home
last modified time | relevance | path

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

/Zephyr-Core-3.4.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()
733 if (policy_check(dev, (pe->data_role == TC_ROLE_UFP) ? CHECK_DATA_ROLE_SWAP_TO_DFP in pe_drs_evaluate_swap_entry()
766 pe_set_data_role(dev, (pe->data_role == TC_ROLE_UFP) in pe_drs_evaluate_swap_run()
769 policy_notify(dev, (pe->data_role == TC_ROLE_UFP) ? DATA_ROLE_IS_UFP in pe_drs_evaluate_swap_run()
828 pe->data_role = (pe->data_role == TC_ROLE_UFP) ? TC_ROLE_DFP : TC_ROLE_UFP; in pe_drs_send_swap_run()
830 tcpc_set_roles(data->tcpc, pe->power_role, pe->data_role); in pe_drs_send_swap_run()
832 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.4.0/include/zephyr/drivers/usb_c/
Dusbc_tcpc.h138 enum tc_data_role data_role);
445 enum tc_data_role data_role) in tcpc_set_roles() argument
454 return api->set_roles(dev, power_role, data_role); in tcpc_set_roles()
/Zephyr-Core-3.4.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()