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()
419 if (copy_to_user((void __user *)arg, &dev_info, in adf_ctl_ioctl_get_status()
427 static long adf_ctl_ioctl(struct file *fp, unsigned int cmd, unsigned long arg) in adf_ctl_ioctl() argument
436 ret = adf_ctl_ioctl_dev_config(fp, cmd, arg); in adf_ctl_ioctl()
440 ret = adf_ctl_ioctl_dev_stop(fp, cmd, arg); in adf_ctl_ioctl()
444 ret = adf_ctl_ioctl_dev_start(fp, cmd, arg); in adf_ctl_ioctl()
448 ret = adf_ctl_ioctl_get_num_devices(fp, cmd, arg); in adf_ctl_ioctl()
452 ret = adf_ctl_ioctl_get_status(fp, cmd, arg); in adf_ctl_ioctl()