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()
174 scc_t __iomem *sccp = fep->scc.sccp; in set_promiscuous_mode() local
176 S16(sccp, scc_psmr, SCC_PSMR_PRO); in set_promiscuous_mode()
209 scc_t __iomem *sccp = fep->scc.sccp; in set_multicast_finish() local
213 C16(sccp, scc_psmr, SCC_PSMR_PRO); in set_multicast_finish()
247 scc_t __iomem *sccp = fep->scc.sccp; in restart() local
254 C32(sccp, scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); in restart()
331 W16(sccp, scc_scce, 0xffff); in restart()
335 W16(sccp, scc_sccm, SCCE_ENET_TXE | SCCE_ENET_RXF | SCCE_ENET_TXB); in restart()
340 W32(sccp, scc_gsmrh, 0); in restart()
341 W32(sccp, scc_gsmrl, in restart()
347 W16(sccp, scc_dsr, 0xd555); in restart()
352 W16(sccp, scc_psmr, SCC_PSMR_ENCRC | SCC_PSMR_NIB22); in restart()
356 S16(sccp, scc_psmr, SCC_PSMR_LPB | SCC_PSMR_FDE); in restart()
361 S32(sccp, scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); in restart()
367 scc_t __iomem *sccp = fep->scc.sccp; in stop() local
370 for (i = 0; (R16(sccp, scc_sccm) == 0) && i < SCC_RESET_DELAY; i++) in stop()
376 W16(sccp, scc_sccm, 0); in stop()
377 C32(sccp, scc_gsmrl, SCC_GSMRL_ENR | SCC_GSMRL_ENT); in stop()
385 scc_t __iomem *sccp = fep->scc.sccp; in napi_clear_rx_event() local
387 W16(sccp, scc_scce, SCC_NAPI_RX_EVENT_MSK); in napi_clear_rx_event()
393 scc_t __iomem *sccp = fep->scc.sccp; in napi_enable_rx() local
395 S16(sccp, scc_sccm, SCC_NAPI_RX_EVENT_MSK); in napi_enable_rx()
401 scc_t __iomem *sccp = fep->scc.sccp; in napi_disable_rx() local
403 C16(sccp, scc_sccm, SCC_NAPI_RX_EVENT_MSK); in napi_disable_rx()
409 scc_t __iomem *sccp = fep->scc.sccp; in napi_clear_tx_event() local
411 W16(sccp, scc_scce, SCC_NAPI_TX_EVENT_MSK); in napi_clear_tx_event()
417 scc_t __iomem *sccp = fep->scc.sccp; in napi_enable_tx() local
419 S16(sccp, scc_sccm, SCC_NAPI_TX_EVENT_MSK); in napi_enable_tx()
425 scc_t __iomem *sccp = fep->scc.sccp; in napi_disable_tx() local
427 C16(sccp, scc_sccm, SCC_NAPI_TX_EVENT_MSK); in napi_disable_tx()
443 scc_t __iomem *sccp = fep->scc.sccp; in get_int_events() local
445 return (u32) R16(sccp, scc_scce); in get_int_events()
451 scc_t __iomem *sccp = fep->scc.sccp; in clear_int_events() local
453 W16(sccp, scc_scce, int_events & 0xffff); in clear_int_events()
470 memcpy_fromio(p, fep->scc.sccp, sizeof(scc_t)); in get_regs()