Searched refs:cc2 (Results 1 – 9 of 9) sorted by relevance
/linux/drivers/hwmon/ |
H A D | chipcap2.c | 445 const struct cc2_data *cc2 = data; in cc2_is_visible() local 453 return cc2->rh_alarm.low_alarm_visible ? 0444 : 0; in cc2_is_visible() 455 return cc2->rh_alarm.high_alarm_visible ? 0444 : 0; in cc2_is_visible() 458 return cc2->rh_alarm.low_alarm_visible ? 0644 : 0; in cc2_is_visible() 461 return cc2->rh_alarm.high_alarm_visible ? 0644 : 0; in cc2_is_visible() 481 struct cc2_data *cc2 = data; in cc2_ready_interrupt() local 483 if (cc2->process_irqs) in cc2_ready_interrupt() 484 complete(&cc2->complete); in cc2_ready_interrupt() 491 struct cc2_data *cc2 = data; in cc2_low_interrupt() local 493 if (cc2->process_irqs) { in cc2_low_interrupt() [all …]
|
/linux/drivers/usb/typec/tcpm/ |
H A D | fusb302.c | 109 enum typec_cc_status cc2; member 572 chip->cc2 = TYPEC_CC_OPEN; in fusb302_set_toggling() 646 chip->cc2 = TYPEC_CC_OPEN; in tcpm_set_cc() 704 enum typec_cc_status *cc2) in tcpm_get_cc() argument 711 *cc2 = chip->cc2; in tcpm_get_cc() 713 typec_cc_status_name[*cc2]); in tcpm_get_cc() 1105 if (chip->cc2 != cc_status) { in fusb302_bc_lvl_handler_work() 1107 typec_cc_status_name[chip->cc2], in fusb302_bc_lvl_handler_work() 1109 chip->cc2 = cc_status; in fusb302_bc_lvl_handler_work() 1187 enum typec_cc_status cc_status_active, cc1, cc2; in fusb302_handle_togdone_snk() local [all …]
|
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() 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()
|
H A D | tcpci.c | 227 enum typec_cc_status *cc1, enum typec_cc_status *cc2) in tcpci_get_cc() argument 244 *cc2 = tcpci_to_typec_cc(FIELD_GET(TCPC_CC_STATUS_CC2, reg), in tcpci_get_cc() 257 enum typec_cc_status cc1, cc2; in tcpci_set_polarity() local 264 ret = tcpci_get_cc(tcpc, &cc1, &cc2); in tcpci_set_polarity() 282 if (cc2 == TYPEC_CC_RD) in tcpci_set_polarity()
|
/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/drivers/usb/typec/tcpm/qcom/ |
H A D | qcom_pmic_typec_port.c | 362 enum typec_cc_status *cc2) in qcom_pmic_typec_port_get_cc() argument 384 *cc2 = TYPEC_CC_OPEN; in qcom_pmic_typec_port_get_cc() 399 *cc2 = TYPEC_CC_RA; in qcom_pmic_typec_port_get_cc() 407 *cc2 = TYPEC_CC_RA; in qcom_pmic_typec_port_get_cc() 438 *cc2 = val; in qcom_pmic_typec_port_get_cc() 444 misc, *cc1, cc_to_name(*cc1), *cc2, cc_to_name(*cc2), attached, in qcom_pmic_typec_port_get_cc()
|
/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/include/linux/usb/ |
H A D | tcpm.h | 144 enum typec_cc_status *cc2);
|