Lines Matching refs:ndesc
88 writel(q->ndesc, &q->regs->ring_size); in mt76_dma_sync_idx()
102 for (i = 0; i < q->ndesc; i++) in mt76_dma_queue_reset()
121 q->ndesc = n_desc; in mt76_dma_alloc_queue()
125 size = q->ndesc * sizeof(struct mt76_desc); in mt76_dma_alloc_queue()
130 size = q->ndesc * sizeof(*q->entry); in mt76_dma_alloc_queue()
159 q->head = (q->head + 1) % q->ndesc; in mt76_dma_add_buf()
314 q->tail = (q->tail + 1) % q->ndesc; in mt76_dma_dequeue()
327 if (q->queued + 1 >= q->ndesc - 1) in mt76_dma_tx_queue_skb_raw()
402 if (q->queued + (tx_info.nbuf + 1) / 2 >= q->ndesc - 1) { in mt76_dma_tx_queue_skb()
457 while (q->queued < q->ndesc - 1) { in mt76_dma_rx_fill()
523 for (i = 0; i < q->ndesc; i++) in mt76_dma_rx_reset()