Searched refs:cc2 (Results 1 - 12 of 12) sorted by relevance

/linux-master/drivers/hwmon/
H A Dchipcap2.c3 * cc2.c - Support for the Amphenol ChipCap 2 relative humidity, temperature sensor
445 const struct cc2_data *cc2 = data; local
453 return cc2->rh_alarm.low_alarm_visible ? 0444 : 0;
455 return cc2->rh_alarm.high_alarm_visible ? 0444 : 0;
458 return cc2->rh_alarm.low_alarm_visible ? 0644 : 0;
461 return cc2->rh_alarm.high_alarm_visible ? 0644 : 0;
481 struct cc2_data *cc2 = data; local
483 if (cc2->process_irqs)
484 complete(&cc2->complete);
491 struct cc2_data *cc2 local
504 struct cc2_data *cc2 = data; local
[all...]
/linux-master/drivers/usb/typec/tcpm/
H A Dfusb302.c109 enum typec_cc_status cc2; member in struct:fusb302_chip
572 chip->cc2 = TYPEC_CC_OPEN;
646 chip->cc2 = TYPEC_CC_OPEN;
704 enum typec_cc_status *cc2)
711 *cc2 = chip->cc2;
712 fusb302_log(chip, "cc1=%s, cc2=%s", typec_cc_status_name[*cc1],
713 typec_cc_status_name[*cc2]);
1105 if (chip->cc2 != cc_status) {
1106 fusb302_log(chip, "cc2
703 tcpm_get_cc(struct tcpc_dev *dev, enum typec_cc_status *cc1, enum typec_cc_status *cc2) argument
1187 enum typec_cc_status cc_status_active, cc1, cc2; local
1311 enum typec_cc_status cc1, cc2; local
[all...]
H A Dtcpci_rt1711h.c190 int ret, cc1, cc2; local
202 cc2 = tcpci_to_typec_cc((status >> TCPC_CC_STATUS_CC2_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 Dtcpm.c343 enum typec_cc_status cc2; member in struct:tcpm_port
582 (tcpm_cc_is_sink((port)->cc1) || tcpm_cc_is_sink((port)->cc2))
590 !tcpm_cc_is_source((port)->cc2)) || \
591 (tcpm_cc_is_source((port)->cc2) && \
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))
644 port->cc2
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 Dtcpci.c218 enum typec_cc_status *cc1, enum typec_cc_status *cc2)
236 *cc2 = tcpci_to_typec_cc((reg >> TCPC_CC_STATUS_CC2_SHIFT) &
250 enum typec_cc_status cc1, cc2; local
257 ret = tcpci_get_cc(tcpc, &cc1, &cc2);
275 if (cc2 == TYPEC_CC_RD)
217 tcpci_get_cc(struct tcpc_dev *tcpc, enum typec_cc_status *cc1, enum typec_cc_status *cc2) argument
H A Dwcove.c269 enum typec_cc_status *cc2)
285 *cc2 = wcove_to_typec_cc(cc2_status);
268 wcove_get_cc(struct tcpc_dev *tcpc, enum typec_cc_status *cc1, enum typec_cc_status *cc2) argument
/linux-master/arch/alpha/kernel/
H A Dtime.c397 unsigned int cc1, cc2;
417 cc2 = rpcc_after_update_in_progress();
418 est_cycle_freq = validate_cc_value(cc2 - cc1);
419 cc1 = cc2;
392 unsigned int cc1, cc2; local
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Dwq.h167 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 Dqcom_pmic_typec_port.c218 #define misc_to_cc(msic) !!(misc & CC_ORIENTATION) ? "cc1" : "cc2"
219 #define misc_to_vconn(msic) !!(misc & CC_ORIENTATION) ? "cc2" : "cc1"
362 enum typec_cc_status *cc2)
384 *cc2 = TYPEC_CC_OPEN;
399 *cc2 = TYPEC_CC_RA;
407 *cc2 = TYPEC_CC_RA;
439 *cc2 = 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), *cc2, cc_to_name(*cc2), attache
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 Dtcpm.h144 enum typec_cc_status *cc2);
/linux-master/drivers/usb/typec/
H A Drt1719.c161 u16 cc1, cc2, cc_stat; local
164 cc2 = FIELD_GET(RT1719_CC2_STAT, stat);
168 cc_stat = cc2;
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 Danx7411.c879 u8 cc1, cc2; local
888 cc2 = TCPC_ROLE_CTRL_CC_RD << TCPC_ROLE_CTRL_CC2_SHIFT;
890 TCPC_ROLE_CTRL_DRP | cc1 | cc2);

Completed in 169 milliseconds