Lines Matching refs:cgc
624 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()
670 cgc.stat = err; in scsi_cmd_ioctl()
671 cgc.buflen = hdr.resid; in scsi_cmd_ioctl()
672 if (copy_to_user(arg, &cgc, sizeof(cgc))) in scsi_cmd_ioctl()