Lines Matching refs:rxq
2614 struct il_rx_queue *rxq = &il->rxq; in il_rx_queue_alloc() local
2618 spin_lock_init(&rxq->lock); in il_rx_queue_alloc()
2619 INIT_LIST_HEAD(&rxq->rx_free); in il_rx_queue_alloc()
2620 INIT_LIST_HEAD(&rxq->rx_used); in il_rx_queue_alloc()
2623 rxq->bd = dma_alloc_coherent(dev, 4 * RX_QUEUE_SIZE, &rxq->bd_dma, in il_rx_queue_alloc()
2625 if (!rxq->bd) in il_rx_queue_alloc()
2628 rxq->rb_stts = dma_alloc_coherent(dev, sizeof(struct il_rb_status), in il_rx_queue_alloc()
2629 &rxq->rb_stts_dma, GFP_KERNEL); in il_rx_queue_alloc()
2630 if (!rxq->rb_stts) in il_rx_queue_alloc()
2635 list_add_tail(&rxq->pool[i].list, &rxq->rx_used); in il_rx_queue_alloc()
2639 rxq->read = rxq->write = 0; in il_rx_queue_alloc()
2640 rxq->write_actual = 0; in il_rx_queue_alloc()
2641 rxq->free_count = 0; in il_rx_queue_alloc()
2642 rxq->need_update = 0; in il_rx_queue_alloc()
2646 dma_free_coherent(&il->pci_dev->dev, 4 * RX_QUEUE_SIZE, rxq->bd, in il_rx_queue_alloc()
2647 rxq->bd_dma); in il_rx_queue_alloc()