Searched refs:ucc_num (Results 1 – 7 of 7) sorted by relevance
/arch/powerpc/include/asm/ |
D | ucc.h | 38 int ucc_set_type(unsigned int ucc_num, enum ucc_speed_type speed); 40 int ucc_set_qe_mux_mii_mng(unsigned int ucc_num); 42 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 | 120 int ucc_num; member
|
D | ucc_slow.h | 150 int ucc_num; member
|
/arch/powerpc/sysdev/qe_lib/ |
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 | 57 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_graceful_stop_tx() 68 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_stop_tx() 78 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_restart_tx() 144 if ((us_info->ucc_num < 0) || (us_info->ucc_num > UCC_MAX_NUM - 1)) { in ucc_slow_init() 197 id = ucc_slow_get_qe_cr_subblock(us_info->ucc_num); in ucc_slow_init() 204 ret = ucc_set_type(us_info->ucc_num, UCC_SPEED_TYPE_SLOW); in ucc_slow_init() 310 ucc_set_qe_mux_grant(us_info->ucc_num, us_info->grant_support); in ucc_slow_init() 312 ucc_set_qe_mux_bkpt(us_info->ucc_num, us_info->brkpt_support); in ucc_slow_init() 314 ucc_set_qe_mux_tsa(us_info->ucc_num, us_info->tsa); in ucc_slow_init() 318 if (ucc_set_qe_mux_rxtx(us_info->ucc_num, us_info->rx_clock, in ucc_slow_init() [all …]
|
D | ucc_fast.c | 33 printk(KERN_INFO "UCC%u Fast registers:\n", uccf->uf_info->ucc_num); in ucc_fast_dump_regs() 150 if ((uf_info->ucc_num < 0) || (uf_info->ucc_num > UCC_MAX_NUM - 1)) { in ucc_fast_init() 232 ret = ucc_set_type(uf_info->ucc_num, UCC_SPEED_TYPE_FAST); in ucc_fast_init() 306 ucc_set_qe_mux_grant(uf_info->ucc_num, uf_info->grant_support); in ucc_fast_init() 308 ucc_set_qe_mux_bkpt(uf_info->ucc_num, uf_info->brkpt_support); in ucc_fast_init() 310 ucc_set_qe_mux_tsa(uf_info->ucc_num, uf_info->tsa); in ucc_fast_init() 315 ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->rx_clock, in ucc_fast_init() 324 ucc_set_qe_mux_rxtx(uf_info->ucc_num, uf_info->tx_clock, in ucc_fast_init()
|
/arch/powerpc/platforms/85xx/ |
D | mpc85xx_mds.c | 213 int ucc_num; in mpc85xx_mds_reset_ucc_phys() local 219 ucc_num = *prop - 1; in mpc85xx_mds_reset_ucc_phys() 226 clrsetbits_8(&bcsr_regs[7 + ucc_num], in mpc85xx_mds_reset_ucc_phys()
|