Lines Matching refs:evtchn_fifo
44 if ( unlikely(port >= d->evtchn_fifo->num_evtchns) ) in evtchn_fifo_word_from_port()
54 d->evtchn_fifo->num_evtchns); in evtchn_fifo_word_from_port()
57 return d->evtchn_fifo->event_array[p] + w; in evtchn_fifo_word_from_port()
180 q = &v->evtchn_fifo->queue[evtchn->priority]; in evtchn_fifo_set_pending()
181 old_q = &old_v->evtchn_fifo->queue[lastq.last_priority]; in evtchn_fifo_set_pending()
198 if ( q == &v->evtchn_fifo->queue[evtchn->priority] && in evtchn_fifo_set_pending()
199 old_q == &old_v->evtchn_fifo->queue[lastq.last_priority] ) in evtchn_fifo_set_pending()
231 if ( unlikely(!v->evtchn_fifo->control_block) ) in evtchn_fifo_set_pending()
295 &v->evtchn_fifo->control_block->ready) ) in evtchn_fifo_set_pending()
459 v->evtchn_fifo = efv; in setup_control_block()
471 if ( v->evtchn_fifo->control_block ) in map_control_block()
481 v->evtchn_fifo->queue[i].head = &control_block->head[i]; in map_control_block()
486 v->evtchn_fifo->control_block = control_block; in map_control_block()
493 if ( !v->evtchn_fifo ) in cleanup_control_block()
496 unmap_guest_page(v->evtchn_fifo->control_block); in cleanup_control_block()
497 xfree(v->evtchn_fifo); in cleanup_control_block()
498 v->evtchn_fifo = NULL; in cleanup_control_block()
506 d->evtchn_fifo = xzalloc(struct evtchn_fifo_domain); in setup_event_array()
507 if ( !d->evtchn_fifo ) in setup_event_array()
517 if ( !d->evtchn_fifo ) in cleanup_event_array()
521 unmap_guest_page(d->evtchn_fifo->event_array[i]); in cleanup_event_array()
522 xfree(d->evtchn_fifo); in cleanup_event_array()
523 d->evtchn_fifo = NULL; in cleanup_event_array()
591 if ( !d->evtchn_fifo ) in evtchn_fifo_init_control()
635 unsigned int port = d->evtchn_fifo->num_evtchns; in add_page_to_event_array()
638 slot = d->evtchn_fifo->num_evtchns / EVTCHN_FIFO_EVENT_WORDS_PER_PAGE; in add_page_to_event_array()
646 d->evtchn_fifo->event_array[slot] = virt; in add_page_to_event_array()
651 d->evtchn_fifo->num_evtchns += EVTCHN_FIFO_EVENT_WORDS_PER_PAGE; in add_page_to_event_array()
657 for ( ; port < d->evtchn_fifo->num_evtchns; port++ ) in add_page_to_event_array()
677 if ( !d->evtchn_fifo ) in evtchn_fifo_expand_array()