Searched refs:cc2 (Results 1 – 12 of 12) sorted by relevance
/Zephyr-latest/include/zephyr/drivers/usb_c/ |
D | usbc_tcpc.h | 131 enum tc_cc_voltage_state *cc2); 179 static inline int tcpc_is_cc_open(enum tc_cc_voltage_state cc1, enum tc_cc_voltage_state cc2) in tcpc_is_cc_open() argument 181 return (cc1 < TC_CC_VOLT_RD) && (cc2 < TC_CC_VOLT_RD); in tcpc_is_cc_open() 187 static inline int tcpc_is_cc_snk_dbg_acc(enum tc_cc_voltage_state cc1, enum tc_cc_voltage_state cc2) 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, enum tc_cc_voltage_state cc2) in tcpc_is_cc_src_dbg_acc() argument 197 return tcpc_is_cc_rp(cc1) && tcpc_is_cc_rp(cc2); in tcpc_is_cc_src_dbg_acc() 203 static inline int tcpc_is_cc_audio_acc(enum tc_cc_voltage_state cc1, enum tc_cc_voltage_state cc2) in tcpc_is_cc_audio_acc() argument 205 return cc1 == TC_CC_VOLT_RA && cc2 == TC_CC_VOLT_RA; in tcpc_is_cc_audio_acc() 212 enum tc_cc_voltage_state cc2) in tcpc_is_cc_at_least_one_rd() argument [all …]
|
D | tcpci_priv.h | 117 enum tc_cc_voltage_state *cc2);
|
/Zephyr-latest/drivers/usb_c/tcpc/ |
D | tcpci.c | 377 enum tc_cc_voltage_state *cc2) in tcpci_tcpm_get_cc() argument 384 if (cc1 == NULL || cc2 == NULL) { in tcpci_tcpm_get_cc() 390 *cc2 = TC_CC_VOLT_OPEN; in tcpci_tcpm_get_cc() 405 *cc2 = TCPC_REG_CC_STATUS_CC2_STATE(status); in tcpci_tcpm_get_cc() 423 if (*cc2 != TC_CC_VOLT_OPEN) { in tcpci_tcpm_get_cc() 439 if (*cc2 != TC_CC_VOLT_OPEN) { in tcpci_tcpm_get_cc() 445 *cc2 |= cc2_present_rd << 2; in tcpci_tcpm_get_cc()
|
D | ps8xxx.c | 54 enum tc_cc_voltage_state cc2; member 102 enum tc_cc_voltage_state *cc2) in ps8xxx_tcpc_get_cc() argument 114 *cc2 = data->cc2; in ps8xxx_tcpc_get_cc() 121 ret = tcpci_tcpm_get_cc(&cfg->bus, cc1, cc2); in ps8xxx_tcpc_get_cc() 123 if (IS_ENABLED(CONFIG_USBC_CSM_SINK_ONLY) || *cc1 != data->cc1 || *cc2 != data->cc2) { in ps8xxx_tcpc_get_cc() 124 LOG_DBG("CC changed values: %d->%d, %d->%d", data->cc1, *cc1, data->cc2, *cc2); in ps8xxx_tcpc_get_cc() 126 data->cc2 = *cc2; in ps8xxx_tcpc_get_cc()
|
D | ucpd_numaker.c | 1629 enum tc_cc_voltage_state *cc2) in numaker_tcpc_get_cc() argument 1675 *cc2 = TC_CC_VOLT_RA; in numaker_tcpc_get_cc() 1678 *cc2 = TC_CC_VOLT_RD; in numaker_tcpc_get_cc() 1681 *cc2 = TC_CC_VOLT_OPEN; in numaker_tcpc_get_cc() 1686 *cc2 = TC_CC_VOLT_RP_DEF; in numaker_tcpc_get_cc() 1689 *cc2 = TC_CC_VOLT_RP_1A5; in numaker_tcpc_get_cc() 1692 *cc2 = TC_CC_VOLT_RP_3A0; in numaker_tcpc_get_cc() 1695 *cc2 = TC_CC_VOLT_OPEN; in numaker_tcpc_get_cc() 1698 *cc2 = TC_CC_VOLT_OPEN; in numaker_tcpc_get_cc()
|
D | ucpd_stm32.c | 182 enum tc_cc_voltage_state *cc2) in ucpd_get_cc() argument 249 *cc2 = vstate_cc2; in ucpd_get_cc() 251 *cc2 = TC_CC_VOLT_OPEN; in ucpd_get_cc()
|
/Zephyr-latest/subsys/usb/usb_c/ |
D | usbc_tc_snk_states.c | 27 cc = tc->cc_polarity ? tc->cc2 : tc->cc1; in sink_power_sub_states() 106 if (tcpc_is_cc_rp(tc->cc1) || tcpc_is_cc_rp(tc->cc2)) { in tc_unattached_snk_run() 141 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 | 47 if (tcpc_is_cc_at_least_one_rd(tc->cc1, tc->cc2)) { in tc_unattached_src_run() 141 if (tcpc_is_cc_at_least_one_rd(tc->cc1, tc->cc2)) { in tc_attach_wait_src_run() 273 if (tcpc_is_cc_open(tc->cc1, tc->cc2)) { in tc_attached_src_run()
|
D | usbc_tc_common_internal.h | 84 enum tc_cc_voltage_state cc2; member
|
D | usbc_tc_common.c | 82 if (tcpc_get_cc(tcpc, &tc->cc1, &tc->cc2) != 0) { in tc_run() 88 tc->cc2 = TC_CC_VOLT_OPEN; in tc_run() 92 tc->cc_polarity = (tc->cc1 > tc->cc2) ? TC_POLARITY_CC1 : TC_POLARITY_CC2; in tc_run()
|
D | usbc_prl.c | 902 enum tc_cc_voltage_state cc2; 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-latest/include/zephyr/usb_c/ |
D | tcpci.h | 212 #define TCPC_REG_ROLE_CTRL_SET(drp, rp, cc1, cc2) \ argument 215 (((cc2) << 2) & TCPC_REG_ROLE_CTRL_CC2_MASK) | ((cc1) & TCPC_REG_ROLE_CTRL_CC1_MASK))
|