Searched refs:cc1 (Results 1 – 8 of 8) sorted by relevance
/Zephyr-Core-3.4.0/include/zephyr/drivers/usb_c/ |
D | usbc_tcpc.h | 128 int (*get_cc)(const struct device *dev, enum tc_cc_voltage_state *cc1, 177 static inline int tcpc_is_cc_open(enum tc_cc_voltage_state cc1, in tcpc_is_cc_open() argument 180 return (cc1 < TC_CC_VOLT_RD) && (cc2 < TC_CC_VOLT_RD); in tcpc_is_cc_open() 186 static inline int tcpc_is_cc_snk_dbg_acc(enum tc_cc_voltage_state cc1, in tcpc_is_cc_snk_dbg_acc() argument 189 return cc1 == TC_CC_VOLT_RD && cc2 == TC_CC_VOLT_RD; in tcpc_is_cc_snk_dbg_acc() 195 static inline int tcpc_is_cc_src_dbg_acc(enum tc_cc_voltage_state cc1, in tcpc_is_cc_src_dbg_acc() argument 198 return tcpc_is_cc_rp(cc1) && tcpc_is_cc_rp(cc2); in tcpc_is_cc_src_dbg_acc() 204 static inline int tcpc_is_cc_audio_acc(enum tc_cc_voltage_state cc1, in tcpc_is_cc_audio_acc() argument 207 return cc1 == TC_CC_VOLT_RA && cc2 == TC_CC_VOLT_RA; in tcpc_is_cc_audio_acc() 213 static inline int tcpc_is_cc_at_least_one_rd(enum tc_cc_voltage_state cc1, in tcpc_is_cc_at_least_one_rd() argument [all …]
|
/Zephyr-Core-3.4.0/tests/boards/intel_adsp/smoke/src/ |
D | cpus.c | 110 uint32_t cc1, cc0 = ccount(); in core_smoke() local 114 cc1 = ccount(); in core_smoke() 115 } while ((cc1 - cc0) < 1000 || (cyc1 - cyc0) < 1000); in core_smoke() 117 clk_ratios[cpu] = ((cc1 - cc0) * 1000) / (cyc1 - cyc0); in core_smoke()
|
/Zephyr-Core-3.4.0/subsys/usb/usb_c/ |
D | usbc_tc_snk_states.c | 26 cc = tc->cc_polarity ? tc->cc2 : tc->cc1; in sink_power_sub_states() 97 if (tcpc_is_cc_rp(tc->cc1) || tcpc_is_cc_rp(tc->cc2)) { in tc_unattached_snk_run() 126 if (tcpc_is_cc_rp(tc->cc1) || tcpc_is_cc_rp(tc->cc2)) { in tc_attach_wait_snk_run()
|
D | usbc_tc_src_states.c | 46 if (tcpc_is_cc_at_least_one_rd(tc->cc1, tc->cc2)) { in tc_unattached_src_run() 140 if (tcpc_is_cc_at_least_one_rd(tc->cc1, tc->cc2)) { in tc_attach_wait_src_run() 258 if (tcpc_is_cc_open(tc->cc1, tc->cc2)) { in tc_attached_src_run()
|
D | usbc_tc_common_internal.h | 82 enum tc_cc_voltage_state cc1; member
|
D | usbc_tc_common.c | 69 tcpc_get_cc(tcpc, &tc->cc1, &tc->cc2); in tc_run() 72 tc->cc_polarity = (tc->cc1 > tc->cc2) ? TC_POLARITY_CC1 : TC_POLARITY_CC2; in tc_run()
|
D | usbc_prl.c | 901 enum tc_cc_voltage_state cc1; in prl_tx_snk_pending_run() local 907 tcpc_get_cc(tcpc, &cc1, &cc2); in prl_tx_snk_pending_run() 922 } else if (cc1 == TC_CC_VOLT_RP_3A0 || cc2 == TC_CC_VOLT_RP_3A0) { in prl_tx_snk_pending_run()
|
/Zephyr-Core-3.4.0/drivers/usb_c/tcpc/ |
D | ucpd_stm32.c | 181 enum tc_cc_voltage_state *cc1, in ucpd_get_cc() argument 242 *cc1 = vstate_cc1; in ucpd_get_cc() 244 *cc1 = TC_CC_VOLT_OPEN; in ucpd_get_cc()
|