Searched refs:cc2 (Results 1 – 10 of 10) sorted by relevance
/linux-6.1.9/drivers/usb/typec/tcpm/ |
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 …]
|
D | tcpci_rt1711h.c | 183 int ret, cc1, cc2; in rt1711h_init_cc_params() local 195 cc2 = tcpci_to_typec_cc((status >> TCPC_CC_STATUS_CC2_SHIFT) & in rt1711h_init_cc_params() 200 if ((cc1 >= TYPEC_CC_RP_1_5 && cc2 < TYPEC_CC_RP_DEF) || in rt1711h_init_cc_params() 201 (cc2 >= TYPEC_CC_RP_1_5 && cc1 < TYPEC_CC_RP_DEF)) { in rt1711h_init_cc_params()
|
D | tcpm.c | 322 enum typec_cc_status cc2; member 512 ((tcpm_cc_is_sink((port)->cc1) && !tcpm_cc_is_sink((port)->cc2)) || \ 513 (tcpm_cc_is_sink((port)->cc2) && !tcpm_cc_is_sink((port)->cc1))) 521 !tcpm_cc_is_source((port)->cc2)) || \ 522 (tcpm_cc_is_source((port)->cc2) && \ 526 (tcpm_cc_is_source((port)->cc1) && tcpm_cc_is_source((port)->cc2)) 529 (tcpm_cc_is_audio((port)->cc1) && tcpm_cc_is_audio((port)->cc2)) 532 ((tcpm_cc_is_audio((port)->cc1) && tcpm_cc_is_open((port)->cc2)) || \ 533 (tcpm_cc_is_audio((port)->cc2) && tcpm_cc_is_open((port)->cc1))) 553 ((port)->cc1 == TYPEC_CC_RP_3_0 || (port)->cc2 == TYPEC_CC_RP_3_0)) [all …]
|
D | tcpci.c | 217 enum typec_cc_status *cc1, enum typec_cc_status *cc2) in tcpci_get_cc() argument 235 *cc2 = tcpci_to_typec_cc((reg >> TCPC_CC_STATUS_CC2_SHIFT) & in tcpci_get_cc() 249 enum typec_cc_status cc1, cc2; in tcpci_set_polarity() local 256 ret = tcpci_get_cc(tcpc, &cc1, &cc2); in tcpci_set_polarity() 274 if (cc2 == TYPEC_CC_RD) in tcpci_set_polarity()
|
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-6.1.9/arch/alpha/kernel/ |
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-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | wq.h | 167 static inline int mlx5_wq_cyc_cc_bigger(u16 cc1, u16 cc2) in mlx5_wq_cyc_cc_bigger() argument 169 int equal = (cc1 == cc2); in mlx5_wq_cyc_cc_bigger() 170 int smaller = 0x8000 & (cc1 - cc2); in mlx5_wq_cyc_cc_bigger()
|
/linux-6.1.9/drivers/usb/typec/ |
D | rt1719.c | 161 u16 cc1, cc2, cc_stat; in rt1719_get_pwr_opmode() local 164 cc2 = FIELD_GET(RT1719_CC2_STAT, stat); in rt1719_get_pwr_opmode() 168 cc_stat = cc2; in rt1719_get_pwr_opmode() 179 if ((cc1 == SNK_PWR_1P5A && cc2 == SNK_PWR_DEF) || in rt1719_get_pwr_opmode() 180 (cc1 == SNK_PWR_DEF && cc2 == SNK_PWR_1P5A)) in rt1719_get_pwr_opmode() 182 else if ((cc1 == SNK_PWR_3A && cc2 == SNK_PWR_DEF) || in rt1719_get_pwr_opmode() 183 (cc1 == SNK_PWR_DEF && cc2 == SNK_PWR_3A)) in rt1719_get_pwr_opmode()
|
D | anx7411.c | 879 u8 cc1, cc2; in anx7411_chip_standby() local 888 cc2 = TCPC_ROLE_CTRL_CC_RD << TCPC_ROLE_CTRL_CC2_SHIFT; in anx7411_chip_standby() 890 TCPC_ROLE_CTRL_DRP | cc1 | cc2); in anx7411_chip_standby()
|
/linux-6.1.9/include/linux/usb/ |
D | tcpm.h | 128 enum typec_cc_status *cc2);
|