Lines Matching full:fec
42 #include "fec.h"
73 * Delay to wait for FEC reset command to complete (in us)
77 static int whack_reset(struct fec __iomem *fecp) in whack_reset()
99 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
100 if (!fep->fec.fecp) in do_pd_setup()
118 fep->fec.hthi = 0; in setup_data()
119 fep->fec.htlo = 0; in setup_data()
163 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode()
172 fep->fec.hthi = 0; in set_multicast_start()
173 fep->fec.htlo = 0; in set_multicast_start()
192 fep->fec.hthi |= csrVal; in set_multicast_one()
194 fep->fec.htlo |= csrVal; in set_multicast_one()
200 struct fec __iomem *fecp = fep->fec.fecp; in set_multicast_finish()
205 fep->fec.hthi = 0xffffffffU; in set_multicast_finish()
206 fep->fec.htlo = 0xffffffffU; in set_multicast_finish()
210 FW(fecp, grp_hash_table_high, fep->fec.hthi); in set_multicast_finish()
211 FW(fecp, grp_hash_table_low, fep->fec.htlo); in set_multicast_finish()
230 struct fec __iomem *fecp = fep->fec.fecp; in restart()
239 r = whack_reset(fep->fec.fecp); in restart()
241 dev_err(fep->dev, "FEC Reset FAILED!\n"); in restart()
257 FW(fecp, grp_hash_table_high, fep->fec.hthi); in restart()
258 FW(fecp, grp_hash_table_low, fep->fec.htlo); in restart()
342 struct fec __iomem *fecp = fep->fec.fecp; in stop()
354 dev_warn(fep->dev, "FEC timeout on graceful transmit stop\n"); in stop()
356 * Disable FEC. Let only MII interrupts. in stop()
367 struct fec __iomem *fecp = fep->fec.fecp; in napi_clear_event_fs()
375 struct fec __iomem *fecp = fep->fec.fecp; in napi_enable_fs()
383 struct fec __iomem *fecp = fep->fec.fecp; in napi_disable_fs()
391 struct fec __iomem *fecp = fep->fec.fecp; in rx_bd_done()
399 struct fec __iomem *fecp = fep->fec.fecp; in tx_kickstart()
407 struct fec __iomem *fecp = fep->fec.fecp; in get_int_events()
415 struct fec __iomem *fecp = fep->fec.fecp; in clear_int_events()
424 dev_warn(fep->dev, "FEC ERROR(s) 0x%x\n", int_events); in ev_error()
431 if (*sizep < sizeof(struct fec)) in get_regs()
434 memcpy_fromio(p, fep->fec.fecp, sizeof(struct fec)); in get_regs()
441 return sizeof(struct fec); in get_regs_len()