Lines Matching defs:arg
1644 static int idecd_set_spindown(struct cdrom_device_info *cdi, unsigned long arg)
1651 if (copy_from_user(&spindown, (void __user *)arg, sizeof(char)))
1664 static int idecd_get_spindown(struct cdrom_device_info *cdi, unsigned long arg)
1678 if (copy_to_user((void __user *)arg, &spindown, sizeof(char)))
1684 unsigned int cmd, unsigned long arg)
1691 return idecd_set_spindown(&info->devinfo, arg);
1693 return idecd_get_spindown(&info->devinfo, arg);
1698 err = generic_ide_ioctl(info->drive, bdev, cmd, arg);
1700 err = cdrom_ioctl(&info->devinfo, bdev, mode, cmd, arg);
1706 unsigned int cmd, unsigned long arg)
1711 ret = idecd_locked_ioctl(bdev, mode, cmd, arg);
1718 unsigned int cmd, unsigned long arg)
1721 void __user *argp = compat_ptr(arg);
1733 err = generic_ide_ioctl(info->drive, bdev, cmd, arg);
1742 unsigned int cmd, unsigned long arg)
1747 ret = idecd_locked_compat_ioctl(bdev, mode, cmd, arg);