Lines Matching refs:fec
54 struct fec_info* fec = bus->priv; in fs_enet_fec_mii_read() local
55 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_read()
77 struct fec_info* fec = bus->priv; in fs_enet_fec_mii_write() local
78 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_write()
104 struct fec_info *fec; in fs_enet_mdio_probe() local
117 fec = kzalloc(sizeof(struct fec_info), GFP_KERNEL); in fs_enet_mdio_probe()
118 if (!fec) in fs_enet_mdio_probe()
121 new_bus->priv = fec; in fs_enet_mdio_probe()
132 fec->fecp = ioremap(res.start, resource_size(&res)); in fs_enet_mdio_probe()
133 if (!fec->fecp) { in fs_enet_mdio_probe()
160 fec->mii_speed = speed << 1; in fs_enet_mdio_probe()
162 setbits32(&fec->fecp->fec_r_cntrl, FEC_RCNTRL_MII_MODE); in fs_enet_mdio_probe()
163 setbits32(&fec->fecp->fec_ecntrl, FEC_ECNTRL_PINMUX | in fs_enet_mdio_probe()
165 out_be32(&fec->fecp->fec_ievent, FEC_ENET_MII); in fs_enet_mdio_probe()
166 clrsetbits_be32(&fec->fecp->fec_mii_speed, 0x7E, fec->mii_speed); in fs_enet_mdio_probe()
187 iounmap(fec->fecp); in fs_enet_mdio_probe()
190 kfree(fec); in fs_enet_mdio_probe()
200 struct fec_info *fec = bus->priv; in fs_enet_mdio_remove() local
204 iounmap(fec->fecp); in fs_enet_mdio_remove()
205 kfree(fec); in fs_enet_mdio_remove()