Home
last modified time | relevance | path

Searched refs:cons_cnt (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/fungible/funeth/
Dfuneth_tx.c313 return q->mask - q->prod_cnt + q->cons_cnt; in fun_txq_avail()
431 for (head = txq_hw_head(q), reclaim_idx = q->cons_cnt & q->mask; in fun_txq_reclaim()
454 q->cons_cnt += ndesc; in fun_txq_reclaim()
478 db_val = READ_ONCE(q->irq_db_val) | (q->cons_cnt & q->mask); in fun_txq_napi_poll()
488 for (head = txq_hw_head(q), reclaim_idx = q->cons_cnt & q->mask; in fun_xdpq_clean()
510 q->cons_cnt += ndesc; in fun_xdpq_clean()
603 while (q->cons_cnt != q->prod_cnt) { in fun_txq_purge()
604 unsigned int idx = q->cons_cnt & q->mask; in fun_txq_purge()
606 q->cons_cnt += fun_unmap_pkt(q, idx); in fun_txq_purge()
614 while (q->cons_cnt != q->prod_cnt) { in fun_xdpq_purge()
[all …]
Dfuneth_rx.c54 if (c->prod_cnt - c->cons_cnt <= c->mask && buf->node == numa_mem_id()) { in cache_offer()
72 if (c->prod_cnt == c->cons_cnt) in cache_get()
75 buf = &c->bufs[c->cons_cnt & c->mask]; in cache_get()
82 c->cons_cnt++; in cache_get()
87 if (c->prod_cnt - c->cons_cnt > c->mask) { in cache_get()
92 c->cons_cnt++; in cache_get()
Dfuneth_txrx.h123 u32 cons_cnt; /* consumer (cleanup) counter */ member
158 unsigned int cons_cnt; /* consumer counter */ member