tag | line | file | source code |
sr_cmd | 39 | drivers/scsi/sr_ioctl.c | static int do_ioctl(int target, unsigned char * sr_cmd, void * buffer, unsigned buflength) |
sr_cmd | 46 | drivers/scsi/sr_ioctl.c | (void *) sr_cmd, buffer, buflength, sr_ioctl_done, |
sr_cmd | 95 | drivers/scsi/sr_ioctl.c | u_char sr_cmd[10]; |
sr_cmd | 110 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PAUSE_RESUME; |
sr_cmd | 111 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 112 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[4] = 0; |
sr_cmd | 113 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = sr_cmd[6] = sr_cmd[7] = 0; |
sr_cmd | 114 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 0; |
sr_cmd | 115 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 117 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 122 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PAUSE_RESUME; |
sr_cmd | 123 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 124 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[4] = 0; |
sr_cmd | 125 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = sr_cmd[6] = sr_cmd[7] = 0; |
sr_cmd | 126 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 1; |
sr_cmd | 127 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 129 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 138 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PLAYAUDIO_MSF; |
sr_cmd | 139 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 140 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0; |
sr_cmd | 141 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = msf.cdmsf_min0; |
sr_cmd | 142 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = msf.cdmsf_sec0; |
sr_cmd | 143 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = msf.cdmsf_frame0; |
sr_cmd | 144 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = msf.cdmsf_min1; |
sr_cmd | 145 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = msf.cdmsf_sec1; |
sr_cmd | 146 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = msf.cdmsf_frame1; |
sr_cmd | 147 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 149 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 158 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PLAYAUDIO_TI; |
sr_cmd | 159 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 160 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0; |
sr_cmd | 161 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0; |
sr_cmd | 162 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = ti.cdti_trk0; |
sr_cmd | 163 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = ti.cdti_ind0; |
sr_cmd | 164 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 165 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = ti.cdti_trk1; |
sr_cmd | 166 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = ti.cdti_ind1; |
sr_cmd | 167 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 169 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 179 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_READ_TOC; |
sr_cmd | 180 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
sr_cmd | 181 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[4] = sr_cmd[5] = 0; |
sr_cmd | 182 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 183 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = 0; /* MSB of length (12) */ |
sr_cmd | 184 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 12; /* LSB of length */ |
sr_cmd | 185 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 190 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 12); |
sr_cmd | 213 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_READ_TOC; |
sr_cmd | 214 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
sr_cmd | 215 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[4] = sr_cmd[5] = 0; |
sr_cmd | 216 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = tocentry.cdte_track; |
sr_cmd | 217 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = 0; /* MSB of length (12) */ |
sr_cmd | 218 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 12; /* LSB of length */ |
sr_cmd | 219 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 224 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 12); |
sr_cmd | 246 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = START_STOP; |
sr_cmd | 247 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
sr_cmd | 248 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[5] = 0; |
sr_cmd | 249 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 0; |
sr_cmd | 251 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 255 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = START_STOP; |
sr_cmd | 256 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
sr_cmd | 257 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[5] = 0; |
sr_cmd | 258 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 1; |
sr_cmd | 260 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 267 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = START_STOP; |
sr_cmd | 268 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1; |
sr_cmd | 269 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[5] = 0; |
sr_cmd | 270 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 0x02; |
sr_cmd | 272 | drivers/scsi/sr_ioctl.c | if (!(result = do_ioctl(target, sr_cmd, NULL, 255))) |
sr_cmd | 287 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = MODE_SENSE; |
sr_cmd | 288 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
sr_cmd | 289 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0xe; /* Want mode page 0xe, CDROM audio params */ |
sr_cmd | 290 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0; |
sr_cmd | 291 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 28; |
sr_cmd | 292 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = 0; |
sr_cmd | 297 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, buffer, 28))) { |
sr_cmd | 303 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = MODE_SENSE; |
sr_cmd | 304 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
sr_cmd | 305 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0x4e; /* Want the mask for mode page 0xe */ |
sr_cmd | 306 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0; |
sr_cmd | 307 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 28; |
sr_cmd | 308 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = 0; |
sr_cmd | 316 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, mask, 28))) { |
sr_cmd | 331 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = MODE_SELECT; |
sr_cmd | 332 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10; /* Params are SCSI-2 */ |
sr_cmd | 333 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = 0; |
sr_cmd | 334 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 28; |
sr_cmd | 335 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = 0; |
sr_cmd | 337 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 28); |
sr_cmd | 348 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_READ_SUBCHANNEL; |
sr_cmd | 349 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
sr_cmd | 350 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0x40; /* I do want the subchannel info */ |
sr_cmd | 351 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0x01; /* Give me current position info */ |
sr_cmd | 352 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = sr_cmd[5] = 0; |
sr_cmd | 353 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 354 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = 0; |
sr_cmd | 355 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 16; |
sr_cmd | 356 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 361 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 16); |