Lines Matching refs:sccp
105 fep->scc.sccp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
106 if (!fep->scc.sccp) in do_pd_setup()
111 iounmap(fep->scc.sccp); in do_pd_setup()
170 scc_t __iomem *sccp = fep->scc.sccp; in set_promiscuous_mode() local
172 S16(sccp, scc_psmr, SCC_PSMR_PRO); in set_promiscuous_mode()
205 scc_t __iomem *sccp = fep->scc.sccp; in set_multicast_finish() local
209 C16(sccp, scc_psmr, SCC_PSMR_PRO); in set_multicast_finish()
243 scc_t __iomem *sccp = fep->scc.sccp; in restart() local
250 C32(sccp, scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); in restart()
327 W16(sccp, scc_scce, 0xffff); in restart()
331 W16(sccp, scc_sccm, SCCE_ENET_TXE | SCCE_ENET_RXF | SCCE_ENET_TXB); in restart()
336 W32(sccp, scc_gsmrh, 0); in restart()
337 W32(sccp, scc_gsmrl, in restart()
343 W16(sccp, scc_dsr, 0xd555); in restart()
348 W16(sccp, scc_psmr, SCC_PSMR_ENCRC | SCC_PSMR_NIB22); in restart()
352 S16(sccp, scc_psmr, SCC_PSMR_LPB | SCC_PSMR_FDE); in restart()
357 S32(sccp, scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); in restart()
363 scc_t __iomem *sccp = fep->scc.sccp; in stop() local
366 for (i = 0; (R16(sccp, scc_sccm) == 0) && i < SCC_RESET_DELAY; i++) in stop()
372 W16(sccp, scc_sccm, 0); in stop()
373 C32(sccp, scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); in stop()
381 scc_t __iomem *sccp = fep->scc.sccp; in napi_clear_event_fs() local
383 W16(sccp, scc_scce, SCC_NAPI_EVENT_MSK); in napi_clear_event_fs()
389 scc_t __iomem *sccp = fep->scc.sccp; in napi_enable_fs() local
391 S16(sccp, scc_sccm, SCC_NAPI_EVENT_MSK); in napi_enable_fs()
397 scc_t __iomem *sccp = fep->scc.sccp; in napi_disable_fs() local
399 C16(sccp, scc_sccm, SCC_NAPI_EVENT_MSK); in napi_disable_fs()
415 scc_t __iomem *sccp = fep->scc.sccp; in get_int_events() local
417 return (u32) R16(sccp, scc_scce); in get_int_events()
423 scc_t __iomem *sccp = fep->scc.sccp; in clear_int_events() local
425 W16(sccp, scc_scce, int_events & 0xffff); in clear_int_events()
442 memcpy_fromio(p, fep->scc.sccp, sizeof(scc_t)); in get_regs()