Lines Matching refs:port
23 unsigned int port) in evtchn_fifo_word_from_port() argument
27 if ( unlikely(port >= d->evtchn_fifo->num_evtchns) ) in evtchn_fifo_word_from_port()
36 p = port / EVTCHN_FIFO_EVENT_WORDS_PER_PAGE; in evtchn_fifo_word_from_port()
37 w = port % EVTCHN_FIFO_EVENT_WORDS_PER_PAGE; in evtchn_fifo_word_from_port()
52 word = evtchn_fifo_word_from_port(d, evtchn->port); in evtchn_fifo_init()
55 d->domain_id, evtchn->port); in evtchn_fifo_init()
84 d->domain_id, evtchn->port); in lock_old_queue()
155 unsigned int port; in evtchn_fifo_set_pending() local
160 port = evtchn->port; in evtchn_fifo_set_pending()
161 word = evtchn_fifo_word_from_port(d, port); in evtchn_fifo_set_pending()
219 if ( old_q->tail == port ) in evtchn_fifo_set_pending()
245 linked = evtchn_fifo_set_link(d, tail_word, port); in evtchn_fifo_set_pending()
248 write_atomic(q->head, port); in evtchn_fifo_set_pending()
249 q->tail = port; in evtchn_fifo_set_pending()
260 evtchn_check_pollers(d, port); in evtchn_fifo_set_pending()
267 word = evtchn_fifo_word_from_port(d, evtchn->port); in evtchn_fifo_clear_pending()
285 word = evtchn_fifo_word_from_port(d, evtchn->port); in evtchn_fifo_unmask()
296 static bool evtchn_fifo_is_pending(const struct domain *d, evtchn_port_t port) in evtchn_fifo_is_pending() argument
298 const event_word_t *word = evtchn_fifo_word_from_port(d, port); in evtchn_fifo_is_pending()
303 static bool_t evtchn_fifo_is_masked(const struct domain *d, evtchn_port_t port) in evtchn_fifo_is_masked() argument
305 const event_word_t *word = evtchn_fifo_word_from_port(d, port); in evtchn_fifo_is_masked()
310 static bool_t evtchn_fifo_is_busy(const struct domain *d, evtchn_port_t port) in evtchn_fifo_is_busy() argument
312 const event_word_t *word = evtchn_fifo_word_from_port(d, port); in evtchn_fifo_is_busy()
338 word = evtchn_fifo_word_from_port(d, evtchn->port); in evtchn_fifo_print_state()
480 unsigned int port; in setup_ports() local
488 for ( port = 1; port < d->max_evtchns; port++ ) in setup_ports()
492 if ( !port_is_valid(d, port) ) in setup_ports()
495 evtchn = evtchn_from_port(d, port); in setup_ports()
497 if ( test_bit(port, &shared_info(d, evtchn_pending)) ) in setup_ports()
576 unsigned int port = d->evtchn_fifo->num_evtchns; in add_page_to_event_array() local
598 for ( ; port < d->evtchn_fifo->num_evtchns; port++ ) in add_page_to_event_array()
602 if ( !port_is_valid(d, port) ) in add_page_to_event_array()
605 evtchn = evtchn_from_port(d, port); in add_page_to_event_array()