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