Lines Matching refs:fec
83 static int whack_reset(struct fec __iomem *fecp) in whack_reset()
105 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
125 fep->fec.hthi = 0; in setup_data()
126 fep->fec.htlo = 0; in setup_data()
171 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode()
180 fep->fec.hthi = 0; in set_multicast_start()
181 fep->fec.htlo = 0; in set_multicast_start()
211 fep->fec.hthi |= csrVal; in set_multicast_one()
213 fep->fec.htlo |= csrVal; in set_multicast_one()
219 struct fec __iomem *fecp = fep->fec.fecp; in set_multicast_finish()
224 fep->fec.hthi = 0xffffffffU; in set_multicast_finish()
225 fep->fec.htlo = 0xffffffffU; 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()
249 struct fec __iomem *fecp = fep->fec.fecp; in restart()
258 r = whack_reset(fep->fec.fecp); in restart()
276 FW(fecp, grp_hash_table_high, fep->fec.hthi); in restart()
277 FW(fecp, grp_hash_table_low, fep->fec.htlo); in restart()
359 struct fec __iomem *fecp = fep->fec.fecp; in stop()
397 struct fec __iomem *fecp = fep->fec.fecp; in napi_clear_rx_event()
405 struct fec __iomem *fecp = fep->fec.fecp; in napi_enable_rx()
413 struct fec __iomem *fecp = fep->fec.fecp; in napi_disable_rx()
421 struct fec __iomem *fecp = fep->fec.fecp; in rx_bd_done()
429 struct fec __iomem *fecp = fep->fec.fecp; in tx_kickstart()
437 struct fec __iomem *fecp = fep->fec.fecp; in get_int_events()
445 struct fec __iomem *fecp = fep->fec.fecp; in clear_int_events()
461 if (*sizep < sizeof(struct fec)) in get_regs()
464 memcpy_fromio(p, fep->fec.fecp, sizeof(struct fec)); in get_regs()
471 return sizeof(struct fec); in get_regs_len()