Home
last modified time | relevance | path

Searched refs:ucc_num (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/include/soc/fsl/qe/
Ducc.h34 int ucc_set_type(unsigned int ucc_num, enum ucc_speed_type speed);
36 int ucc_set_qe_mux_mii_mng(unsigned int ucc_num);
38 int ucc_set_qe_mux_rxtx(unsigned int ucc_num, enum qe_clock clock,
45 int ucc_mux_set_grant_tsa_bkpt(unsigned int ucc_num, int set, u32 mask);
49 static inline int ucc_set_qe_mux_grant(unsigned int ucc_num, int set) in ucc_set_qe_mux_grant() argument
51 return ucc_mux_set_grant_tsa_bkpt(ucc_num, set, QE_CMXUCR_GRANT); in ucc_set_qe_mux_grant()
54 static inline int ucc_set_qe_mux_tsa(unsigned int ucc_num, int set) in ucc_set_qe_mux_tsa() argument
56 return ucc_mux_set_grant_tsa_bkpt(ucc_num, set, QE_CMXUCR_TSA); in ucc_set_qe_mux_tsa()
59 static inline int ucc_set_qe_mux_bkpt(unsigned int ucc_num, int set) in ucc_set_qe_mux_bkpt() argument
61 return ucc_mux_set_grant_tsa_bkpt(ucc_num, set, QE_CMXUCR_BKPT); in ucc_set_qe_mux_bkpt()
Ducc_fast.h140 int ucc_num; member
Ducc_slow.h146 int ucc_num; member
/linux-6.1.9/drivers/soc/fsl/qe/
Ducc.c29 int ucc_set_qe_mux_mii_mng(unsigned int ucc_num) in ucc_set_qe_mux_mii_mng() argument
33 if (ucc_num > UCC_MAX_NUM - 1) in ucc_set_qe_mux_mii_mng()
38 ucc_num << QE_CMXGCR_MII_ENET_MNG_SHIFT); in ucc_set_qe_mux_mii_mng()
55 int ucc_set_type(unsigned int ucc_num, enum ucc_speed_type speed) in ucc_set_type() argument
61 switch (ucc_num) { in ucc_set_type()
88 static void get_cmxucr_reg(unsigned int ucc_num, __be32 __iomem **cmxucr, in get_cmxucr_reg() argument
91 unsigned int cmx = ((ucc_num & 1) << 1) + (ucc_num > 3); in get_cmxucr_reg()
95 *shift = 16 - 8 * (ucc_num & 2); in get_cmxucr_reg()
98 int ucc_mux_set_grant_tsa_bkpt(unsigned int ucc_num, int set, u32 mask) in ucc_mux_set_grant_tsa_bkpt() argument
105 if (ucc_num > UCC_MAX_NUM - 1) in ucc_mux_set_grant_tsa_bkpt()
[all …]
Ducc_slow.c47 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_graceful_stop_tx()
58 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_stop_tx()
68 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_restart_tx()
134 if ((us_info->ucc_num < 0) || (us_info->ucc_num > UCC_MAX_NUM - 1)) { in ucc_slow_init()
183 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_init()
190 ret = ucc_set_type(us_info->ucc_num, UCC_SPEED_TYPE_SLOW); in ucc_slow_init()
294 ucc_set_qe_mux_grant(us_info->ucc_num, us_info->grant_support); in ucc_slow_init()
296 ucc_set_qe_mux_bkpt(us_info->ucc_num, us_info->brkpt_support); in ucc_slow_init()
298 ucc_set_qe_mux_tsa(us_info->ucc_num, us_info->tsa); in ucc_slow_init()
302 if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->rx_clock, in ucc_slow_init()
[all …]
Dqe_tdm.c129 u16 ucc_num; in ucc_tdm_init() local
139 ucc_num = ut_info->uf_info.ucc_num; in ucc_tdm_init()
149 csel = (ucc_num < 4) ? ucc_num + 9 : ucc_num - 3; in ucc_tdm_init()
Ducc_fast.c28 printk(KERN_INFO "UCC%u Fast registers:\n", uccf->uf_info->ucc_num); in ucc_fast_dump_regs()
146 if ((uf_info->ucc_num < 0) || (uf_info->ucc_num > UCC_MAX_NUM - 1)) { in ucc_fast_init()
230 ret = ucc_set_type(uf_info->ucc_num, UCC_SPEED_TYPE_FAST); in ucc_fast_init()
304 ucc_set_qe_mux_grant(uf_info->ucc_num, uf_info->grant_support); in ucc_fast_init()
306 ucc_set_qe_mux_bkpt(uf_info->ucc_num, uf_info->brkpt_support); in ucc_fast_init()
308 ucc_set_qe_mux_tsa(uf_info->ucc_num, uf_info->tsa); in ucc_fast_init()
313 ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->rx_clock, in ucc_fast_init()
322 ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->tx_clock, in ucc_fast_init()
/linux-6.1.9/drivers/net/wan/
Dfsl_ucc_hdlc.c141 cecr_subblock = ucc_fast_get_qe_cr_subblock(uf_info->ucc_num); in uhdlc_init()
228 cecr_subblock = ucc_fast_get_qe_cr_subblock(uf_info->ucc_num); in uhdlc_init()
444 ucc_fast_get_qe_cr_subblock(priv->ut_info->uf_info.ucc_num); in hdlc_tx_restart()
718 priv->ut_info->uf_info.ucc_num); in uhdlc_open()
810 priv->ut_info->uf_info.ucc_num); in uhdlc_close()
969 cecr_subblock = ucc_fast_get_qe_cr_subblock(uf_info->ucc_num); in uhdlc_resume()
977 cecr_subblock = ucc_fast_get_qe_cr_subblock(uf_info->ucc_num); in uhdlc_resume()
1014 priv->ut_info->uf_info.ucc_num); in uhdlc_resume()
1116 int ucc_num; in ucc_hdlc_probe() local
1127 ucc_num = val - 1; in ucc_hdlc_probe()
[all …]
/linux-6.1.9/arch/powerpc/platforms/85xx/
Dmpc85xx_mds.c208 int ucc_num; in mpc85xx_mds_reset_ucc_phys() local
214 ucc_num = *prop - 1; in mpc85xx_mds_reset_ucc_phys()
221 clrsetbits_8(&bcsr_regs[7 + ucc_num], in mpc85xx_mds_reset_ucc_phys()
/linux-6.1.9/drivers/tty/serial/
Ducc_uart.c184 unsigned int ucc_num; /* First ucc is 0, not 1 */ member
757 cecr_subblock = ucc_slow_get_qe_cr_subblock(qe_port->ucc_num); in qe_uart_init_ucc()
761 cecr_subblock = ucc_slow_get_qe_cr_subblock(qe_port->ucc_num); in qe_uart_init_ucc()
982 qe_port->ucc_num); in qe_uart_request_port()
1292 qe_port->ucc_num = val - 1; in ucc_uart_probe()
1352 qe_port->ucc_num + 1); in ucc_uart_probe()
1424 qe_port->us_info.ucc_num = qe_port->ucc_num; in ucc_uart_probe()
1449 qe_port->ucc_num + 1, qe_port->port.line); in ucc_uart_probe()
/linux-6.1.9/drivers/net/ethernet/freescale/
Ducc_geth.c442 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in hw_add_addr_in_hash()
604 pr_info("UCC%d Geth registers:\n", ugeth->ug_info->uf_info.ucc_num + 1); in dump_regs()
1394 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in ugeth_graceful_stop_tx()
1429 ucc_num); in ugeth_graceful_stop_rx()
1449 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in ugeth_restart_tx()
1464 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in ugeth_restart_rx()
1480 if (ugeth->ug_info->uf_info.ucc_num >= UCC_MAX_NUM) { in ugeth_enable()
1509 if (ugeth->ug_info->uf_info.ucc_num >= UCC_MAX_NUM) { in ugeth_disable()
2900 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in ucc_geth_startup()
3563 int err, ucc_num, max_speed = 0; in ucc_geth_probe() local
[all …]