Home
last modified time | relevance | path

Searched refs:fecp (Results 1 – 3 of 3) sorted by relevance

/drivers/net/ethernet/freescale/fs_enet/
Dmac-fec.c83 static int whack_reset(struct fec __iomem *fecp) in whack_reset() argument
87 FW(fecp, ecntrl, FEC_ECNTRL_PINMUX | FEC_ECNTRL_RESET); in whack_reset()
89 if ((FR(fecp, ecntrl) & FEC_ECNTRL_RESET) == 0) in whack_reset()
105 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
171 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode() local
173 FS(fecp, r_cntrl, FEC_RCNTRL_PROM); in set_promiscuous_mode()
219 struct fec __iomem *fecp = fep->fec.fecp; in set_multicast_finish() local
228 FC(fecp, r_cntrl, FEC_RCNTRL_PROM); in set_multicast_finish()
229 FW(fecp, grp_hash_table_high, fep->fec.hthi); in set_multicast_finish()
230 FW(fecp, grp_hash_table_low, fep->fec.htlo); in set_multicast_finish()
[all …]
Dmii-fec.c55 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_read() local
58 BUG_ON((in_be32(&fecp->fec_r_cntrl) & FEC_RCNTRL_MII_MODE) == 0); in fs_enet_fec_mii_read()
61 out_be32(&fecp->fec_mii_data, (phy_id << 23) | mk_mii_read(location)); in fs_enet_fec_mii_read()
64 if ((in_be32(&fecp->fec_ievent) & FEC_ENET_MII) != 0) in fs_enet_fec_mii_read()
68 out_be32(&fecp->fec_ievent, FEC_ENET_MII); in fs_enet_fec_mii_read()
69 ret = in_be32(&fecp->fec_mii_data) & 0xffff; in fs_enet_fec_mii_read()
78 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_write() local
82 BUG_ON((in_be32(&fecp->fec_r_cntrl) & FEC_RCNTRL_MII_MODE) == 0); in fs_enet_fec_mii_write()
85 out_be32(&fecp->fec_mii_data, (phy_id << 23) | mk_mii_write(location, val)); in fs_enet_fec_mii_write()
88 if ((in_be32(&fecp->fec_ievent) & FEC_ENET_MII) != 0) in fs_enet_fec_mii_write()
[all …]
Dfs_enet.h65 struct fec __iomem *fecp; member
162 void __iomem *fecp; /* hw registers */ member