Lines Matching refs:karg
387 static long copy_arg_from_user(void *karg, void __user *uarg, unsigned int cmd)
390 copy_from_user(karg, uarg, _IOC_SIZE(cmd)))
396 static long copy_arg_to_user(void __user *uarg, void *karg, unsigned int cmd)
399 copy_to_user(uarg, karg, _IOC_SIZE(cmd)))
425 long (*arg_from_user)(void *karg, void __user *uarg, unsigned int cmd);
426 long (*arg_to_user)(void __user *uarg, void *karg, unsigned int cmd);
445 char __karg[256], *karg = __karg;
455 karg = kmalloc(_IOC_SIZE(info->cmd), GFP_KERNEL);
456 if (!karg)
461 ret = info->arg_from_user(karg, arg, cmd);
469 ret = info->fn(dev, karg);
475 ret = info->arg_to_user(arg, karg, cmd);
478 if (karg != __karg)
479 kfree(karg);