Lines Matching defs:polarity
344 enum typec_cc_polarity polarity;
645 (port->attached && ((port->polarity == TYPEC_POLARITY_CC1 &&
647 (port->polarity == TYPEC_POLARITY_CC2 &&
884 port->tcpc->apply_rc(port->tcpc, port->cc_req, port->polarity);
1048 enum typec_cc_polarity polarity)
1052 tcpm_log(port, "polarity %d", polarity);
1054 ret = port->tcpc->set_polarity(port->tcpc, polarity);
1058 port->polarity = polarity;
1083 cc = port->polarity ? port->cc2 : port->cc1;
1132 if (port->polarity == TYPEC_POLARITY_CC1)
4040 tcpm_log(port, "cc=%d cc1=%d cc2=%d vbus=%d vconn=%s polarity=%d",
4043 port->polarity);
4136 tcpm_log(port, "cc=%d cc1=%d cc2=%d vbus=%d vconn=%s polarity=%d",
4139 port->polarity);
4271 enum typec_cc_polarity polarity =
4279 ret = tcpm_set_polarity(port, polarity);
4300 if ((polarity == TYPEC_POLARITY_CC1 && port->cc2 == TYPEC_CC_RA) ||
4301 (polarity == TYPEC_POLARITY_CC2 && port->cc1 == TYPEC_CC_RA)) {
4966 opmode = tcpm_get_pwr_opmode(port->polarity ?
5728 "CC1: %u -> %u, CC2: %u -> %u [state %s, polarity %d, %s]",
5730 port->polarity,