/linux-master/arch/alpha/kernel/ |
H A D | time.c | 397 unsigned int cc1, cc2; 412 cc1 = rpcc(); 416 cc1 = rpcc_after_update_in_progress(); 418 est_cycle_freq = validate_cc_value(cc2 - cc1); 419 cc1 = cc2; 392 unsigned int cc1, cc2; local
|
H A D | core_cia.c | 798 unsigned int cc0, cc1; 804 __asm__ __volatile__ ("rpcc %0" : "=r"(cc1)); 805 cc1 -= cc0; 806 hwrpb->cycle_freq = ((cc1 >> 11) * 100000000UL) / 3; 795 unsigned int cc0, cc1; local
|
/linux-master/drivers/usb/typec/tcpm/ |
H A D | fusb302.c | 108 enum typec_cc_status cc1; member in struct:fusb302_chip 571 chip->cc1 = TYPEC_CC_OPEN; 645 chip->cc1 = TYPEC_CC_OPEN; 703 static int tcpm_get_cc(struct tcpc_dev *dev, enum typec_cc_status *cc1, argument 710 *cc1 = chip->cc1; 712 fusb302_log(chip, "cc1=%s, cc2=%s", typec_cc_status_name[*cc1], 1097 if (chip->cc1 != cc_status) { 1098 fusb302_log(chip, "cc1 1187 enum typec_cc_status cc_status_active, cc1, cc2; local 1311 enum typec_cc_status cc1, cc2; local [all...] |
H A D | tcpci_rt1711h.c | 190 int ret, cc1, cc2; local 198 cc1 = tcpci_to_typec_cc((status >> TCPC_CC_STATUS_CC1_SHIFT) & 207 if ((cc1 >= TYPEC_CC_RP_1_5 && cc2 < TYPEC_CC_RP_DEF) || 208 (cc2 >= TYPEC_CC_RP_1_5 && cc1 < TYPEC_CC_RP_DEF)) {
|
H A D | tcpci.c | 218 enum typec_cc_status *cc1, enum typec_cc_status *cc2) 232 *cc1 = tcpci_to_typec_cc((reg >> TCPC_CC_STATUS_CC1_SHIFT) & 250 enum typec_cc_status cc1, cc2; local 257 ret = tcpci_get_cc(tcpc, &cc1, &cc2); 283 if (cc1 == TYPEC_CC_RD) 217 tcpci_get_cc(struct tcpc_dev *tcpc, enum typec_cc_status *cc1, enum typec_cc_status *cc2) argument
|
H A D | tcpm.c | 342 enum typec_cc_status cc1; member in struct:tcpm_port 582 (tcpm_cc_is_sink((port)->cc1) || tcpm_cc_is_sink((port)->cc2)) 589 ((tcpm_cc_is_source((port)->cc1) && \ 592 !tcpm_cc_is_source((port)->cc1))) 595 (tcpm_cc_is_source((port)->cc1) && tcpm_cc_is_source((port)->cc2)) 598 (tcpm_cc_is_audio((port)->cc1) && tcpm_cc_is_audio((port)->cc2)) 601 ((tcpm_cc_is_audio((port)->cc1) && tcpm_cc_is_open((port)->cc2)) || \ 602 (tcpm_cc_is_audio((port)->cc2) && tcpm_cc_is_open((port)->cc1))) 622 ((port)->cc1 == TYPEC_CC_RP_3_0 || (port)->cc2 == TYPEC_CC_RP_3_0)) 643 return (!port->attached && port->cc1 5692 _tcpm_cc_change(struct tcpm_port *port, enum typec_cc_status cc1, enum typec_cc_status cc2) argument 6207 enum typec_cc_status cc1, cc2; local 6747 enum typec_cc_status cc1, cc2; local [all...] |
H A D | wcove.c | 268 static int wcove_get_cc(struct tcpc_dev *tcpc, enum typec_cc_status *cc1, argument 284 *cc1 = wcove_to_typec_cc(cc1_status);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | wq.h | 167 static inline int mlx5_wq_cyc_cc_bigger(u16 cc1, u16 cc2) argument 169 int equal = (cc1 == cc2); 170 int smaller = 0x8000 & (cc1 - cc2);
|
/linux-master/drivers/usb/typec/tcpm/qcom/ |
H A D | qcom_pmic_typec_port.c | 218 #define misc_to_cc(msic) !!(misc & CC_ORIENTATION) ? "cc1" : "cc2" 219 #define misc_to_vconn(msic) !!(misc & CC_ORIENTATION) ? "cc2" : "cc1" 361 enum typec_cc_status *cc1, 383 *cc1 = TYPEC_CC_OPEN; 398 *cc1 = TYPEC_CC_RA; 406 *cc1 = TYPEC_CC_RA; 441 *cc1 = val; 444 dev_dbg(dev, "get_cc: misc 0x%08x cc1 0x%08x %s cc2 0x%08x %s attached %d cc=%s\n", 445 misc, *cc1, cc_to_name(*cc1), *cc 360 qcom_pmic_typec_port_get_cc(struct tcpc_dev *tcpc, enum typec_cc_status *cc1, enum typec_cc_status *cc2) argument [all...] |
/linux-master/include/linux/usb/ |
H A D | tcpm.h | 143 int (*get_cc)(struct tcpc_dev *dev, enum typec_cc_status *cc1,
|
/linux-master/drivers/usb/typec/ |
H A D | rt1719.c | 161 u16 cc1, cc2, cc_stat; local 163 cc1 = FIELD_GET(RT1719_CC1_STAT, stat); 170 cc_stat = cc1; 179 if ((cc1 == SNK_PWR_1P5A && cc2 == SNK_PWR_DEF) || 180 (cc1 == SNK_PWR_DEF && cc2 == SNK_PWR_1P5A)) 182 else if ((cc1 == SNK_PWR_3A && cc2 == SNK_PWR_DEF) || 183 (cc1 == SNK_PWR_DEF && cc2 == SNK_PWR_3A))
|
H A D | anx7411.c | 879 u8 cc1, cc2; local 887 cc1 = TCPC_ROLE_CTRL_CC_RD << TCPC_ROLE_CTRL_CC1_SHIFT; 890 TCPC_ROLE_CTRL_DRP | cc1 | cc2);
|