Home
last modified time | relevance | path

Searched refs:cc1 (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/drivers/usb/typec/tcpm/
Dfusb302.c108 enum typec_cc_status cc1; member
571 chip->cc1 = TYPEC_CC_OPEN; in fusb302_set_toggling()
645 chip->cc1 = TYPEC_CC_OPEN; in tcpm_set_cc()
703 static int tcpm_get_cc(struct tcpc_dev *dev, enum typec_cc_status *cc1, in tcpm_get_cc() argument
710 *cc1 = chip->cc1; in tcpm_get_cc()
712 fusb302_log(chip, "cc1=%s, cc2=%s", typec_cc_status_name[*cc1], in tcpm_get_cc()
1097 if (chip->cc1 != cc_status) { in fusb302_bc_lvl_handler_work()
1099 typec_cc_status_name[chip->cc1], in fusb302_bc_lvl_handler_work()
1101 chip->cc1 = 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.c191 int ret, cc1, cc2; in rt1711h_init_cc_params() local
199 cc1 = tcpci_to_typec_cc(FIELD_GET(TCPC_CC_STATUS_CC1, 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()
Dtcpm.c343 enum typec_cc_status cc1; member
583 (tcpm_cc_is_sink((port)->cc1) || tcpm_cc_is_sink((port)->cc2))
590 ((tcpm_cc_is_source((port)->cc1) && \
593 !tcpm_cc_is_source((port)->cc1)))
596 (tcpm_cc_is_source((port)->cc1) && tcpm_cc_is_source((port)->cc2))
599 (tcpm_cc_is_audio((port)->cc1) && tcpm_cc_is_audio((port)->cc2))
602 ((tcpm_cc_is_audio((port)->cc1) && tcpm_cc_is_open((port)->cc2)) || \
603 (tcpm_cc_is_audio((port)->cc2) && tcpm_cc_is_open((port)->cc1)))
623 ((port)->cc1 == TYPEC_CC_RP_3_0 || (port)->cc2 == TYPEC_CC_RP_3_0))
644 return (!port->attached && port->cc1 == TYPEC_CC_OPEN && in tcpm_port_is_disconnected()
[all …]
Dtcpci.c227 enum typec_cc_status *cc1, enum typec_cc_status *cc2) in tcpci_get_cc() argument
241 *cc1 = tcpci_to_typec_cc(FIELD_GET(TCPC_CC_STATUS_CC1, 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()
290 if (cc1 == TYPEC_CC_RD) in tcpci_set_polarity()
Dwcove.c268 static int wcove_get_cc(struct tcpc_dev *tcpc, enum typec_cc_status *cc1, in wcove_get_cc() argument
284 *cc1 = wcove_to_typec_cc(cc1_status); in wcove_get_cc()
/linux-6.12.1/arch/alpha/kernel/
Dtime.c392 unsigned int cc1, cc2; in time_init() local
407 cc1 = rpcc(); in time_init()
411 cc1 = 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()
Dcore_cia.c795 unsigned int cc0, cc1; in pyxis_init_arch() local
801 __asm__ __volatile__ ("rpcc %0" : "=r"(cc1)); in pyxis_init_arch()
802 cc1 -= cc0; in pyxis_init_arch()
803 hwrpb->cycle_freq = ((cc1 >> 11) * 100000000UL) / 3; in pyxis_init_arch()
/linux-6.12.1/drivers/usb/typec/tcpm/qcom/
Dqcom_pmic_typec_port.c361 enum typec_cc_status *cc1, in qcom_pmic_typec_port_get_cc() argument
383 *cc1 = TYPEC_CC_OPEN; in qcom_pmic_typec_port_get_cc()
398 *cc1 = TYPEC_CC_RA; in qcom_pmic_typec_port_get_cc()
406 *cc1 = TYPEC_CC_RA; in qcom_pmic_typec_port_get_cc()
440 *cc1 = 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-6.12.1/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-6.12.1/Documentation/trace/
Dtimerlat-tracer.rst92cc1-87882 [005] d..h... 548.771078: #402268 context irq timer_latency 13585 ns
93cc1-87882 [005] dNLh1.. 548.771082: irq_noise: local_timer:236 start 548.771077442 duration 75…
94cc1-87882 [005] dNLh2.. 548.771099: irq_noise: qxl:21 start 548.771085017 duration 7139 ns
95cc1-87882 [005] d...3.. 548.771102: thread_noise: cc1:87882 start 548.771078243 duration …
103 the cc1 thread noise took 9909 ns of time before the context switch.
/linux-6.12.1/drivers/usb/typec/
Drt1719.c155 u16 cc1, cc2, cc_stat; in rt1719_get_pwr_opmode() local
157 cc1 = FIELD_GET(RT1719_CC1_STAT, stat); in rt1719_get_pwr_opmode()
164 cc_stat = cc1; 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()
Danx7411.c880 u8 cc1, cc2; in anx7411_chip_standby() local
888 cc1 = FIELD_PREP(TCPC_ROLE_CTRL_CC1, TCPC_ROLE_CTRL_CC_RD); in anx7411_chip_standby()
891 TCPC_ROLE_CTRL_DRP | cc1 | cc2); in anx7411_chip_standby()
/linux-6.12.1/include/linux/usb/
Dtcpm.h143 int (*get_cc)(struct tcpc_dev *dev, enum typec_cc_status *cc1,
/linux-6.12.1/arch/m68k/ifpsp060/
Dfplsp.sa1647 dc.l $55554cc1,$3fc55555,$55554a54,$3fe00000