Lines Matching refs:arg
214 static void gssp_free_receive_pages(struct gssx_arg_accept_sec_context *arg) in gssp_free_receive_pages() argument
218 for (i = 0; i < arg->npages && arg->pages[i]; i++) in gssp_free_receive_pages()
219 __free_page(arg->pages[i]); in gssp_free_receive_pages()
221 kfree(arg->pages); in gssp_free_receive_pages()
224 static int gssp_alloc_receive_pages(struct gssx_arg_accept_sec_context *arg) in gssp_alloc_receive_pages() argument
226 arg->npages = DIV_ROUND_UP(NGROUPS_MAX * 4, PAGE_SIZE); in gssp_alloc_receive_pages()
227 arg->pages = kzalloc(arg->npages * sizeof(struct page *), GFP_KERNEL); in gssp_alloc_receive_pages()
232 if (!arg->pages) in gssp_alloc_receive_pages()
255 struct gssx_arg_accept_sec_context arg = { in gssp_accept_sec_context_upcall() local
273 .rpc_argp = &arg, in gssp_accept_sec_context_upcall()
281 arg.context_handle = &ctxh; in gssp_accept_sec_context_upcall()
284 ret = gssp_alloc_receive_pages(&arg); in gssp_accept_sec_context_upcall()
292 gssp_free_receive_pages(&arg); in gssp_accept_sec_context_upcall()