Lines Matching refs:param_kernel
1931 static int copy_params(struct dm_ioctl __user *user, struct dm_ioctl *param_kernel, in copy_params() argument
1939 if (copy_from_user((char *)param_kernel + sizeof(param_kernel->version), in copy_params()
1940 (char __user *)user + sizeof(param_kernel->version), in copy_params()
1941 minimum_data_size - sizeof(param_kernel->version))) in copy_params()
1944 if (unlikely(param_kernel->data_size < minimum_data_size) || in copy_params()
1945 unlikely(param_kernel->data_size > DM_MAX_TARGETS * DM_MAX_TARGET_PARAMS)) { in copy_params()
1947 param_kernel->data_size); in copy_params()
1951 secure_data = param_kernel->flags & DM_SECURE_DATA_FLAG; in copy_params()
1956 dmi = param_kernel; in copy_params()
1967 dmi = kvmalloc(param_kernel->data_size, GFP_NOIO | __GFP_HIGH); in copy_params()
1970 if (secure_data && clear_user(user, param_kernel->data_size)) in copy_params()
1978 memcpy(dmi, param_kernel, minimum_data_size); in copy_params()
1981 param_kernel->data_size - minimum_data_size)) in copy_params()
1985 if (secure_data && clear_user(user, param_kernel->data_size)) in copy_params()
1992 free_params(dmi, param_kernel->data_size, *param_flags); in copy_params()
2037 struct dm_ioctl param_kernel; in ctl_ioctl() local
2052 r = check_version(cmd, user, ¶m_kernel); in ctl_ioctl()
2071 r = copy_params(user, ¶m_kernel, ioctl_flags, ¶m, ¶m_flags); in ctl_ioctl()