Home
last modified time | relevance | path

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

/linux/include/soc/fsl/qe/
A 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()
A Ducc_fast.h140 int ucc_num; member
A Ducc_slow.h146 int ucc_num; member
/linux/drivers/soc/fsl/qe/
A 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()
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()
105 if (ucc_num > UCC_MAX_NUM - 1) in ucc_mux_set_grant_tsa_bkpt()
108 get_cmxucr_reg(ucc_num, &cmxucr, &reg_num, &shift); in ucc_mux_set_grant_tsa_bkpt()
127 if (ucc_num > UCC_MAX_NUM - 1) in ucc_set_qe_mux_rxtx()
[all …]
A 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 …]
A 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()
A 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/drivers/net/wan/
A 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()
715 priv->ut_info->uf_info.ucc_num); in uhdlc_open()
807 priv->ut_info->uf_info.ucc_num); in uhdlc_close()
1012 priv->ut_info->uf_info.ucc_num); in uhdlc_resume()
1114 int ucc_num; in ucc_hdlc_probe() local
1125 ucc_num = val - 1; in ucc_hdlc_probe()
1126 if (ucc_num > (UCC_MAX_NUM - 1) || ucc_num < 0) { in ucc_hdlc_probe()
1131 memcpy(&utdm_info[ucc_num], &utdm_primary_info, in ucc_hdlc_probe()
1134 ut_info = &utdm_info[ucc_num]; in ucc_hdlc_probe()
[all …]
/linux/arch/powerpc/platforms/85xx/
A Dmpc85xx_mds.c209 int ucc_num; in mpc85xx_mds_reset_ucc_phys() local
215 ucc_num = *prop - 1; in mpc85xx_mds_reset_ucc_phys()
222 clrsetbits_8(&bcsr_regs[7 + ucc_num], in mpc85xx_mds_reset_ucc_phys()
/linux/drivers/tty/serial/
A 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()
1302 qe_port->ucc_num = val - 1; in ucc_uart_probe()
1362 qe_port->ucc_num + 1); in ucc_uart_probe()
1434 qe_port->us_info.ucc_num = qe_port->ucc_num; in ucc_uart_probe()
1459 qe_port->ucc_num + 1, qe_port->port.line); in ucc_uart_probe()
/linux/drivers/net/ethernet/freescale/
A Ducc_geth.c442 ucc_fast_get_qe_cr_subblock(ugeth->ug_info->uf_info.ucc_num); in hw_add_addr_in_hash()
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()
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()
3563 int err, ucc_num, max_speed = 0; in ucc_geth_probe() local
3589 ucc_num = *prop - 1; in ucc_geth_probe()
3590 if ((ucc_num < 0) || (ucc_num > 7)) in ucc_geth_probe()
3597 ug_info->uf_info.ucc_num = ucc_num; in ucc_geth_probe()
[all …]

Completed in 30 milliseconds