• Home
  • Raw
  • Download

Lines Matching refs:hregs

99 	struct hpc3_ethregs *hregs;  member
125 static inline void hpc3_eth_reset(struct hpc3_ethregs *hregs) in hpc3_eth_reset() argument
127 hregs->reset = HPC3_ERST_CRESET | HPC3_ERST_CLRIRQ; in hpc3_eth_reset()
129 hregs->reset = 0; in hpc3_eth_reset()
132 static inline void reset_hpc3_and_seeq(struct hpc3_ethregs *hregs, in reset_hpc3_and_seeq() argument
135 hregs->rx_ctrl = hregs->tx_ctrl = 0; in reset_hpc3_and_seeq()
136 hpc3_eth_reset(hregs); in reset_hpc3_and_seeq()
143 struct hpc3_ethregs *hregs, in seeq_go() argument
147 hregs->rx_ctrl = HPC3_ERXCTRL_ACTIVE; in seeq_go()
250 struct hpc3_ethregs *hregs = gpriv->hregs; in sgiseeq_dump_rings() local
278 hregs->rx_cbptr, hregs->rx_ndptr, hregs->rx_ctrl); in sgiseeq_dump_rings()
280 hregs->tx_cbptr, hregs->tx_ndptr, hregs->tx_ctrl); in sgiseeq_dump_rings()
290 struct hpc3_ethregs *hregs = sp->hregs; in init_seeq() local
293 reset_hpc3_and_seeq(hregs, sregs); in init_seeq()
307 hregs->rx_ndptr = VIRT_TO_DMA(sp, sp->rx_desc); in init_seeq()
308 hregs->tx_ndptr = VIRT_TO_DMA(sp, sp->tx_desc); in init_seeq()
310 seeq_go(sp, hregs, sregs); in init_seeq()
328 struct hpc3_ethregs *hregs, in rx_maybe_restart() argument
331 if (!(hregs->rx_ctrl & HPC3_ERXCTRL_ACTIVE)) { in rx_maybe_restart()
332 hregs->rx_ndptr = VIRT_TO_DMA(sp, sp->rx_desc + sp->rx_new); in rx_maybe_restart()
333 seeq_go(sp, hregs, sregs); in rx_maybe_restart()
338 struct hpc3_ethregs *hregs, in sgiseeq_rx() argument
412 rx_maybe_restart(sp, hregs, sregs); in sgiseeq_rx()
426 struct hpc3_ethregs *hregs) in kick_tx() argument
446 hregs->tx_ndptr = VIRT_TO_DMA(sp, td); in kick_tx()
447 hregs->tx_ctrl = HPC3_ETXCTRL_ACTIVE; in kick_tx()
452 struct hpc3_ethregs *hregs, in sgiseeq_tx() argument
456 unsigned long status = hregs->tx_ctrl; in sgiseeq_tx()
480 hregs->tx_ndptr = VIRT_TO_DMA(sp, td); in sgiseeq_tx()
481 hregs->tx_ctrl = HPC3_ETXCTRL_ACTIVE; in sgiseeq_tx()
501 struct hpc3_ethregs *hregs = sp->hregs; in sgiseeq_interrupt() local
507 hregs->reset = HPC3_ERST_CLRIRQ; in sgiseeq_interrupt()
510 sgiseeq_rx(dev, sp, hregs, sregs); in sgiseeq_interrupt()
514 sgiseeq_tx(dev, sp, hregs, sregs); in sgiseeq_interrupt()
559 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()
765 sp->hregs = &hpcregs->ethregs; in sgiseeq_probe()
770 sp->hregs->pconfig = 0x161; in sgiseeq_probe()
771 sp->hregs->dconfig = HPC3_EDCFG_FIRQ | HPC3_EDCFG_FEOP | in sgiseeq_probe()
775 sp->hregs->pconfig = 0x161; in sgiseeq_probe()
776 sp->hregs->dconfig = HPC3_EDCFG_FIRQ | HPC3_EDCFG_FEOP | in sgiseeq_probe()
780 hpc3_eth_reset(sp->hregs); in sgiseeq_probe()