Lines Matching refs:tcpc
77 const struct device *tcpc = data->tcpc; in tc_unattached_wait_src_entry() local
82 tcpc_vconn_discharge(tcpc, true); in tc_unattached_wait_src_entry()
105 const struct device *tcpc = data->tcpc; in tc_unattached_wait_src_exit() local
108 tcpc_vconn_discharge(tcpc, false); in tc_unattached_wait_src_exit()
233 const struct device *tcpc = data->tcpc; in tc_attached_src_entry() local
239 tcpc_set_roles(tcpc, TC_ROLE_SOURCE, TC_ROLE_DFP); in tc_attached_src_entry()
242 ret = tcpc_set_cc_polarity(tcpc, tc->cc_polarity); in tc_attached_src_entry()
250 if (usbc_policy_src_en(dev, tcpc, true) == 0) { in tc_attached_src_entry()
253 if (tcpc_set_vconn(tcpc, true) == 0) { in tc_attached_src_entry()
313 const struct device *tcpc = data->tcpc; in tc_attached_src_exit() local
320 if (usbc_policy_src_en(dev, tcpc, false) != 0) { in tc_attached_src_exit()
333 ret = tcpc_set_vconn(tcpc, false); in tc_attached_src_exit()
348 const struct device *tcpc = data->tcpc; in tc_cc_rp_entry() local
361 ret = tcpc_select_rp_value(tcpc, rp); in tc_cc_rp_entry()
369 ret = tcpc_set_cc(tcpc, TC_CC_RP); in tc_cc_rp_entry()