Lines Matching defs:rxq
74 * + A list of pre-allocated SKBs is stored in iwl->rxq->rx_free. When
75 * iwl->rxq->free_count drops to or below RX_LOW_WATERMARK, work is scheduled
76 * to replenish the iwl->rxq->rx_free.
78 * iwl->rxq is replenished and the READ INDEX is updated (updating the
81 * detached from the iwl->rxq. The driver 'processed' index is updated.
82 * + The Host/Firmware iwl->rxq is replenished at tasklet time from the rx_free
83 * list. If there are no allocated buffers in iwl->rxq->rx_free, the READ
169 struct iwl_rx_queue *rxq = &priv->rxq;
173 spin_lock_init(&rxq->lock);
174 INIT_LIST_HEAD(&rxq->rx_free);
175 INIT_LIST_HEAD(&rxq->rx_used);
178 rxq->bd = dma_alloc_coherent(dev, 4 * RX_QUEUE_SIZE, &rxq->bd_dma,
180 if (!rxq->bd)
183 rxq->rb_stts = dma_alloc_coherent(dev, sizeof(struct iwl_rb_status),
184 &rxq->rb_stts_dma, GFP_KERNEL);
185 if (!rxq->rb_stts)
190 list_add_tail(&rxq->pool[i].list, &rxq->rx_used);
194 rxq->read = rxq->write = 0;
195 rxq->write_actual = 0;
196 rxq->free_count = 0;
197 rxq->need_update = 0;
201 dma_free_coherent(&priv->pci_dev->dev, 4 * RX_QUEUE_SIZE, rxq->bd,
202 rxq->bd_dma);