Lines Matching refs:control_block
103 struct evtchn_fifo_control_block *control_block) in init_control_block() argument
110 clear_page(control_block); in init_control_block()
114 init_control.control_gfn = virt_to_gfn(control_block); in init_control_block()
274 struct evtchn_fifo_control_block *control_block, in consume_one_event() argument
290 head = control_block->head[priority]; in consume_one_event()
320 struct evtchn_fifo_control_block *control_block; in __evtchn_fifo_handle_events() local
324 control_block = per_cpu(cpu_control_block, cpu); in __evtchn_fifo_handle_events()
326 ready = xchg(&control_block->ready, 0); in __evtchn_fifo_handle_events()
330 consume_one_event(cpu, ctrl, control_block, q, &ready); in __evtchn_fifo_handle_events()
331 ready |= xchg(&control_block->ready, 0); in __evtchn_fifo_handle_events()
346 void *control_block = per_cpu(cpu_control_block, cpu); in evtchn_fifo_resume() local
349 if (!control_block) in evtchn_fifo_resume()
358 free_page((unsigned long)control_block); in evtchn_fifo_resume()
363 ret = init_control_block(cpu, control_block); in evtchn_fifo_resume()
377 void *control_block = NULL; in evtchn_fifo_alloc_control_block() local
380 control_block = (void *)__get_free_page(GFP_KERNEL); in evtchn_fifo_alloc_control_block()
381 if (control_block == NULL) in evtchn_fifo_alloc_control_block()
384 ret = init_control_block(cpu, control_block); in evtchn_fifo_alloc_control_block()
388 per_cpu(cpu_control_block, cpu) = control_block; in evtchn_fifo_alloc_control_block()
393 free_page((unsigned long)control_block); in evtchn_fifo_alloc_control_block()