• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/net/wireless/bcm43xx/

Lines Matching refs:bcm

148 struct bcm43xx_pioqueue * parse_cookie(struct bcm43xx_private *bcm,
152 struct bcm43xx_pio *pio = bcm43xx_current_pio(bcm);
187 bcm43xx_generate_txhdr(queue->bcm,
259 struct bcm43xx_private *bcm = queue->bcm;
265 spin_lock_irqsave(&bcm->irq_lock, flags);
303 spin_unlock_irqrestore(&bcm->irq_lock, flags);
323 struct bcm43xx_pioqueue * bcm43xx_setup_pioqueue(struct bcm43xx_private *bcm,
334 queue->bcm = bcm;
336 queue->need_workarounds = (bcm->current_core->rev < 3);
344 value = bcm43xx_read32(bcm, BCM43xx_MMIO_STATUS_BITFIELD);
346 bcm43xx_write32(bcm, BCM43xx_MMIO_STATUS_BITFIELD, value);
348 qsize = bcm43xx_read16(bcm, queue->mmio_base + BCM43xx_PIO_TXQBUFSIZE);
378 netif_tx_disable(queue->bcm->net_dev);
396 void bcm43xx_pio_free(struct bcm43xx_private *bcm)
400 if (!bcm43xx_using_pio(bcm))
402 pio = bcm43xx_current_pio(bcm);
414 int bcm43xx_pio_init(struct bcm43xx_private *bcm)
416 struct bcm43xx_pio *pio = bcm43xx_current_pio(bcm);
420 queue = bcm43xx_setup_pioqueue(bcm, BCM43xx_MMIO_PIO1_BASE);
425 queue = bcm43xx_setup_pioqueue(bcm, BCM43xx_MMIO_PIO2_BASE);
430 queue = bcm43xx_setup_pioqueue(bcm, BCM43xx_MMIO_PIO3_BASE);
435 queue = bcm43xx_setup_pioqueue(bcm, BCM43xx_MMIO_PIO4_BASE);
440 if (bcm->current_core->rev < 3)
441 bcm->irq_savedstate |= BCM43xx_IRQ_PIO_WORKAROUND;
460 int bcm43xx_pio_tx(struct bcm43xx_private *bcm,
463 struct bcm43xx_pioqueue *queue = bcm43xx_current_pio(bcm)->queue1;
479 netif_stop_queue(queue->bcm->net_dev);
488 void bcm43xx_pio_handle_xmitstatus(struct bcm43xx_private *bcm,
494 queue = parse_cookie(bcm, status->cookie, &packet);
500 netif_wake_queue(queue->bcm->net_dev);
590 bcm43xx_debugfs_log_txstat(queue->bcm, &stat);
591 bcm43xx_pio_handle_xmitstatus(queue->bcm, &stat);
615 bcm43xx_rx(queue->bcm, skb, rxhdr);
620 bcm43xx_power_saving_ctl_bits(queue->bcm, -1, 1);
631 bcm43xx_power_saving_ctl_bits(queue->bcm, -1, -1);
636 void bcm43xx_pio_freeze_txqueues(struct bcm43xx_private *bcm)
640 assert(bcm43xx_using_pio(bcm));
641 pio = bcm43xx_current_pio(bcm);
648 void bcm43xx_pio_thaw_txqueues(struct bcm43xx_private *bcm)
652 assert(bcm43xx_using_pio(bcm));
653 pio = bcm43xx_current_pio(bcm);