Lines Matching refs:avail_req
119 int avail_req = RING_FREE_REQUESTS(&ved->front_ring); in vm_event_ring_available() local
120 avail_req -= ved->target_producers; in vm_event_ring_available()
121 avail_req -= ved->foreign_producers; in vm_event_ring_available()
123 BUG_ON(avail_req < 0); in vm_event_ring_available()
125 return avail_req; in vm_event_ring_available()
137 unsigned int avail_req = vm_event_ring_available(ved); in vm_event_wake_blocked() local
139 if ( avail_req == 0 || ved->blocked == 0 ) in vm_event_wake_blocked()
155 if ( !(ved->blocked) || avail_req == 0 ) in vm_event_wake_blocked()
161 avail_req--; in vm_event_wake_blocked()
176 unsigned int avail_req = vm_event_ring_available(ved); in vm_event_wake_queued() local
178 if ( avail_req > 0 ) in vm_event_wake_queued()
179 wake_up_nr(&ved->wq, avail_req); in vm_event_wake_queued()
276 unsigned int avail_req; in vm_event_put_request() local
317 avail_req = vm_event_ring_available(ved); in vm_event_put_request()
318 if( curr->domain == d && avail_req < d->max_vcpus && in vm_event_put_request()
460 unsigned int avail_req; in vm_event_grab_slot() local
467 avail_req = vm_event_ring_available(ved); in vm_event_grab_slot()
468 if ( avail_req == 0 ) in vm_event_grab_slot()