• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/net/

Lines Matching refs:hregs

98 	struct hpc3_ethregs *hregs;
124 static inline void hpc3_eth_reset(struct hpc3_ethregs *hregs)
126 hregs->reset = HPC3_ERST_CRESET | HPC3_ERST_CLRIRQ;
128 hregs->reset = 0;
131 static inline void reset_hpc3_and_seeq(struct hpc3_ethregs *hregs,
134 hregs->rx_ctrl = hregs->tx_ctrl = 0;
135 hpc3_eth_reset(hregs);
142 struct hpc3_ethregs *hregs,
146 hregs->rx_ctrl = HPC3_ERXCTRL_ACTIVE;
249 struct hpc3_ethregs *hregs = gpriv->hregs;
277 hregs->rx_cbptr, hregs->rx_ndptr, hregs->rx_ctrl);
279 hregs->tx_cbptr, hregs->tx_ndptr, hregs->tx_ctrl);
289 struct hpc3_ethregs *hregs = sp->hregs;
292 reset_hpc3_and_seeq(hregs, sregs);
306 hregs->rx_ndptr = VIRT_TO_DMA(sp, sp->rx_desc);
307 hregs->tx_ndptr = VIRT_TO_DMA(sp, sp->tx_desc);
309 seeq_go(sp, hregs, sregs);
327 struct hpc3_ethregs *hregs,
330 if (!(hregs->rx_ctrl & HPC3_ERXCTRL_ACTIVE)) {
331 hregs->rx_ndptr = VIRT_TO_DMA(sp, sp->rx_desc + sp->rx_new);
332 seeq_go(sp, hregs, sregs);
337 struct hpc3_ethregs *hregs,
413 rx_maybe_restart(sp, hregs, sregs);
427 struct hpc3_ethregs *hregs)
447 hregs->tx_ndptr = VIRT_TO_DMA(sp, td);
448 hregs->tx_ctrl = HPC3_ETXCTRL_ACTIVE;
453 struct hpc3_ethregs *hregs,
457 unsigned long status = hregs->tx_ctrl;
481 hregs->tx_ndptr = VIRT_TO_DMA(sp, td);
482 hregs->tx_ctrl = HPC3_ETXCTRL_ACTIVE;
502 struct hpc3_ethregs *hregs = sp->hregs;
508 hregs->reset = HPC3_ERST_CLRIRQ;
511 sgiseeq_rx(dev, sp, hregs, sregs);
515 sgiseeq_tx(dev, sp, hregs, sregs);
560 reset_hpc3_and_seeq(sp->hregs, sregs);
586 struct hpc3_ethregs *hregs = sp->hregs;
638 if (!(hregs->tx_ctrl & HPC3_ETXCTRL_ACTIVE))
639 kick_tx(dev, sp, hregs);
763 sp->hregs = &hpcregs->ethregs;
768 sp->hregs->pconfig = 0x161;
769 sp->hregs->dconfig = HPC3_EDCFG_FIRQ | HPC3_EDCFG_FEOP |
773 sp->hregs->pconfig = 0x161;
774 sp->hregs->dconfig = HPC3_EDCFG_FIRQ | HPC3_EDCFG_FEOP |
778 hpc3_eth_reset(sp->hregs);