• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/net/

Lines Matching defs:lp

132 #define TX_BUFFS_AVAIL ((lp->tx_old<=lp->tx_new)?\
133 lp->tx_old+lp->tx_ring_mod_mask-lp->tx_new:\
134 lp->tx_old - lp->tx_new-1)
140 static void load_csrs (struct lance_private *lp)
142 volatile struct lance_regs *ll = lp->ll;
143 volatile struct lance_init_block *aib = lp->lance_init_block;
153 ll->rdp = lp->busmaster_regval;
164 struct lance_private *lp = netdev_priv(dev);
165 volatile struct lance_init_block *ib = lp->init_block;
170 aib = lp->lance_init_block;
174 lp->rx_new = lp->tx_new = 0;
175 lp->rx_old = lp->tx_old = 0;
193 for (i = 0; i <= (1<<lp->lance_log_tx_bufs); i++) {
207 for (i = 0; i < (1<<lp->lance_log_rx_bufs); i++) {
223 ib->rx_len = (lp->lance_log_rx_bufs << 13) | (leptr >> 16);
230 ib->tx_len = (lp->lance_log_tx_bufs << 13) | (leptr >> 16);
240 static int init_restart_lance (struct lance_private *lp)
242 volatile struct lance_regs *ll = lp->ll;
266 struct lance_private *lp = netdev_priv(dev);
267 volatile struct lance_init_block *ib = lp->init_block;
268 volatile struct lance_regs *ll = lp->ll;
276 if (i == lp->rx_new)
287 for (rd = &ib->brx_ring [lp->rx_new];
289 rd = &ib->brx_ring [lp->rx_new]) {
315 lp->rx_new = (lp->rx_new + 1) & lp->rx_ring_mod_mask;
322 (unsigned char *)&(ib->rx_buf [lp->rx_new][0]),
333 lp->rx_new = (lp->rx_new + 1) & lp->rx_ring_mod_mask;
340 struct lance_private *lp = netdev_priv(dev);
341 volatile struct lance_init_block *ib = lp->init_block;
342 volatile struct lance_regs *ll = lp->ll;
351 j = lp->tx_old;
352 for (i = j; i != lp->tx_new; i = j) {
368 if (lp->auto_select) {
369 lp->tpe = 1 - lp->tpe;
372 lp->tpe?"TPE":"AUI");
377 load_csrs (lp);
378 init_restart_lance (lp);
394 load_csrs (lp);
395 init_restart_lance (lp);
415 j = (j + 1) & lp->tx_ring_mod_mask;
417 lp->tx_old = j;
425 struct lance_private *lp;
431 lp = netdev_priv(dev);
432 ll = lp->ll;
478 struct lance_private *lp = netdev_priv(dev);
479 volatile struct lance_regs *ll = lp->ll;
491 load_csrs (lp);
496 return init_restart_lance (lp);
501 struct lance_private *lp = netdev_priv(dev);
502 volatile struct lance_regs *ll = lp->ll;
505 del_timer_sync(&lp->multicast_timer);
517 struct lance_private *lp = netdev_priv(dev);
518 volatile struct lance_regs *ll = lp->ll;
525 load_csrs (lp);
531 status = init_restart_lance (lp);
540 struct lance_private *lp = netdev_priv(dev);
541 volatile struct lance_regs *ll = lp->ll;
552 struct lance_private *lp = netdev_priv(dev);
553 volatile struct lance_regs *ll = lp->ll;
554 volatile struct lance_init_block *ib = lp->init_block;
575 entry = lp->tx_new & lp->tx_ring_mod_mask;
583 lp->tx_new = (lp->tx_new+1) & lp->tx_ring_mod_mask;
601 struct lance_private *lp = netdev_priv(dev);
602 volatile struct lance_init_block *ib = lp->init_block;
634 struct lance_private *lp = netdev_priv(dev);
635 volatile struct lance_init_block *ib = lp->init_block;
636 volatile struct lance_regs *ll = lp->ll;
641 if (lp->tx_old != lp->tx_new) {
642 mod_timer(&lp->multicast_timer, jiffies + 4);
659 load_csrs (lp);
660 init_restart_lance (lp);