Home
last modified time | relevance | path

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

/drivers/net/
Djme.c1673 int idx, nr_alloc, mask = jme->tx_ring_mask; in jme_alloc_txdesc() local
1676 nr_alloc = skb_shinfo(skb)->nr_frags + 2; in jme_alloc_txdesc()
1678 if (unlikely(atomic_read(&txring->nr_free) < nr_alloc)) in jme_alloc_txdesc()
1681 atomic_sub(nr_alloc, &txring->nr_free); in jme_alloc_txdesc()
1683 txring->next_to_use = (txring->next_to_use + nr_alloc) & mask; in jme_alloc_txdesc()