Home
last modified time | relevance | path

Searched refs:cgc (Results 1 – 2 of 2) sorted by relevance

/block/
Dscsi_ioctl.c624 struct cdrom_generic_command cgc; in scsi_cmd_ioctl() local
628 if (copy_from_user(&cgc, arg, sizeof(cgc))) in scsi_cmd_ioctl()
630 cgc.timeout = clock_t_to_jiffies(cgc.timeout); in scsi_cmd_ioctl()
633 hdr.cmd_len = sizeof(cgc.cmd); in scsi_cmd_ioctl()
634 hdr.dxfer_len = cgc.buflen; in scsi_cmd_ioctl()
636 switch (cgc.data_direction) { in scsi_cmd_ioctl()
655 hdr.dxferp = cgc.buffer; in scsi_cmd_ioctl()
656 hdr.sbp = cgc.sense; in scsi_cmd_ioctl()
659 hdr.timeout = jiffies_to_msecs(cgc.timeout); in scsi_cmd_ioctl()
661 hdr.cmd_len = sizeof(cgc.cmd); in scsi_cmd_ioctl()
[all …]
Dcompat_ioctl.c150 struct cdrom_generic_command __user *cgc; in compat_cdrom_generic_command() local
156 cgc = compat_alloc_user_space(sizeof(*cgc)); in compat_cdrom_generic_command()
159 if (copy_in_user(&cgc->cmd, &cgc32->cmd, sizeof(cgc->cmd)) || in compat_cdrom_generic_command()
161 put_user(compat_ptr(data), &cgc->buffer) || in compat_cdrom_generic_command()
162 copy_in_user(&cgc->buflen, &cgc32->buflen, in compat_cdrom_generic_command()
165 put_user(compat_ptr(data), &cgc->sense) || in compat_cdrom_generic_command()
167 put_user(dir, &cgc->data_direction) || in compat_cdrom_generic_command()
169 put_user(itmp, &cgc->quiet) || in compat_cdrom_generic_command()
171 put_user(itmp, &cgc->timeout) || in compat_cdrom_generic_command()
173 put_user(compat_ptr(data), &cgc->reserved[0])) in compat_cdrom_generic_command()
[all …]