Lines Matching refs:callback
141 struct gnttab_free_callback *callback, *next; in do_free_callbacks() local
143 callback = gnttab_free_callback_list; in do_free_callbacks()
146 while (callback != NULL) { in do_free_callbacks()
147 next = callback->next; in do_free_callbacks()
148 if (gnttab_free_count >= callback->count) { in do_free_callbacks()
149 callback->next = NULL; in do_free_callbacks()
150 callback->fn(callback->arg); in do_free_callbacks()
152 callback->next = gnttab_free_callback_list; in do_free_callbacks()
153 gnttab_free_callback_list = callback; in do_free_callbacks()
155 callback = next; in do_free_callbacks()
479 gnttab_request_free_callback(struct gnttab_free_callback *callback, in gnttab_request_free_callback() argument
483 if (callback->next) in gnttab_request_free_callback()
485 callback->fn = fn; in gnttab_request_free_callback()
486 callback->arg = arg; in gnttab_request_free_callback()
487 callback->count = count; in gnttab_request_free_callback()
488 callback->next = gnttab_free_callback_list; in gnttab_request_free_callback()
489 gnttab_free_callback_list = callback; in gnttab_request_free_callback()
496 gnttab_cancel_free_callback(struct gnttab_free_callback *callback) in gnttab_cancel_free_callback() argument
502 if (*pcb == callback) { in gnttab_cancel_free_callback()
503 *pcb = callback->next; in gnttab_cancel_free_callback()