• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/net/

Lines Matching defs:hregs

84 	struct hpc3_ethregs *hregs;
100 static inline void hpc3_eth_reset(struct hpc3_ethregs *hregs)
102 hregs->reset = HPC3_ERST_CRESET | HPC3_ERST_CLRIRQ;
104 hregs->reset = 0;
107 static inline void reset_hpc3_and_seeq(struct hpc3_ethregs *hregs,
110 hregs->rx_ctrl = hregs->tx_ctrl = 0;
111 hpc3_eth_reset(hregs);
118 struct hpc3_ethregs *hregs,
122 hregs->rx_ctrl = HPC3_ERXCTRL_ACTIVE;
205 struct hpc3_ethregs *hregs = gpriv->hregs;
233 hregs->rx_cbptr, hregs->rx_ndptr, hregs->rx_ctrl);
235 hregs->tx_cbptr, hregs->tx_ndptr, hregs->tx_ctrl);
245 struct hpc3_ethregs *hregs = sp->hregs;
248 reset_hpc3_and_seeq(hregs, sregs);
262 hregs->rx_ndptr = CPHYSADDR(sp->rx_desc);
263 hregs->tx_ndptr = CPHYSADDR(sp->tx_desc);
265 seeq_go(sp, hregs, sregs);
284 struct hpc3_ethregs *hregs,
287 if (!(hregs->rx_ctrl & HPC3_ERXCTRL_ACTIVE)) {
288 hregs->rx_ndptr = CPHYSADDR(sp->rx_desc + sp->rx_new);
289 seeq_go(sp, hregs, sregs);
298 struct hpc3_ethregs *hregs,
351 rx_maybe_restart(sp, hregs, sregs);
364 struct hpc3_ethregs *hregs)
376 hregs->tx_ndptr = CPHYSADDR(td);
377 hregs->tx_ctrl = HPC3_ETXCTRL_ACTIVE;
382 struct hpc3_ethregs *hregs,
386 unsigned long status = hregs->tx_ctrl;
409 hregs->tx_ndptr = CPHYSADDR(td);
410 hregs->tx_ctrl = HPC3_ETXCTRL_ACTIVE;
425 struct hpc3_ethregs *hregs = sp->hregs;
431 hregs->reset = HPC3_ERST_CLRIRQ;
434 sgiseeq_rx(dev, sp, hregs, sregs);
438 sgiseeq_tx(dev, sp, hregs, sregs);
483 reset_hpc3_and_seeq(sp->hregs, sregs);
508 struct hpc3_ethregs *hregs = sp->hregs;
549 if (!(hregs->tx_ctrl & HPC3_ETXCTRL_ACTIVE))
550 kick_tx(&sp->tx_desc[sp->tx_old], hregs);
658 sp->hregs = &hpcregs->ethregs;
676 sp->hregs->pconfig = 0x161;
677 sp->hregs->dconfig = HPC3_EDCFG_FIRQ | HPC3_EDCFG_FEOP |
681 sp->hregs->pconfig = 0x161;
682 sp->hregs->dconfig = HPC3_EDCFG_FIRQ | HPC3_EDCFG_FEOP |
686 hpc3_eth_reset(sp->hregs);