Searched refs:fecp (Results 1 – 7 of 7) sorted by relevance
/openbmc/u-boot/drivers/net/ |
H A D | mcffec.c | 85 void setFecDuplexSpeed(volatile fec_t * fecp, bd_t * bd, int dup_spd) in setFecDuplexSpeed() argument 89 fecp->rcr = FEC_RCR_MAX_FL(PKT_MAXBUF_SIZE) | FEC_RCR_MII_MODE | in setFecDuplexSpeed() 91 fecp->tcr = FEC_TCR_FDEN; in setFecDuplexSpeed() 94 fecp->rcr = FEC_RCR_MAX_FL(PKT_MAXBUF_SIZE) | in setFecDuplexSpeed() 96 fecp->tcr &= ~FEC_TCR_FDEN; in setFecDuplexSpeed() 101 fecp->rcr &= ~0x200; /* disabled 10T base */ in setFecDuplexSpeed() 109 fecp->rcr |= 0x200; /* enabled 10T base */ in setFecDuplexSpeed() 121 volatile fec_t *fecp = (fec_t *) (info->iobase); in fec_send() local 145 fecp->tdar = 0x01000000; /* Descriptor polling active */ in fec_send() 190 volatile fec_t *fecp = (fec_t *) (info->iobase); in fec_recv() local [all …]
|
H A D | fsl_mcdmafec.c | 110 volatile fecdma_t *fecp = (fecdma_t *) (info->iobase); in dbg_fec_regs() local 113 printf("ievent %x - %x\n", (int)&fecp->eir, fecp->eir); in dbg_fec_regs() 114 printf("imask %x - %x\n", (int)&fecp->eimr, fecp->eimr); in dbg_fec_regs() 115 printf("ecntrl %x - %x\n", (int)&fecp->ecr, fecp->ecr); in dbg_fec_regs() 116 printf("mii_mframe %x - %x\n", (int)&fecp->mmfr, fecp->mmfr); in dbg_fec_regs() 117 printf("mii_speed %x - %x\n", (int)&fecp->mscr, fecp->mscr); in dbg_fec_regs() 118 printf("mii_ctrlstat %x - %x\n", (int)&fecp->mibc, fecp->mibc); in dbg_fec_regs() 119 printf("r_cntrl %x - %x\n", (int)&fecp->rcr, fecp->rcr); in dbg_fec_regs() 120 printf("r hash %x - %x\n", (int)&fecp->rhr, fecp->rhr); in dbg_fec_regs() 121 printf("x_cntrl %x - %x\n", (int)&fecp->tcr, fecp->tcr); in dbg_fec_regs() [all …]
|
H A D | mpc8xx_fec.c | 175 fec_t __iomem *fecp = in fec_send() local 197 out_be32(&fecp->fec_x_des_active, 0x01000000); in fec_send() 219 fec_t __iomem *fecp = in fec_recv() local 265 out_be32(&fecp->fec_r_des_active, 0x01000000); in fec_recv() 326 fec_t __iomem *fecp = in fec_full_duplex() local 329 clrbits_be32(&fecp->fec_r_cntrl, FEC_RCNTRL_DRT); in fec_full_duplex() 330 setbits_be32(&fecp->fec_x_cntrl, FEC_TCNTRL_FDEN); /* FD enable */ in fec_full_duplex() 336 fec_t __iomem *fecp = in fec_half_duplex() local 339 setbits_be32(&fecp->fec_r_cntrl, FEC_RCNTRL_DRT); in fec_half_duplex() 340 clrbits_be32(&fecp->fec_x_cntrl, FEC_TCNTRL_FDEN); /* FD disable */ in fec_half_duplex() [all …]
|
H A D | mcfmii.c | 82 volatile FEC_T *fecp = (FEC_T *) (info->miibase); in mii_reset() local 85 fecp->ecr = FEC_ECR_RESET; in mii_reset() 87 for (i = 0; (fecp->ecr & FEC_ECR_RESET) && (i < FEC_RESET_DELAY); ++i) { in mii_reset() 210 volatile FEC_T *fecp; in __mii_init() local 220 fecp = (FEC_T *) info->miibase; in __mii_init() 227 fecp->eimr = 0; in __mii_init() 230 fecp->eir = 0xffffffff; in __mii_init() 234 fecp->mscr = miispd << 1; in __mii_init()
|
/openbmc/linux/drivers/net/ethernet/freescale/fs_enet/ |
H A D | mac-fec.c | 77 static int whack_reset(struct fec __iomem *fecp) in whack_reset() argument 81 FW(fecp, ecntrl, FEC_ECNTRL_PINMUX | FEC_ECNTRL_RESET); in whack_reset() 83 if ((FR(fecp, ecntrl) & FEC_ECNTRL_RESET) == 0) in whack_reset() 99 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup() 100 if (!fep->fec.fecp) in do_pd_setup() 163 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode() local 165 FS(fecp, r_cntrl, FEC_RCNTRL_PROM); in set_promiscuous_mode() 200 struct fec __iomem *fecp = fep->fec.fecp; in set_multicast_finish() local 209 FC(fecp, r_cntrl, FEC_RCNTRL_PROM); in set_multicast_finish() 210 FW(fecp, grp_hash_table_high, fep->fec.hthi); in set_multicast_finish() [all …]
|
H A D | mii-fec.c | 56 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_read() local 59 BUG_ON((in_be32(&fecp->fec_r_cntrl) & FEC_RCNTRL_MII_MODE) == 0); in fs_enet_fec_mii_read() 62 out_be32(&fecp->fec_mii_data, (phy_id << 23) | mk_mii_read(location)); in fs_enet_fec_mii_read() 65 if ((in_be32(&fecp->fec_ievent) & FEC_ENET_MII) != 0) in fs_enet_fec_mii_read() 69 out_be32(&fecp->fec_ievent, FEC_ENET_MII); in fs_enet_fec_mii_read() 70 ret = in_be32(&fecp->fec_mii_data) & 0xffff; in fs_enet_fec_mii_read() 79 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_write() local 83 BUG_ON((in_be32(&fecp->fec_r_cntrl) & FEC_RCNTRL_MII_MODE) == 0); in fs_enet_fec_mii_write() 86 out_be32(&fecp->fec_mii_data, (phy_id << 23) | mk_mii_write(location, val)); in fs_enet_fec_mii_write() 89 if ((in_be32(&fecp->fec_ievent) & FEC_ENET_MII) != 0) in fs_enet_fec_mii_write() [all …]
|
H A D | fs_enet.h | 64 struct fec __iomem *fecp; member 176 void __iomem *fecp; /* hw registers */ member
|