Lines Matching refs:fec
42 #include "fec.h"
54 struct fec_info* fec = bus->priv;
55 struct fec __iomem *fecp = fec->fecp;
77 struct fec_info* fec = bus->priv;
78 struct fec __iomem *fecp = fec->fecp;
109 struct fec_info *fec;
117 fec = kzalloc(sizeof(struct fec_info), GFP_KERNEL);
118 if (!fec)
121 new_bus->priv = fec;
133 fec->fecp = ioremap(res.start, res.end - res.start + 1);
134 if (!fec->fecp)
159 fec->mii_speed = speed << 1;
161 setbits32(&fec->fecp->fec_r_cntrl, FEC_RCNTRL_MII_MODE);
162 setbits32(&fec->fecp->fec_ecntrl, FEC_ECNTRL_PINMUX |
164 out_be32(&fec->fecp->fec_ievent, FEC_ENET_MII);
165 clrsetbits_be32(&fec->fecp->fec_mii_speed, 0x7E, fec->mii_speed);
185 iounmap(fec->fecp);
188 kfree(fec);
198 struct fec_info *fec = bus->priv;
203 iounmap(fec->fecp);
204 kfree(fec);
212 .compatible = "fsl,pq1-fec-mdio",
216 .compatible = "fsl,mpc5121-fec-mdio",
226 .name = "fsl-fec-mdio",