Searched refs:data_role (Results 1 – 8 of 8) sorted by relevance
/Zephyr-latest/subsys/usb/usb_c/ |
D | usbc_pe_common.c | 194 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()
|
D | usbc_pe_common_internal.h | 205 enum tc_data_role data_role; member
|
D | usbc_pe_src_states.c | 523 pe->data_role = TC_ROLE_DFP; in pe_src_transition_to_default_entry()
|
D | usbc_pe_snk_states.c | 589 pe->data_role = TC_ROLE_UFP; in pe_snk_transition_to_default_entry()
|
/Zephyr-latest/include/zephyr/drivers/usb_c/ |
D | usbc_tcpc.h | 140 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/ |
D | ps8xxx.c | 220 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()
|
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()
|