/linux-6.12.1/include/soc/fsl/qe/ |
D | ucc.h | 34 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()
|
D | ucc_fast.h | 140 int ucc_num; member
|
D | ucc_slow.h | 146 int ucc_num; member
|
/linux-6.12.1/drivers/soc/fsl/qe/ |
D | ucc.c | 29 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 …]
|
D | ucc_slow.c | 47 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 …]
|
D | qe_tdm.c | 127 u16 ucc_num; in ucc_tdm_init() local 137 ucc_num = ut_info->uf_info.ucc_num; in ucc_tdm_init() 147 csel = (ucc_num < 4) ? ucc_num + 9 : ucc_num - 3; in ucc_tdm_init()
|
D | ucc_fast.c | 28 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()
|
D | tsa.c | 304 int ucc_num; in tsa_qe_serial_connect() local 307 ucc_num = tsa_qe_serial_get_num(tsa_serial); in tsa_qe_serial_connect() 308 if (ucc_num < 0) in tsa_qe_serial_connect() 309 return ucc_num; in tsa_qe_serial_connect() 312 ret = ucc_set_qe_mux_tsa(ucc_num, connect); in tsa_qe_serial_connect()
|
D | qmc.c | 1739 int ucc_num; in qmc_qe_init_resources() local 1746 ucc_num = tsa_serial_get_num(qmc->tsa_serial); in qmc_qe_init_resources() 1747 if (ucc_num < 0) in qmc_qe_init_resources() 1748 return dev_err_probe(qmc->dev, ucc_num, "Failed to get UCC num\n"); in qmc_qe_init_resources() 1750 qmc->qe_subblock = ucc_slow_get_qe_cr_subblock(ucc_num); in qmc_qe_init_resources() 1752 dev_err(qmc->dev, "Unsupported ucc num %u\n", ucc_num); in qmc_qe_init_resources()
|
/linux-6.12.1/drivers/net/wan/ |
D | fsl_ucc_hdlc.c | 143 cecr_subblock = ucc_fast_get_qe_cr_subblock(uf_info->ucc_num); in uhdlc_init() 230 cecr_subblock = ucc_fast_get_qe_cr_subblock(uf_info->ucc_num); in uhdlc_init() 446 ucc_fast_get_qe_cr_subblock(priv->ut_info->uf_info.ucc_num); in hdlc_tx_restart() 721 priv->ut_info->uf_info.ucc_num); in uhdlc_open() 816 priv->ut_info->uf_info.ucc_num); in uhdlc_close() 977 cecr_subblock = ucc_fast_get_qe_cr_subblock(uf_info->ucc_num); in uhdlc_resume() 985 cecr_subblock = ucc_fast_get_qe_cr_subblock(uf_info->ucc_num); in uhdlc_resume() 1022 priv->ut_info->uf_info.ucc_num); in uhdlc_resume() 1124 int ucc_num; in ucc_hdlc_probe() local 1135 ucc_num = val - 1; in ucc_hdlc_probe() [all …]
|
/linux-6.12.1/arch/powerpc/platforms/85xx/ |
D | mpc85xx_mds.c | 201 int ucc_num; in mpc85xx_mds_reset_ucc_phys() local 207 ucc_num = *prop - 1; in mpc85xx_mds_reset_ucc_phys() 214 clrsetbits_8(&bcsr_regs[7 + ucc_num], in mpc85xx_mds_reset_ucc_phys()
|
/linux-6.12.1/drivers/tty/serial/ |
D | ucc_uart.c | 184 unsigned int ucc_num; /* First ucc is 0, not 1 */ member 749 cecr_subblock = ucc_slow_get_qe_cr_subblock(qe_port->ucc_num); in qe_uart_init_ucc() 753 cecr_subblock = ucc_slow_get_qe_cr_subblock(qe_port->ucc_num); in qe_uart_init_ucc() 974 qe_port->ucc_num); in qe_uart_request_port() 1284 qe_port->ucc_num = val - 1; in ucc_uart_probe() 1344 qe_port->ucc_num + 1); in ucc_uart_probe() 1416 qe_port->us_info.ucc_num = qe_port->ucc_num; in ucc_uart_probe() 1441 qe_port->ucc_num + 1, qe_port->port.line); in ucc_uart_probe()
|
/linux-6.12.1/drivers/net/ethernet/freescale/ |
D | ucc_geth.c | 443 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in hw_add_addr_in_hash() 605 pr_info("UCC%d Geth registers:\n", ugeth->ug_info->uf_info.ucc_num + 1); in dump_regs() 1395 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in ugeth_graceful_stop_tx() 1430 ucc_num); in ugeth_graceful_stop_rx() 1450 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in ugeth_restart_tx() 1465 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in ugeth_restart_rx() 1481 if (ugeth->ug_info->uf_info.ucc_num >= UCC_MAX_NUM) { in ugeth_enable() 1510 if (ugeth->ug_info->uf_info.ucc_num >= UCC_MAX_NUM) { in ugeth_disable() 2901 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in ucc_geth_startup() 3564 int err, ucc_num, max_speed = 0; in ucc_geth_probe() local [all …]
|