Lines Matching full:tcpc
40 const struct device *tcpc = data->tcpc; in tc_run() local
82 if (tcpc_get_cc(tcpc, &tc->cc1, &tc->cc2) != 0) { in tc_run()
83 /* If this function fails, it may mean that the TCPC is in sleep mode or in tc_run()
84 * the communication with TCPC has failed, so we can assume that the CC in tc_run()
127 const struct device *tcpc = data->tcpc; in tc_init() local
141 /* Initialize the TCPC */ in tc_init()
142 ret = tcpc_init(tcpc); in tc_init()
144 LOG_ERR("TCPC initialization failed: %d", ret); in tc_init()
149 /* Stop sourcing VBUS by policy callback and/or TCPC */ in tc_init()
150 ret = usbc_policy_src_en(dev, tcpc, false); in tc_init()
162 ret = tcpc_set_vconn(tcpc, false); in tc_init()
216 * @brief TCPC CC/Rp management
221 const struct device *tcpc = data->tcpc; in tc_select_src_collision_rp() local
225 ret = tcpc_select_rp_value(tcpc, rp); in tc_select_src_collision_rp()
233 ret = tcpc_set_cc(tcpc, TC_CC_RP); in tc_select_src_collision_rp()
248 const struct device *tcpc = data->tcpc; in tc_cc_open_entry() local
254 ret = tcpc_set_vconn(tcpc, false); in tc_cc_open_entry()
262 ret = tcpc_set_cc(tcpc, TC_CC_OPEN); in tc_cc_open_entry()