Lines Matching refs:karg
367 static long copy_arg_from_user(void *karg, void __user *uarg, unsigned int cmd) in copy_arg_from_user() argument
370 if (copy_from_user(karg, uarg, _IOC_SIZE(cmd))) in copy_arg_from_user()
376 static long copy_arg_to_user(void __user *uarg, void *karg, unsigned int cmd) in copy_arg_to_user() argument
379 if (copy_to_user(uarg, karg, _IOC_SIZE(cmd))) in copy_arg_to_user()
405 long (*arg_from_user)(void *karg, void __user *uarg, unsigned int cmd);
406 long (*arg_to_user)(void __user *uarg, void *karg, unsigned int cmd);
424 char __karg[256], *karg = __karg; in media_device_ioctl() local
434 karg = kmalloc(_IOC_SIZE(info->cmd), GFP_KERNEL); in media_device_ioctl()
435 if (!karg) in media_device_ioctl()
440 ret = info->arg_from_user(karg, arg, cmd); in media_device_ioctl()
448 ret = info->fn(dev, karg); in media_device_ioctl()
454 ret = info->arg_to_user(arg, karg, cmd); in media_device_ioctl()
457 if (karg != __karg) in media_device_ioctl()
458 kfree(karg); in media_device_ioctl()