Home
last modified time | relevance | path

Searched refs:add_arg (Results 1 – 2 of 2) sorted by relevance

/arch/x86/kernel/cpu/sgx/
Dioctl.c439 struct sgx_enclave_add_pages add_arg; in sgx_ioc_enclave_add_pages() local
448 if (copy_from_user(&add_arg, arg, sizeof(add_arg))) in sgx_ioc_enclave_add_pages()
451 if (!IS_ALIGNED(add_arg.src, PAGE_SIZE)) in sgx_ioc_enclave_add_pages()
454 if (sgx_validate_offset_length(encl, add_arg.offset, add_arg.length)) in sgx_ioc_enclave_add_pages()
457 if (copy_from_user(&secinfo, (void __user *)add_arg.secinfo, in sgx_ioc_enclave_add_pages()
464 for (c = 0 ; c < add_arg.length; c += PAGE_SIZE) { in sgx_ioc_enclave_add_pages()
475 ret = sgx_encl_add_page(encl, add_arg.src + c, add_arg.offset + c, in sgx_ioc_enclave_add_pages()
476 &secinfo, add_arg.flags); in sgx_ioc_enclave_add_pages()
481 add_arg.count = c; in sgx_ioc_enclave_add_pages()
483 if (copy_to_user(arg, &add_arg, sizeof(add_arg))) in sgx_ioc_enclave_add_pages()
/arch/um/kernel/
Dum_arch.c40 static void __init add_arg(char *arg) in add_arg() function
319 add_arg(argv[i]); in linux_main()
322 add_arg(DEFAULT_COMMAND_LINE_ROOT); in linux_main()
325 add_arg(DEFAULT_COMMAND_LINE_CONSOLE); in linux_main()