Searched refs:fecp (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.4/drivers/net/ethernet/freescale/fs_enet/ |
D | mac-fec.c | 78 static int whack_reset(struct fec __iomem *fecp) in whack_reset() argument 82 FW(fecp, ecntrl, FEC_ECNTRL_PINMUX | FEC_ECNTRL_RESET); in whack_reset() 84 if ((FR(fecp, ecntrl) & FEC_ECNTRL_RESET) == 0) in whack_reset() 100 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup() 164 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode() local 166 FS(fecp, r_cntrl, FEC_RCNTRL_PROM); in set_promiscuous_mode() 201 struct fec __iomem *fecp = fep->fec.fecp; in set_multicast_finish() local 210 FC(fecp, r_cntrl, FEC_RCNTRL_PROM); in set_multicast_finish() 211 FW(fecp, grp_hash_table_high, fep->fec.hthi); in set_multicast_finish() 212 FW(fecp, grp_hash_table_low, fep->fec.htlo); in set_multicast_finish() [all …]
|
D | mii-fec.c | 55 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 …]
|
D | fs_enet.h | 66 struct fec __iomem *fecp; member 161 void __iomem *fecp; /* hw registers */ member
|