Lines Matching refs:hregs

98 	struct hpc3_ethregs *hregs;  member
124 static inline void hpc3_eth_reset(struct hpc3_ethregs *hregs) in hpc3_eth_reset() argument
126 hregs->reset = HPC3_ERST_CRESET | HPC3_ERST_CLRIRQ; in hpc3_eth_reset()
128 hregs->reset = 0; in hpc3_eth_reset()
131 static inline void reset_hpc3_and_seeq(struct hpc3_ethregs *hregs, in reset_hpc3_and_seeq() argument
134 hregs->rx_ctrl = hregs->tx_ctrl = 0; in reset_hpc3_and_seeq()
135 hpc3_eth_reset(hregs); in reset_hpc3_and_seeq()
142 struct hpc3_ethregs *hregs, in seeq_go() argument
146 hregs->rx_ctrl = HPC3_ERXCTRL_ACTIVE; in seeq_go()
249 struct hpc3_ethregs *hregs = gpriv->hregs; in sgiseeq_dump_rings() local
277 hregs->rx_cbptr, hregs->rx_ndptr, hregs->rx_ctrl); in sgiseeq_dump_rings()
279 hregs->tx_cbptr, hregs->tx_ndptr, hregs->tx_ctrl); in sgiseeq_dump_rings()
289 struct hpc3_ethregs *hregs = sp->hregs; in init_seeq() local
292 reset_hpc3_and_seeq(hregs, sregs); in init_seeq()
306 hregs->rx_ndptr = VIRT_TO_DMA(sp, sp->rx_desc); in init_seeq()
307 hregs->tx_ndptr = VIRT_TO_DMA(sp, sp->tx_desc); in init_seeq()
309 seeq_go(sp, hregs, sregs); in init_seeq()
327 struct hpc3_ethregs *hregs, in rx_maybe_restart() argument
330 if (!(hregs->rx_ctrl & HPC3_ERXCTRL_ACTIVE)) { in rx_maybe_restart()
331 hregs->rx_ndptr = VIRT_TO_DMA(sp, sp->rx_desc + sp->rx_new); in rx_maybe_restart()
332 seeq_go(sp, hregs, sregs); in rx_maybe_restart()
337 struct hpc3_ethregs *hregs, in sgiseeq_rx() argument
411 rx_maybe_restart(sp, hregs, sregs); in sgiseeq_rx()
425 struct hpc3_ethregs *hregs) in kick_tx() argument
445 hregs->tx_ndptr = VIRT_TO_DMA(sp, td); in kick_tx()
446 hregs->tx_ctrl = HPC3_ETXCTRL_ACTIVE; in kick_tx()
451 struct hpc3_ethregs *hregs, in sgiseeq_tx() argument
455 unsigned long status = hregs->tx_ctrl; in sgiseeq_tx()
479 hregs->tx_ndptr = VIRT_TO_DMA(sp, td); in sgiseeq_tx()
480 hregs->tx_ctrl = HPC3_ETXCTRL_ACTIVE; in sgiseeq_tx()
500 struct hpc3_ethregs *hregs = sp->hregs; in sgiseeq_interrupt() local
506 hregs->reset = HPC3_ERST_CLRIRQ; in sgiseeq_interrupt()
509 sgiseeq_rx(dev, sp, hregs, sregs); in sgiseeq_interrupt()
513 sgiseeq_tx(dev, sp, hregs, sregs); in sgiseeq_interrupt()
558 reset_hpc3_and_seeq(sp->hregs, sregs); in sgiseeq_close()
585 struct hpc3_ethregs *hregs = sp->hregs; in sgiseeq_start_xmit() local
637 if (!(hregs->tx_ctrl & HPC3_ETXCTRL_ACTIVE)) in sgiseeq_start_xmit()
638 kick_tx(dev, sp, hregs); in sgiseeq_start_xmit()
764 sp->hregs = &hpcregs->ethregs; in sgiseeq_probe()
769 sp->hregs->pconfig = 0x161; in sgiseeq_probe()
770 sp->hregs->dconfig = HPC3_EDCFG_FIRQ | HPC3_EDCFG_FEOP | in sgiseeq_probe()
774 sp->hregs->pconfig = 0x161; in sgiseeq_probe()
775 sp->hregs->dconfig = HPC3_EDCFG_FIRQ | HPC3_EDCFG_FEOP | in sgiseeq_probe()
779 hpc3_eth_reset(sp->hregs); in sgiseeq_probe()