Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/usb/usb_c/
Dusbc_pe_common.c194 pe->data_role = dr; in pe_set_data_role()
197 tcpc_set_roles(data->tcpc, pe->power_role, pe->data_role); in pe_set_data_role()
207 return data->pe->data_role; in pe_get_data_role()
753 if (policy_check(dev, (pe->data_role == TC_ROLE_UFP) ? CHECK_DATA_ROLE_SWAP_TO_DFP in pe_drs_evaluate_swap_entry()
786 pe_set_data_role(dev, (pe->data_role == TC_ROLE_UFP) in pe_drs_evaluate_swap_run()
789 policy_notify(dev, (pe->data_role == TC_ROLE_UFP) ? DATA_ROLE_IS_UFP in pe_drs_evaluate_swap_run()
848 pe->data_role = (pe->data_role == TC_ROLE_UFP) ? TC_ROLE_DFP : TC_ROLE_UFP; in pe_drs_send_swap_run()
850 tcpc_set_roles(data->tcpc, pe->power_role, pe->data_role); in pe_drs_send_swap_run()
852 policy_notify(dev, (pe->data_role == TC_ROLE_UFP) ? DATA_ROLE_IS_UFP in pe_drs_send_swap_run()
Dusbc_pe_common_internal.h205 enum tc_data_role data_role; member
Dusbc_pe_src_states.c523 pe->data_role = TC_ROLE_DFP; in pe_src_transition_to_default_entry()
Dusbc_pe_snk_states.c589 pe->data_role = TC_ROLE_UFP; in pe_snk_transition_to_default_entry()
/Zephyr-latest/include/zephyr/drivers/usb_c/
Dusbc_tcpc.h140 enum tc_data_role data_role);
427 enum tc_data_role data_role) in tcpc_set_roles() argument
435 return api->set_roles(dev, power_role, data_role); in tcpc_set_roles()
/Zephyr-latest/drivers/usb_c/tcpc/
Dps8xxx.c220 enum tc_data_role data_role) in ps8xxx_tcpc_set_roles() argument
225 TCPC_REG_MSG_HDR_INFO_SET(PD_REV30, data_role, power_role)); in ps8xxx_tcpc_set_roles()
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()