Lines Matching full:needed
37 * Update the needed ring page slots for the first SKB queued.
45 unsigned int needed = 0; in xenvif_update_needed_slots() local
48 needed = DIV_ROUND_UP(skb->len, XEN_PAGE_SIZE); in xenvif_update_needed_slots()
50 needed++; in xenvif_update_needed_slots()
52 needed++; in xenvif_update_needed_slots()
55 WRITE_ONCE(queue->rx_slots_needed, needed); in xenvif_update_needed_slots()
61 unsigned int needed; in xenvif_rx_ring_slots_available() local
63 needed = READ_ONCE(queue->rx_slots_needed); in xenvif_rx_ring_slots_available()
64 if (!needed) in xenvif_rx_ring_slots_available()
71 if (prod - cons >= needed) in xenvif_rx_ring_slots_available()
522 unsigned int needed = READ_ONCE(queue->rx_slots_needed); in xenvif_rx_queue_stalled() local
525 xenvif_rx_queue_slots(queue) < needed && in xenvif_rx_queue_stalled()
532 unsigned int needed = READ_ONCE(queue->rx_slots_needed); in xenvif_rx_queue_ready() local
534 return queue->stalled && xenvif_rx_queue_slots(queue) >= needed; in xenvif_rx_queue_ready()