Lines Matching full:fec

38 #include "fec.h"
69 * Delay to wait for FEC reset command to complete (in us)
73 static int whack_reset(struct fec __iomem *fecp) in whack_reset()
95 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
96 if (!fep->fec.fecp) in do_pd_setup()
114 fep->fec.hthi = 0; in setup_data()
115 fep->fec.htlo = 0; in setup_data()
159 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode()
168 fep->fec.hthi = 0; in set_multicast_start()
169 fep->fec.htlo = 0; in set_multicast_start()
188 fep->fec.hthi |= csrVal; in set_multicast_one()
190 fep->fec.htlo |= csrVal; in set_multicast_one()
196 struct fec __iomem *fecp = fep->fec.fecp; in set_multicast_finish()
201 fep->fec.hthi = 0xffffffffU; in set_multicast_finish()
202 fep->fec.htlo = 0xffffffffU; in set_multicast_finish()
206 FW(fecp, grp_hash_table_high, fep->fec.hthi); in set_multicast_finish()
207 FW(fecp, grp_hash_table_low, fep->fec.htlo); in set_multicast_finish()
227 struct fec __iomem *fecp = fep->fec.fecp; in restart()
236 r = whack_reset(fep->fec.fecp); in restart()
238 dev_err(fep->dev, "FEC Reset FAILED!\n"); in restart()
254 FW(fecp, grp_hash_table_high, fep->fec.hthi); in restart()
255 FW(fecp, grp_hash_table_low, fep->fec.htlo); in restart()
339 struct fec __iomem *fecp = fep->fec.fecp; in stop()
351 dev_warn(fep->dev, "FEC timeout on graceful transmit stop\n"); in stop()
353 * Disable FEC. Let only MII interrupts. in stop()
364 struct fec __iomem *fecp = fep->fec.fecp; in napi_clear_event_fs()
372 struct fec __iomem *fecp = fep->fec.fecp; in napi_enable_fs()
380 struct fec __iomem *fecp = fep->fec.fecp; in napi_disable_fs()
388 struct fec __iomem *fecp = fep->fec.fecp; in rx_bd_done()
396 struct fec __iomem *fecp = fep->fec.fecp; in tx_kickstart()
404 struct fec __iomem *fecp = fep->fec.fecp; in get_int_events()
412 struct fec __iomem *fecp = fep->fec.fecp; in clear_int_events()
421 dev_warn(fep->dev, "FEC ERROR(s) 0x%x\n", int_events); in ev_error()
428 if (*sizep < sizeof(struct fec)) in get_regs()
431 memcpy_fromio(p, fep->fec.fecp, sizeof(struct fec)); in get_regs()
438 return sizeof(struct fec); in get_regs_len()