Home
last modified time | relevance | path

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

/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()
/drivers/net/wan/
Dfsl_ucc_hdlc.c143 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()
1023 priv->ut_info->uf_info.ucc_num); in uhdlc_resume()
1125 int ucc_num; in ucc_hdlc_probe() local
1136 ucc_num = val - 1; in ucc_hdlc_probe()
[all …]
/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()
994 qe_port->ucc_num); in qe_uart_request_port()
1304 qe_port->ucc_num = val - 1; in ucc_uart_probe()
1364 qe_port->ucc_num + 1); in ucc_uart_probe()
1436 qe_port->us_info.ucc_num = qe_port->ucc_num; in ucc_uart_probe()
1461 qe_port->ucc_num + 1, qe_port->port.line); in ucc_uart_probe()
/drivers/net/ethernet/freescale/
Ducc_geth.c423 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in hw_add_addr_in_hash()
585 pr_info("UCC%d Geth registers:\n", ugeth->ug_info->uf_info.ucc_num + 1); in dump_regs()
1415 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in ugeth_graceful_stop_tx()
1450 ucc_num); in ugeth_graceful_stop_rx()
1470 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in ugeth_restart_tx()
1485 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in ugeth_restart_rx()
1501 if (ugeth->ug_info->uf_info.ucc_num >= UCC_MAX_NUM) { in ugeth_enable()
1530 if (ugeth->ug_info->uf_info.ucc_num >= UCC_MAX_NUM) { in ugeth_disable()
3063 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in ucc_geth_startup()
3696 int err, ucc_num, max_speed = 0; in ucc_geth_probe() local
[all …]