Lines Matching defs:arg
65 static long adf_ctl_ioctl(struct file *fp, unsigned int cmd, unsigned long arg);
129 unsigned long arg)
140 if (copy_from_user(cfg_data, (void __user *)arg, sizeof(*cfg_data))) {
219 unsigned long arg)
225 ret = adf_ctl_alloc_resources(&ctl_data, arg);
291 unsigned long arg)
296 ret = adf_ctl_alloc_resources(&ctl_data, arg);
325 unsigned long arg)
331 ret = adf_ctl_alloc_resources(&ctl_data, arg);
360 unsigned long arg)
365 if (copy_to_user((void __user *)arg, &num_devices, sizeof(num_devices)))
372 unsigned long arg)
378 if (copy_from_user(&dev_info, (void __user *)arg,
403 if (copy_to_user((void __user *)arg, &dev_info,
411 static long adf_ctl_ioctl(struct file *fp, unsigned int cmd, unsigned long arg)
420 ret = adf_ctl_ioctl_dev_config(fp, cmd, arg);
424 ret = adf_ctl_ioctl_dev_stop(fp, cmd, arg);
428 ret = adf_ctl_ioctl_dev_start(fp, cmd, arg);
432 ret = adf_ctl_ioctl_get_num_devices(fp, cmd, arg);
436 ret = adf_ctl_ioctl_get_status(fp, cmd, arg);