Searched full:cc2 (Results 1 – 9 of 9) sorted by relevance
| /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() argument 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), attached, in qcom_pmic_typec_port_get_cc()
|
| /linux/drivers/usb/typec/tcpm/ |
| H A D | tcpci_rt1711h.c | 184 int ret, cc1, cc2; in rt1711h_init_cc_params() local 195 cc2 = tcpci_to_typec_cc(FIELD_GET(TCPC_CC_STATUS_CC2, status), in rt1711h_init_cc_params() 197 tcpc_presenting_rd(role, CC2)); in rt1711h_init_cc_params() 199 if ((cc1 >= TYPEC_CC_RP_1_5 && cc2 < TYPEC_CC_RP_DEF) || in rt1711h_init_cc_params() 200 (cc2 >= TYPEC_CC_RP_1_5 && cc1 < TYPEC_CC_RP_DEF)) { in rt1711h_init_cc_params()
|
| H A D | tcpm.c | 490 enum typec_cc_status cc2; member 750 (tcpm_cc_is_sink((port)->cc1) || tcpm_cc_is_sink((port)->cc2)) 758 !tcpm_cc_is_source((port)->cc2)) || \ 759 (tcpm_cc_is_source((port)->cc2) && \ 763 (tcpm_cc_is_source((port)->cc1) && tcpm_cc_is_source((port)->cc2)) 766 (tcpm_cc_is_sink((port)->cc1) && tcpm_cc_is_sink((port)->cc2)) 772 (tcpm_cc_is_audio((port)->cc1) && tcpm_cc_is_audio((port)->cc2)) 775 ((tcpm_cc_is_audio((port)->cc1) && tcpm_cc_is_open((port)->cc2)) || \ 776 (tcpm_cc_is_audio((port)->cc2) && tcpm_cc_is_open((port)->cc1))) 796 ((port)->cc1 == TYPEC_CC_RP_3_0 || (port)->cc2 == TYPEC_CC_RP_3_0)) [all …]
|
| H A D | wcove.c | 269 enum typec_cc_status *cc2) in wcove_get_cc() argument 285 *cc2 = wcove_to_typec_cc(cc2_status); in wcove_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/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/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/drivers/net/wireless/morsemicro/mm81x/ |
| H A D | mac.c | 213 static bool mm81x_reg_h_cc_equal(const char *cc1, const char *cc2) in mm81x_reg_h_cc_equal() argument 215 return (cc1[0] == cc2[0]) && (cc1[1] == cc2[1]); in mm81x_reg_h_cc_equal()
|