Lines Matching refs:arg
66 static long adf_ctl_ioctl(struct file *fp, unsigned int cmd, unsigned long arg);
130 unsigned long arg) in adf_ctl_alloc_resources() argument
141 if (copy_from_user(cfg_data, (void __user *)arg, sizeof(*cfg_data))) { in adf_ctl_alloc_resources()
225 unsigned long arg) in adf_ctl_ioctl_dev_config() argument
231 ret = adf_ctl_alloc_resources(&ctl_data, arg); in adf_ctl_ioctl_dev_config()
301 unsigned long arg) in adf_ctl_ioctl_dev_stop() argument
306 ret = adf_ctl_alloc_resources(&ctl_data, arg); in adf_ctl_ioctl_dev_stop()
335 unsigned long arg) in adf_ctl_ioctl_dev_start() argument
341 ret = adf_ctl_alloc_resources(&ctl_data, arg); in adf_ctl_ioctl_dev_start()
376 unsigned long arg) in adf_ctl_ioctl_get_num_devices() argument
381 if (copy_to_user((void __user *)arg, &num_devices, sizeof(num_devices))) in adf_ctl_ioctl_get_num_devices()
388 unsigned long arg) in adf_ctl_ioctl_get_status() argument
394 if (copy_from_user(&dev_info, (void __user *)arg, in adf_ctl_ioctl_get_status()
418 if (copy_to_user((void __user *)arg, &dev_info, in adf_ctl_ioctl_get_status()
426 static long adf_ctl_ioctl(struct file *fp, unsigned int cmd, unsigned long arg) in adf_ctl_ioctl() argument
435 ret = adf_ctl_ioctl_dev_config(fp, cmd, arg); in adf_ctl_ioctl()
439 ret = adf_ctl_ioctl_dev_stop(fp, cmd, arg); in adf_ctl_ioctl()
443 ret = adf_ctl_ioctl_dev_start(fp, cmd, arg); in adf_ctl_ioctl()
447 ret = adf_ctl_ioctl_get_num_devices(fp, cmd, arg); in adf_ctl_ioctl()
451 ret = adf_ctl_ioctl_get_status(fp, cmd, arg); in adf_ctl_ioctl()