Lines Matching refs:ndesc
349 unsigned int ndesc; in fun_start_xmit() local
358 ndesc = write_pkt_desc(skb, q, tls_len); in fun_start_xmit()
359 if (unlikely(!ndesc)) { in fun_start_xmit()
364 q->prod_cnt += ndesc; in fun_start_xmit()
426 unsigned int npkts = 0, nbytes = 0, ndesc = 0; in fun_txq_reclaim() local
449 ndesc += pkt_desc; in fun_txq_reclaim()
455 q->cons_cnt += ndesc; in fun_txq_reclaim()
487 unsigned int npkts = 0, ndesc = 0, head, reclaim_idx; in fun_xdpq_clean() local
506 ndesc += pkt_desc; in fun_xdpq_clean()
511 q->cons_cnt += ndesc; in fun_xdpq_clean()
517 unsigned int idx, nfrags = 1, ndesc = 1, tot_len = xdpf->len; in fun_xdp_tx() local
530 ndesc = DIV_ROUND_UP((sizeof(*req) + nfrags * in fun_xdp_tx()
535 if (unlikely(fun_txq_avail(q) < ndesc)) { in fun_xdp_tx()
567 q->prod_cnt += ndesc; in fun_xdp_tx()
626 unsigned int ndesc, in fun_txq_create_sw() argument
643 q->desc = fun_alloc_ring_mem(q->dma_dev, ndesc, FUNETH_SQE_SIZE, in fun_txq_create_sw()
651 q->mask = ndesc - 1; in fun_txq_create_sw()
684 unsigned int irq_idx, ndesc = q->mask + 1; in fun_txq_create_dev() local
696 FUN_HCI_ID_INVALID, ilog2(FUNETH_SQE_SIZE), ndesc, in fun_txq_create_dev()
719 irq ? "Tx" : "XDP", q->qidx, ndesc, q->hw_qid, irq_idx, in fun_txq_create_dev()
761 unsigned int ndesc, struct fun_irq *irq, int state, in funeth_txq_create() argument
768 q = fun_txq_create_sw(dev, qidx, ndesc, irq); in funeth_txq_create()