Lines Matching refs:cc2
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
214 return cc1 == TC_CC_VOLT_RD || cc2 == TC_CC_VOLT_RD; in tcpc_is_cc_at_least_one_rd()
220 static inline int tcpc_is_cc_only_one_rd(enum tc_cc_voltage_state cc1, enum tc_cc_voltage_state cc2) in tcpc_is_cc_only_one_rd() argument
222 return tcpc_is_cc_at_least_one_rd(cc1, cc2) && cc1 != cc2; in tcpc_is_cc_only_one_rd()
255 enum tc_cc_voltage_state *cc2) in tcpc_get_cc() argument
263 return api->get_cc(dev, cc1, cc2); in tcpc_get_cc()