Lines Matching refs:arg
202 static void gssp_free_receive_pages(struct gssx_arg_accept_sec_context *arg) in gssp_free_receive_pages() argument
206 for (i = 0; i < arg->npages && arg->pages[i]; i++) in gssp_free_receive_pages()
207 __free_page(arg->pages[i]); in gssp_free_receive_pages()
209 kfree(arg->pages); in gssp_free_receive_pages()
212 static int gssp_alloc_receive_pages(struct gssx_arg_accept_sec_context *arg) in gssp_alloc_receive_pages() argument
216 arg->npages = DIV_ROUND_UP(NGROUPS_MAX * 4, PAGE_SIZE); in gssp_alloc_receive_pages()
217 arg->pages = kcalloc(arg->npages, sizeof(struct page *), GFP_KERNEL); in gssp_alloc_receive_pages()
218 if (!arg->pages) in gssp_alloc_receive_pages()
220 for (i = 0; i < arg->npages; i++) { in gssp_alloc_receive_pages()
221 arg->pages[i] = alloc_page(GFP_KERNEL); in gssp_alloc_receive_pages()
222 if (!arg->pages[i]) { in gssp_alloc_receive_pages()
223 gssp_free_receive_pages(arg); in gssp_alloc_receive_pages()
277 struct gssx_arg_accept_sec_context arg = { in gssp_accept_sec_context_upcall() local
296 .rpc_argp = &arg, in gssp_accept_sec_context_upcall()
305 arg.context_handle = &ctxh; in gssp_accept_sec_context_upcall()
308 ret = gssp_alloc_receive_pages(&arg); in gssp_accept_sec_context_upcall()
314 gssp_free_receive_pages(&arg); in gssp_accept_sec_context_upcall()