Lines Matching refs:fec
78 static int whack_reset(struct fec __iomem *fecp) in whack_reset()
100 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
119 fep->fec.hthi = 0; in setup_data()
120 fep->fec.htlo = 0; in setup_data()
164 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode()
173 fep->fec.hthi = 0; in set_multicast_start()
174 fep->fec.htlo = 0; in set_multicast_start()
193 fep->fec.hthi |= csrVal; in set_multicast_one()
195 fep->fec.htlo |= csrVal; in set_multicast_one()
201 struct fec __iomem *fecp = fep->fec.fecp; in set_multicast_finish()
206 fep->fec.hthi = 0xffffffffU; in set_multicast_finish()
207 fep->fec.htlo = 0xffffffffU; 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()
231 struct fec __iomem *fecp = fep->fec.fecp; in restart()
240 r = whack_reset(fep->fec.fecp); in restart()
258 FW(fecp, grp_hash_table_high, fep->fec.hthi); in restart()
259 FW(fecp, grp_hash_table_low, fep->fec.htlo); in restart()
344 struct fec __iomem *fecp = fep->fec.fecp; in stop()
382 struct fec __iomem *fecp = fep->fec.fecp; in napi_clear_event_fs()
390 struct fec __iomem *fecp = fep->fec.fecp; in napi_enable_fs()
398 struct fec __iomem *fecp = fep->fec.fecp; in napi_disable_fs()
406 struct fec __iomem *fecp = fep->fec.fecp; in rx_bd_done()
414 struct fec __iomem *fecp = fep->fec.fecp; in tx_kickstart()
422 struct fec __iomem *fecp = fep->fec.fecp; in get_int_events()
430 struct fec __iomem *fecp = fep->fec.fecp; in clear_int_events()
446 if (*sizep < sizeof(struct fec)) in get_regs()
449 memcpy_fromio(p, fep->fec.fecp, sizeof(struct fec)); in get_regs()
456 return sizeof(struct fec); in get_regs_len()