/linux/drivers/usb/typec/tcpm/ |
H A D | fusb302.c | 110 enum typec_cc_status cc2; 573 chip->cc2 = TYPEC_CC_OPEN; in fusb302_set_toggling() 647 chip->cc2 = TYPEC_CC_OPEN; in tcpm_set_cc() 705 enum typec_cc_status *cc2) in tcpm_get_cc() 712 *cc2 = chip->cc2; in tcpm_get_cc() 713 fusb302_log(chip, "cc1=%s, cc2=%s", typec_cc_status_name[*cc1], in tcpm_get_cc() 714 typec_cc_status_name[*cc2]); in tcpm_get_cc() 1105 if (chip->cc2 != cc_status) { in fusb302_bc_lvl_handler_work() 1106 fusb302_log(chip, "cc2 in fusb302_bc_lvl_handler_work() 109 enum typec_cc_status cc2; global() member 704 tcpm_get_cc(struct tcpc_dev * dev,enum typec_cc_status * cc1,enum typec_cc_status * cc2) tcpm_get_cc() argument 1187 enum typec_cc_status cc_status_active, cc1, cc2; fusb302_handle_togdone_snk() local 1311 enum typec_cc_status cc1, cc2; fusb302_handle_togdone_src() local [all...] |
H A D | tcpci.c | 169 * APPLY_RC state is when ROLE_CONTROL.CC1 != ROLE_CONTROL.CC2 and vbus autodischarge on in tcpci_apply_rc() 170 * disconnect is disabled. Bail out when ROLE_CONTROL.CC1 != ROLE_CONTROL.CC2. in tcpci_apply_rc() 228 enum typec_cc_status *cc1, enum typec_cc_status *cc2) in tcpci_get_cc() argument 245 *cc2 = tcpci_to_typec_cc(FIELD_GET(TCPC_CC_STATUS_CC2, reg), in tcpci_get_cc() 247 tcpc_presenting_rd(role_control, CC2)); in tcpci_get_cc() 258 enum typec_cc_status cc1, cc2; in tcpci_set_polarity() local 265 ret = tcpci_get_cc(tcpc, &cc1, &cc2); in tcpci_set_polarity() 283 if (cc2 == TYPEC_CC_RD) in tcpci_set_polarity() 286 else if (cc2 >= TYPEC_CC_RP_DEF) in tcpci_set_polarity()
|
H A D | tcpci_rt1711h.c | 191 int ret, cc1, cc2; in rt1711h_init_cc_params() local 202 cc2 = tcpci_to_typec_cc(FIELD_GET(TCPC_CC_STATUS_CC2, status), in rt1711h_init_cc_params() 204 tcpc_presenting_rd(role, CC2)); in rt1711h_init_cc_params() 206 if ((cc1 >= TYPEC_CC_RP_1_5 && cc2 < TYPEC_CC_RP_DEF) || in rt1711h_init_cc_params() 207 (cc2 >= TYPEC_CC_RP_1_5 && cc1 < TYPEC_CC_RP_DEF)) { in rt1711h_init_cc_params()
|
/linux/drivers/usb/typec/tcpm/qcom/ |
H A D | qcom_pmic_typec_port.c | 219 #define misc_to_cc(msic) !!(misc & CC_ORIENTATION) ? "cc1" : "cc2" 220 #define misc_to_vconn(msic) !!(misc & CC_ORIENTATION) ? "cc2" : "cc1" 363 enum typec_cc_status *cc2) in qcom_pmic_typec_port_get_cc() 385 *cc2 = TYPEC_CC_OPEN; in qcom_pmic_typec_port_get_cc() 400 *cc2 = TYPEC_CC_RA; in qcom_pmic_typec_port_get_cc() 408 *cc2 = TYPEC_CC_RA; in qcom_pmic_typec_port_get_cc() 439 *cc2 = val; in qcom_pmic_typec_port_get_cc() 444 dev_dbg(dev, "get_cc: misc 0x%08x cc1 0x%08x %s cc2 0x%08x %s attached %d cc=%s\n", in qcom_pmic_typec_port_get_cc() 445 misc, *cc1, cc_to_name(*cc1), *cc2, cc_to_name(*cc2), attache in qcom_pmic_typec_port_get_cc() 362 qcom_pmic_typec_port_get_cc(struct tcpc_dev * tcpc,enum typec_cc_status * cc1,enum typec_cc_status * cc2) qcom_pmic_typec_port_get_cc() argument [all...] |
/linux/drivers/usb/typec/ |
H A D | rt1719.c | 155 u16 cc1, cc2, cc_stat; in rt1719_get_pwr_opmode() local 158 cc2 = FIELD_GET(RT1719_CC2_STAT, stat); in rt1719_get_pwr_opmode() 162 cc_stat = cc2; in rt1719_get_pwr_opmode() 173 if ((cc1 == SNK_PWR_1P5A && cc2 == SNK_PWR_DEF) || in rt1719_get_pwr_opmode() 174 (cc1 == SNK_PWR_DEF && cc2 == SNK_PWR_1P5A)) in rt1719_get_pwr_opmode() 176 else if ((cc1 == SNK_PWR_3A && cc2 == SNK_PWR_DEF) || in rt1719_get_pwr_opmode() 177 (cc1 == SNK_PWR_DEF && cc2 == SNK_PWR_3A)) in rt1719_get_pwr_opmode()
|
H A D | anx7411.c | 882 u8 cc1, cc2; in anx7411_chip_standby() local 891 cc2 = FIELD_PREP(TCPC_ROLE_CTRL_CC2, TCPC_ROLE_CTRL_CC_RD); in anx7411_chip_standby() 893 TCPC_ROLE_CTRL_DRP | cc1 | cc2); in anx7411_chip_standby()
|
/linux/arch/alpha/kernel/ |
H A D | time.c | 392 unsigned int cc1, cc2; in time_init() local 412 cc2 = rpcc_after_update_in_progress(); in time_init() 413 est_cycle_freq = validate_cc_value(cc2 - cc1); in time_init() 414 cc1 = cc2; in time_init()
|
/linux/include/linux/mfd/ |
H A D | stm32-timers.h | 47 #define TIM_DIER_CC2IE TIM_DIER_CCxIE(2) /* CC2 Interrupt Enable */ 53 #define TIM_DIER_CC2DE TIM_DIER_CCxDE(2) /* CC2 DMA request Enable */ 59 #define TIM_SR_CC_IF(x) BIT((x) + 1) /* CC1, CC2, CC3, CC4 interrupt flag */
|
/linux/drivers/usb/typec/mux/ |
H A D | ptn36502.c | 101 * Flipped Orientation (CC2) in ptn36502_set() 136 * Flipped Orientation (CC2) in ptn36502_set() 158 * Flipped Orientation (CC2) in ptn36502_set()
|
H A D | nb7vpq904m.c | 136 * Flipped Orientation (CC2) in nb7vpq904m_set() 187 * Flipped Orientation (CC2) in nb7vpq904m_set() 226 * Flipped Orientation (CC2) in nb7vpq904m_set()
|
/linux/drivers/extcon/ |
H A D | extcon-rtk-type-c.c | 483 dev_dbg(dev, "IN host mode and cc2 device detach (cc_status=0x%x)", in detect_type_c_state() 516 dev_dbg(dev, "In host mode and cc2 device attach (cc_status=0x%x)", in detect_type_c_state() 544 dev_dbg(dev, "IN device mode and cc2 host disconnect (cc_status=0x%x)", in detect_type_c_state() 578 dev_dbg(dev, "IN device mode and cc2 host connect (cc_status=0x%x)", in detect_type_c_state() 651 at_cc1 ? "cc1" : "cc2", type_c->cc_status); in host_device_switch() 656 at_cc1 ? "cc1" : "cc2", type_c->cc_status); in host_device_switch() 675 type_c->at_cc1 ? "cc1" : "cc2", in type_c_detect_irq() 813 type_c->at_cc1 ? "cc1" : "cc2", type_c->cc_status); in type_c_status_show()
|
/linux/Documentation/devicetree/bindings/soc/qcom/ |
H A D | qcom,pmic-glink.yaml | 55 It is defined that GPIO active level means "CC2" or Reversed/Flipped orientation.
|
/linux/include/linux/usb/ |
H A D | tcpm.h | 144 enum typec_cc_status *cc2);
|