Lines Matching refs:hregs

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