tag | line | file | source code |
sr_cmd | 41 | drivers/scsi/sr_ioctl.c | static int do_ioctl(int target, unsigned char * sr_cmd, void * buffer, unsigned buflength) |
sr_cmd | 51 | drivers/scsi/sr_ioctl.c | (void *) sr_cmd, buffer, buflength, sr_ioctl_done, |
sr_cmd | 93 | drivers/scsi/sr_ioctl.c | u_char sr_cmd[10]; |
sr_cmd | 108 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PAUSE_RESUME; |
sr_cmd | 109 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 110 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[4] = 0; |
sr_cmd | 111 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = sr_cmd[6] = sr_cmd[7] = 0; |
sr_cmd | 112 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 0; |
sr_cmd | 113 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 115 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 120 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PAUSE_RESUME; |
sr_cmd | 121 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 122 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[4] = 0; |
sr_cmd | 123 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = sr_cmd[6] = sr_cmd[7] = 0; |
sr_cmd | 124 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 1; |
sr_cmd | 125 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 127 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 140 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PLAYAUDIO_MSF; |
sr_cmd | 141 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 142 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0; |
sr_cmd | 143 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = msf.cdmsf_min0; |
sr_cmd | 144 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = msf.cdmsf_sec0; |
sr_cmd | 145 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = msf.cdmsf_frame0; |
sr_cmd | 146 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = msf.cdmsf_min1; |
sr_cmd | 147 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = msf.cdmsf_sec1; |
sr_cmd | 148 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = msf.cdmsf_frame1; |
sr_cmd | 149 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 151 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 164 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PLAYAUDIO10; |
sr_cmd | 165 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 166 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = blk.from >> 24; |
sr_cmd | 167 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = blk.from >> 16; |
sr_cmd | 168 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = blk.from >> 8; |
sr_cmd | 169 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = blk.from; |
sr_cmd | 170 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 171 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = blk.len >> 8; |
sr_cmd | 172 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = blk.len; |
sr_cmd | 173 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 175 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 188 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PLAYAUDIO_TI; |
sr_cmd | 189 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 190 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0; |
sr_cmd | 191 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0; |
sr_cmd | 192 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = ti.cdti_trk0; |
sr_cmd | 193 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = ti.cdti_ind0; |
sr_cmd | 194 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 195 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = ti.cdti_trk1; |
sr_cmd | 196 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = ti.cdti_ind1; |
sr_cmd | 197 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 199 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 209 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_READ_TOC; |
sr_cmd | 210 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5); |
sr_cmd | 211 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[4] = sr_cmd[5] = 0; |
sr_cmd | 212 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 213 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = 0; /* MSB of length (12) */ |
sr_cmd | 214 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 12; /* LSB of length */ |
sr_cmd | 215 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 220 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 12); |
sr_cmd | 245 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_READ_TOC; |
sr_cmd | 246 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | |
sr_cmd | 248 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[4] = sr_cmd[5] = 0; |
sr_cmd | 249 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = tocentry.cdte_track; |
sr_cmd | 250 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = 0; /* MSB of length (12) */ |
sr_cmd | 251 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 12; /* LSB of length */ |
sr_cmd | 252 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 257 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 12); |
sr_cmd | 282 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = START_STOP; |
sr_cmd | 283 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
sr_cmd | 284 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[5] = 0; |
sr_cmd | 285 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 0; |
sr_cmd | 287 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 291 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = START_STOP; |
sr_cmd | 292 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
sr_cmd | 293 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[5] = 0; |
sr_cmd | 294 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 1; |
sr_cmd | 296 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 300 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = START_STOP; |
sr_cmd | 301 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5); |
sr_cmd | 302 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[5] = 0; |
sr_cmd | 303 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 0x03; |
sr_cmd | 305 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl(target, sr_cmd, NULL, 255))) |
sr_cmd | 326 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = START_STOP; |
sr_cmd | 327 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1; |
sr_cmd | 328 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[5] = 0; |
sr_cmd | 329 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 0x02; |
sr_cmd | 331 | drivers/scsi/sr_ioctl.c | if (!(result = do_ioctl(target, sr_cmd, NULL, 255))) |
sr_cmd | 352 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = MODE_SENSE; |
sr_cmd | 353 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
sr_cmd | 354 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0xe; /* Want mode page 0xe, CDROM audio params */ |
sr_cmd | 355 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0; |
sr_cmd | 356 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 28; |
sr_cmd | 357 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = 0; |
sr_cmd | 362 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, buffer, 28))) { |
sr_cmd | 368 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = MODE_SENSE; |
sr_cmd | 369 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
sr_cmd | 370 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0x4e; /* Want the mask for mode page 0xe */ |
sr_cmd | 371 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0; |
sr_cmd | 372 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 28; |
sr_cmd | 373 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = 0; |
sr_cmd | 381 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, mask, 28))) { |
sr_cmd | 396 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = MODE_SELECT; |
sr_cmd | 397 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10; /* Params are SCSI-2 */ |
sr_cmd | 398 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = 0; |
sr_cmd | 399 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 28; |
sr_cmd | 400 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = 0; |
sr_cmd | 402 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 28); |
sr_cmd | 418 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = MODE_SENSE; |
sr_cmd | 419 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
sr_cmd | 420 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0xe; /* Want mode page 0xe, CDROM audio params */ |
sr_cmd | 421 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0; |
sr_cmd | 422 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 28; |
sr_cmd | 423 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = 0; |
sr_cmd | 428 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, buffer, 28))) { |
sr_cmd | 451 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_READ_SUBCHANNEL; |
sr_cmd | 452 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
sr_cmd | 453 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0x40; /* I do want the subchannel info */ |
sr_cmd | 454 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0x01; /* Give me current position info */ |
sr_cmd | 455 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = sr_cmd[5] = 0; |
sr_cmd | 456 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 457 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = 0; |
sr_cmd | 458 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 16; |
sr_cmd | 459 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 464 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 16); |
sr_cmd | 493 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_READ_SUBCHANNEL; |
sr_cmd | 494 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5); |
sr_cmd | 495 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0x40; /* I do want the subchannel info */ |
sr_cmd | 496 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0x02; /* Give me medium catalog number info */ |
sr_cmd | 497 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = sr_cmd[5] = 0; |
sr_cmd | 498 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 499 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = 0; |
sr_cmd | 500 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 24; |
sr_cmd | 501 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 506 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 24); |