Lines Matching refs:param_kernel
1841 static int copy_params(struct dm_ioctl __user *user, struct dm_ioctl *param_kernel, in copy_params() argument
1849 if (copy_from_user(param_kernel, user, minimum_data_size)) in copy_params()
1852 if (param_kernel->data_size < minimum_data_size) in copy_params()
1855 secure_data = param_kernel->flags & DM_SECURE_DATA_FLAG; in copy_params()
1860 dmi = param_kernel; in copy_params()
1872 dmi = kvmalloc(param_kernel->data_size, GFP_KERNEL | __GFP_HIGH); in copy_params()
1876 if (secure_data && clear_user(user, param_kernel->data_size)) in copy_params()
1884 memcpy(dmi, param_kernel, minimum_data_size); in copy_params()
1887 param_kernel->data_size - minimum_data_size)) in copy_params()
1891 if (secure_data && clear_user(user, param_kernel->data_size)) in copy_params()
1898 free_params(dmi, param_kernel->data_size, *param_flags); in copy_params()
1943 struct dm_ioctl param_kernel; in ctl_ioctl() local
1977 r = copy_params(user, ¶m_kernel, ioctl_flags, ¶m, ¶m_flags); in ctl_ioctl()