Lines Matching defs:arg
71 * dev is the SCSI device struct ptr, *(int *) arg is the length of the
73 * *((int *)arg + 1) is the output buffer size in bytes.
75 * *(char *) ((int *) arg)[2] the actual command byte.
166 * The scsi_ioctl_get_pci() function places into arg the value
175 static int scsi_ioctl_get_pci(struct scsi_device *sdev, void __user *arg)
187 return copy_to_user(arg, name, min(strlen(name), (size_t)20))
192 static int scsi_ioctl_common(struct scsi_device *sdev, int cmd, void __user *arg)
222 if (copy_to_user(arg, &v, sizeof(struct scsi_idlun)))
227 return put_user(sdev->host->host_no, (int __user *)arg);
229 return ioctl_probe(sdev->host, arg);
233 return sg_scsi_ioctl(sdev->request_queue, NULL, 0, arg);
256 return scsi_ioctl_get_pci(sdev, arg);
258 return scsi_ioctl_reset(sdev, arg);
267 * @arg: data associated with ioctl
273 int scsi_ioctl(struct scsi_device *sdev, int cmd, void __user *arg)
275 int ret = scsi_ioctl_common(sdev, cmd, arg);
281 return sdev->host->hostt->ioctl(sdev, cmd, arg);
288 int scsi_compat_ioctl(struct scsi_device *sdev, int cmd, void __user *arg)
290 int ret = scsi_ioctl_common(sdev, cmd, arg);
296 return sdev->host->hostt->compat_ioctl(sdev, cmd, arg);