Home
last modified time | relevance | path

Searched refs:cc2 (Results 1 – 13 of 13) sorted by relevance

/Linux-v6.6/drivers/usb/typec/tcpm/
Dfusb302.c109 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 …]
Dtcpci_rt1711h.c183 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()
Dtcpm.c324 enum typec_cc_status cc2; member
521 ((tcpm_cc_is_sink((port)->cc1) && !tcpm_cc_is_sink((port)->cc2)) || \
522 (tcpm_cc_is_sink((port)->cc2) && !tcpm_cc_is_sink((port)->cc1)))
530 !tcpm_cc_is_source((port)->cc2)) || \
531 (tcpm_cc_is_source((port)->cc2) && \
535 (tcpm_cc_is_source((port)->cc1) && tcpm_cc_is_source((port)->cc2))
538 (tcpm_cc_is_audio((port)->cc1) && tcpm_cc_is_audio((port)->cc2))
541 ((tcpm_cc_is_audio((port)->cc1) && tcpm_cc_is_open((port)->cc2)) || \
542 (tcpm_cc_is_audio((port)->cc2) && tcpm_cc_is_open((port)->cc1)))
562 ((port)->cc1 == TYPEC_CC_RP_3_0 || (port)->cc2 == TYPEC_CC_RP_3_0))
[all …]
Dtcpci.c218 enum typec_cc_status *cc1, enum typec_cc_status *cc2) in tcpci_get_cc() argument
236 *cc2 = tcpci_to_typec_cc((reg >> TCPC_CC_STATUS_CC2_SHIFT) & in tcpci_get_cc()
250 enum typec_cc_status cc1, cc2; in tcpci_set_polarity() local
257 ret = tcpci_get_cc(tcpc, &cc1, &cc2); in tcpci_set_polarity()
275 if (cc2 == TYPEC_CC_RD) in tcpci_set_polarity()
Dwcove.c269 enum typec_cc_status *cc2) in wcove_get_cc() argument
285 *cc2 = wcove_to_typec_cc(cc2_status); in wcove_get_cc()
/Linux-v6.6/drivers/usb/typec/tcpm/qcom/
Dqcom_pmic_typec_port.c184 enum typec_cc_status *cc2) in qcom_pmic_typec_port_get_cc() argument
204 *cc2 = TYPEC_CC_OPEN; in qcom_pmic_typec_port_get_cc()
219 *cc2 = TYPEC_CC_RA; in qcom_pmic_typec_port_get_cc()
227 *cc2 = TYPEC_CC_RA; in qcom_pmic_typec_port_get_cc()
259 *cc2 = val; in qcom_pmic_typec_port_get_cc()
265 misc, *cc1, cc_to_name(*cc1), *cc2, cc_to_name(*cc2), attached, in qcom_pmic_typec_port_get_cc()
Dqcom_pmic_typec.c88 enum typec_cc_status *cc2) in qcom_pmic_typec_get_cc() argument
92 return qcom_pmic_typec_port_get_cc(tcpm->pmic_typec_port, cc1, cc2); in qcom_pmic_typec_get_cc()
Dqcom_pmic_typec_port.h180 enum typec_cc_status *cc2);
/Linux-v6.6/arch/alpha/kernel/
Dtime.c392 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-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Dwq.h167 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-v6.6/drivers/usb/typec/
Drt1719.c161 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()
Danx7411.c879 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-v6.6/include/linux/usb/
Dtcpm.h133 enum typec_cc_status *cc2);