Lines Matching refs:ndesc
349 unsigned int ndesc; in fun_start_xmit() local
357 ndesc = write_pkt_desc(skb, q, tls_len); in fun_start_xmit()
358 if (unlikely(!ndesc)) { in fun_start_xmit()
363 q->prod_cnt += ndesc; in fun_start_xmit()
425 unsigned int npkts = 0, nbytes = 0, ndesc = 0; in fun_txq_reclaim() local
448 ndesc += pkt_desc; in fun_txq_reclaim()
454 q->cons_cnt += ndesc; in fun_txq_reclaim()
486 unsigned int npkts = 0, ndesc = 0, head, reclaim_idx; in fun_xdpq_clean() local
505 ndesc += pkt_desc; in fun_xdpq_clean()
510 q->cons_cnt += ndesc; in fun_xdpq_clean()
516 unsigned int idx, nfrags = 1, ndesc = 1, tot_len = xdpf->len; in fun_xdp_tx() local
529 ndesc = DIV_ROUND_UP((sizeof(*req) + nfrags * in fun_xdp_tx()
534 if (unlikely(fun_txq_avail(q) < ndesc)) { in fun_xdp_tx()
566 q->prod_cnt += ndesc; in fun_xdp_tx()
625 unsigned int ndesc, in fun_txq_create_sw() argument
642 q->desc = fun_alloc_ring_mem(q->dma_dev, ndesc, FUNETH_SQE_SIZE, in fun_txq_create_sw()
650 q->mask = ndesc - 1; in fun_txq_create_sw()
683 unsigned int irq_idx, ndesc = q->mask + 1; in fun_txq_create_dev() local
695 FUN_HCI_ID_INVALID, ilog2(FUNETH_SQE_SIZE), ndesc, in fun_txq_create_dev()
718 irq ? "Tx" : "XDP", q->qidx, ndesc, q->hw_qid, irq_idx, in fun_txq_create_dev()
760 unsigned int ndesc, struct fun_irq *irq, int state, in funeth_txq_create() argument
767 q = fun_txq_create_sw(dev, qidx, ndesc, irq); in funeth_txq_create()