Lines Matching refs:hregs

99 	struct hpc3_ethregs *hregs;  member
129 static inline void hpc3_eth_reset(struct hpc3_ethregs *hregs) in hpc3_eth_reset() argument
131 hregs->reset = HPC3_ERST_CRESET | HPC3_ERST_CLRIRQ; in hpc3_eth_reset()
133 hregs->reset = 0; in hpc3_eth_reset()
136 static inline void reset_hpc3_and_seeq(struct hpc3_ethregs *hregs, in reset_hpc3_and_seeq() argument
139 hregs->rx_ctrl = hregs->tx_ctrl = 0; in reset_hpc3_and_seeq()
140 hpc3_eth_reset(hregs); in reset_hpc3_and_seeq()
147 struct hpc3_ethregs *hregs, in seeq_go() argument
151 hregs->rx_ctrl = HPC3_ERXCTRL_ACTIVE; in seeq_go()
254 struct hpc3_ethregs *hregs = gpriv->hregs; in sgiseeq_dump_rings() local
282 hregs->rx_cbptr, hregs->rx_ndptr, hregs->rx_ctrl); in sgiseeq_dump_rings()
284 hregs->tx_cbptr, hregs->tx_ndptr, hregs->tx_ctrl); in sgiseeq_dump_rings()
294 struct hpc3_ethregs *hregs = sp->hregs; in init_seeq() local
297 reset_hpc3_and_seeq(hregs, sregs); in init_seeq()
311 hregs->rx_ndptr = VIRT_TO_DMA(sp, sp->rx_desc); in init_seeq()
312 hregs->tx_ndptr = VIRT_TO_DMA(sp, sp->tx_desc); in init_seeq()
314 seeq_go(sp, hregs, sregs); in init_seeq()
332 struct hpc3_ethregs *hregs, in rx_maybe_restart() argument
335 if (!(hregs->rx_ctrl & HPC3_ERXCTRL_ACTIVE)) { in rx_maybe_restart()
336 hregs->rx_ndptr = VIRT_TO_DMA(sp, sp->rx_desc + sp->rx_new); in rx_maybe_restart()
337 seeq_go(sp, hregs, sregs); in rx_maybe_restart()
342 struct hpc3_ethregs *hregs, in sgiseeq_rx() argument
418 rx_maybe_restart(sp, hregs, sregs); in sgiseeq_rx()
432 struct hpc3_ethregs *hregs) in kick_tx() argument
453 hregs->tx_ndptr = VIRT_TO_DMA(sp, td); in kick_tx()
454 hregs->tx_ctrl = HPC3_ETXCTRL_ACTIVE; in kick_tx()
459 struct hpc3_ethregs *hregs, in sgiseeq_tx() argument
463 unsigned long status = hregs->tx_ctrl; in sgiseeq_tx()
488 hregs->tx_ndptr = VIRT_TO_DMA(sp, td); in sgiseeq_tx()
489 hregs->tx_ctrl = HPC3_ETXCTRL_ACTIVE; in sgiseeq_tx()
509 struct hpc3_ethregs *hregs = sp->hregs; in sgiseeq_interrupt() local
515 hregs->reset = HPC3_ERST_CLRIRQ; in sgiseeq_interrupt()
518 sgiseeq_rx(dev, sp, hregs, sregs); in sgiseeq_interrupt()
522 sgiseeq_tx(dev, sp, hregs, sregs); in sgiseeq_interrupt()
567 reset_hpc3_and_seeq(sp->hregs, sregs); in sgiseeq_close()
594 struct hpc3_ethregs *hregs = sp->hregs; in sgiseeq_start_xmit() local
646 if (!(hregs->tx_ctrl & HPC3_ETXCTRL_ACTIVE)) in sgiseeq_start_xmit()
647 kick_tx(dev, sp, hregs); in sgiseeq_start_xmit()
774 sp->hregs = &hpcregs->ethregs; in sgiseeq_probe()
779 sp->hregs->pconfig = 0x161; in sgiseeq_probe()
780 sp->hregs->dconfig = HPC3_EDCFG_FIRQ | HPC3_EDCFG_FEOP | in sgiseeq_probe()
784 sp->hregs->pconfig = 0x161; in sgiseeq_probe()
785 sp->hregs->dconfig = HPC3_EDCFG_FIRQ | HPC3_EDCFG_FEOP | in sgiseeq_probe()
789 hpc3_eth_reset(sp->hregs); in sgiseeq_probe()