Searched refs:cons_cnt (Results 1 – 3 of 3) sorted by relevance
313 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 …]
54 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()
123 u32 cons_cnt; /* consumer (cleanup) counter */ member158 unsigned int cons_cnt; /* consumer counter */ member