Lines Matching refs:sccp
98 fep->scc.sccp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
99 if (!fep->scc.sccp) in do_pd_setup()
104 iounmap(fep->scc.sccp); in do_pd_setup()
163 scc_t __iomem *sccp = fep->scc.sccp; in set_promiscuous_mode() local
165 S16(sccp, scc_psmr, SCC_PSMR_PRO); in set_promiscuous_mode()
198 scc_t __iomem *sccp = fep->scc.sccp; in set_multicast_finish() local
202 C16(sccp, scc_psmr, SCC_PSMR_PRO); in set_multicast_finish()
236 scc_t __iomem *sccp = fep->scc.sccp; in restart() local
243 C32(sccp, scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); in restart()
320 W16(sccp, scc_scce, 0xffff); in restart()
324 W16(sccp, scc_sccm, SCCE_ENET_TXE | SCCE_ENET_RXF | SCCE_ENET_TXB); in restart()
329 W32(sccp, scc_gsmrh, 0); in restart()
330 W32(sccp, scc_gsmrl, in restart()
336 W16(sccp, scc_dsr, 0xd555); in restart()
341 W16(sccp, scc_psmr, SCC_PSMR_ENCRC | SCC_PSMR_NIB22); in restart()
345 S16(sccp, scc_psmr, SCC_PSMR_LPB | SCC_PSMR_FDE); in restart()
350 S32(sccp, scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); in restart()
356 scc_t __iomem *sccp = fep->scc.sccp; in stop() local
359 for (i = 0; (R16(sccp, scc_sccm) == 0) && i < SCC_RESET_DELAY; i++) in stop()
365 W16(sccp, scc_sccm, 0); in stop()
366 C32(sccp, scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); in stop()
374 scc_t __iomem *sccp = fep->scc.sccp; in napi_clear_event_fs() local
376 W16(sccp, scc_scce, SCC_NAPI_EVENT_MSK); in napi_clear_event_fs()
382 scc_t __iomem *sccp = fep->scc.sccp; in napi_enable_fs() local
384 S16(sccp, scc_sccm, SCC_NAPI_EVENT_MSK); in napi_enable_fs()
390 scc_t __iomem *sccp = fep->scc.sccp; in napi_disable_fs() local
392 C16(sccp, scc_sccm, SCC_NAPI_EVENT_MSK); in napi_disable_fs()
408 scc_t __iomem *sccp = fep->scc.sccp; in get_int_events() local
410 return (u32) R16(sccp, scc_scce); in get_int_events()
416 scc_t __iomem *sccp = fep->scc.sccp; in clear_int_events() local
418 W16(sccp, scc_scce, int_events & 0xffff); in clear_int_events()
435 memcpy_fromio(p, fep->scc.sccp, sizeof(scc_t)); in get_regs()