Lines Matching defs:cc
576 #define tcpm_cc_is_sink(cc) \
577 ((cc) == TYPEC_CC_RP_DEF || (cc) == TYPEC_CC_RP_1_5 || \
578 (cc) == TYPEC_CC_RP_3_0)
580 /* As long as cc is pulled up, we can consider it as sink. */
584 #define tcpm_cc_is_source(cc) ((cc) == TYPEC_CC_RD)
585 #define tcpm_cc_is_audio(cc) ((cc) == TYPEC_CC_RA)
586 #define tcpm_cc_is_open(cc) ((cc) == TYPEC_CC_OPEN)
854 static void tcpm_set_cc(struct tcpm_port *port, enum typec_cc_status cc)
856 tcpm_log(port, "cc:=%d", cc);
857 port->cc_req = cc;
858 port->tcpc->set_cc(port->tcpc, cc);
1080 enum typec_cc_status cc;
1083 cc = port->polarity ? port->cc2 : port->cc1;
1084 switch (cc) {
4040 tcpm_log(port, "cc=%d cc1=%d cc2=%d vbus=%d vconn=%s polarity=%d",
4136 tcpm_log(port, "cc=%d cc1=%d cc2=%d vbus=%d vconn=%s polarity=%d",
4212 static bool tcpm_start_toggling(struct tcpm_port *port, enum typec_cc_status cc)
4220 ret = port->tcpc->start_toggling(port->tcpc, port->port_type, cc);
4543 static enum typec_pwr_opmode tcpm_get_pwr_opmode(enum typec_cc_status cc)
4545 switch (cc) {