tag | line | file | source code |
sr_cmd | 43 | drivers/scsi/sr_ioctl.c | static int do_ioctl(int target, unsigned char * sr_cmd, void * buffer, unsigned buflength) |
sr_cmd | 50 | drivers/scsi/sr_ioctl.c | (void *) sr_cmd, buffer, buflength, sr_ioctl_done, |
sr_cmd | 99 | drivers/scsi/sr_ioctl.c | u_char sr_cmd[10]; |
sr_cmd | 114 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PAUSE_RESUME; |
sr_cmd | 115 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 116 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[4] = 0; |
sr_cmd | 117 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = sr_cmd[6] = sr_cmd[7] = 0; |
sr_cmd | 118 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 0; |
sr_cmd | 119 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 121 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 126 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PAUSE_RESUME; |
sr_cmd | 127 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 128 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[4] = 0; |
sr_cmd | 129 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = sr_cmd[6] = sr_cmd[7] = 0; |
sr_cmd | 130 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 1; |
sr_cmd | 131 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 133 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 146 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PLAYAUDIO_MSF; |
sr_cmd | 147 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 148 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0; |
sr_cmd | 149 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = msf.cdmsf_min0; |
sr_cmd | 150 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = msf.cdmsf_sec0; |
sr_cmd | 151 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = msf.cdmsf_frame0; |
sr_cmd | 152 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = msf.cdmsf_min1; |
sr_cmd | 153 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = msf.cdmsf_sec1; |
sr_cmd | 154 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = msf.cdmsf_frame1; |
sr_cmd | 155 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 157 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 170 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PLAYAUDIO_TI; |
sr_cmd | 171 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 172 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0; |
sr_cmd | 173 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0; |
sr_cmd | 174 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = ti.cdti_trk0; |
sr_cmd | 175 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = ti.cdti_ind0; |
sr_cmd | 176 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 177 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = ti.cdti_trk1; |
sr_cmd | 178 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = ti.cdti_ind1; |
sr_cmd | 179 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 181 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 191 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_READ_TOC; |
sr_cmd | 192 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
sr_cmd | 193 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[4] = sr_cmd[5] = 0; |
sr_cmd | 194 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 195 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = 0; /* MSB of length (12) */ |
sr_cmd | 196 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 12; /* LSB of length */ |
sr_cmd | 197 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 202 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 12); |
sr_cmd | 227 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_READ_TOC; |
sr_cmd | 228 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
sr_cmd | 229 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[4] = sr_cmd[5] = 0; |
sr_cmd | 230 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = tocentry.cdte_track; |
sr_cmd | 231 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = 0; /* MSB of length (12) */ |
sr_cmd | 232 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 12; /* LSB of length */ |
sr_cmd | 233 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 238 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 12); |
sr_cmd | 260 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = START_STOP; |
sr_cmd | 261 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
sr_cmd | 262 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[5] = 0; |
sr_cmd | 263 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 0; |
sr_cmd | 265 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 269 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = START_STOP; |
sr_cmd | 270 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
sr_cmd | 271 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[5] = 0; |
sr_cmd | 272 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 1; |
sr_cmd | 274 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 285 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = START_STOP; |
sr_cmd | 286 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1; |
sr_cmd | 287 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[5] = 0; |
sr_cmd | 288 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 0x02; |
sr_cmd | 290 | drivers/scsi/sr_ioctl.c | if (!(result = do_ioctl(target, sr_cmd, NULL, 255))) |
sr_cmd | 311 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = MODE_SENSE; |
sr_cmd | 312 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
sr_cmd | 313 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0xe; /* Want mode page 0xe, CDROM audio params */ |
sr_cmd | 314 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0; |
sr_cmd | 315 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 28; |
sr_cmd | 316 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = 0; |
sr_cmd | 321 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, buffer, 28))) { |
sr_cmd | 327 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = MODE_SENSE; |
sr_cmd | 328 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
sr_cmd | 329 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0x4e; /* Want the mask for mode page 0xe */ |
sr_cmd | 330 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0; |
sr_cmd | 331 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 28; |
sr_cmd | 332 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = 0; |
sr_cmd | 340 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, mask, 28))) { |
sr_cmd | 355 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = MODE_SELECT; |
sr_cmd | 356 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10; /* Params are SCSI-2 */ |
sr_cmd | 357 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = 0; |
sr_cmd | 358 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 28; |
sr_cmd | 359 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = 0; |
sr_cmd | 361 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 28); |
sr_cmd | 372 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_READ_SUBCHANNEL; |
sr_cmd | 373 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
sr_cmd | 374 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0x40; /* I do want the subchannel info */ |
sr_cmd | 375 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0x01; /* Give me current position info */ |
sr_cmd | 376 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = sr_cmd[5] = 0; |
sr_cmd | 377 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 378 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = 0; |
sr_cmd | 379 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 16; |
sr_cmd | 380 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 385 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 16); |