Lines Matching refs:sccp
99 fep->scc.sccp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
100 if (!fep->scc.sccp) in do_pd_setup()
105 iounmap(fep->scc.sccp); in do_pd_setup()
164 scc_t __iomem *sccp = fep->scc.sccp; in set_promiscuous_mode() local
166 S16(sccp, scc_psmr, SCC_PSMR_PRO); in set_promiscuous_mode()
199 scc_t __iomem *sccp = fep->scc.sccp; in set_multicast_finish() local
203 C16(sccp, scc_psmr, SCC_PSMR_PRO); in set_multicast_finish()
237 scc_t __iomem *sccp = fep->scc.sccp; in restart() local
244 C32(sccp, scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); in restart()
321 W16(sccp, scc_scce, 0xffff); in restart()
325 W16(sccp, scc_sccm, SCCE_ENET_TXE | SCCE_ENET_RXF | SCCE_ENET_TXB); in restart()
330 W32(sccp, scc_gsmrh, 0); in restart()
331 W32(sccp, scc_gsmrl, in restart()
337 W16(sccp, scc_dsr, 0xd555); in restart()
342 W16(sccp, scc_psmr, SCC_PSMR_ENCRC | SCC_PSMR_NIB22); in restart()
346 S16(sccp, scc_psmr, SCC_PSMR_LPB | SCC_PSMR_FDE); in restart()
351 S32(sccp, scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); in restart()
357 scc_t __iomem *sccp = fep->scc.sccp; in stop() local
360 for (i = 0; (R16(sccp, scc_sccm) == 0) && i < SCC_RESET_DELAY; i++) in stop()
366 W16(sccp, scc_sccm, 0); in stop()
367 C32(sccp, scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); in stop()
375 scc_t __iomem *sccp = fep->scc.sccp; in napi_clear_event_fs() local
377 W16(sccp, scc_scce, SCC_NAPI_EVENT_MSK); in napi_clear_event_fs()
383 scc_t __iomem *sccp = fep->scc.sccp; in napi_enable_fs() local
385 S16(sccp, scc_sccm, SCC_NAPI_EVENT_MSK); in napi_enable_fs()
391 scc_t __iomem *sccp = fep->scc.sccp; in napi_disable_fs() local
393 C16(sccp, scc_sccm, SCC_NAPI_EVENT_MSK); in napi_disable_fs()
409 scc_t __iomem *sccp = fep->scc.sccp; in get_int_events() local
411 return (u32) R16(sccp, scc_scce); in get_int_events()
417 scc_t __iomem *sccp = fep->scc.sccp; in clear_int_events() local
419 W16(sccp, scc_scce, int_events & 0xffff); in clear_int_events()
436 memcpy_fromio(p, fep->scc.sccp, sizeof(scc_t)); in get_regs()