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 | 48 | 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 | 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 | 136 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PLAYAUDIO_MSF; |
sr_cmd | 137 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 138 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0; |
sr_cmd | 139 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = msf.cdmsf_min0; |
sr_cmd | 140 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = msf.cdmsf_sec0; |
sr_cmd | 141 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = msf.cdmsf_frame0; |
sr_cmd | 142 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = msf.cdmsf_min1; |
sr_cmd | 143 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = msf.cdmsf_sec1; |
sr_cmd | 144 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = msf.cdmsf_frame1; |
sr_cmd | 145 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 147 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 156 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_PLAYAUDIO_TI; |
sr_cmd | 157 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = scsi_CDs[target].device->lun << 5; |
sr_cmd | 158 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0; |
sr_cmd | 159 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0; |
sr_cmd | 160 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = ti.cdti_trk0; |
sr_cmd | 161 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = ti.cdti_ind0; |
sr_cmd | 162 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 163 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = ti.cdti_trk1; |
sr_cmd | 164 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = ti.cdti_ind1; |
sr_cmd | 165 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 167 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 177 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_READ_TOC; |
sr_cmd | 178 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
sr_cmd | 179 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[4] = sr_cmd[5] = 0; |
sr_cmd | 180 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 181 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = 0; /* MSB of length (12) */ |
sr_cmd | 182 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 12; /* LSB of length */ |
sr_cmd | 183 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 188 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 12); |
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) | 0x02; /* MSF format */ |
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] = tocentry.cdte_track; |
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 | 240 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = START_STOP; |
sr_cmd | 241 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
sr_cmd | 242 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[5] = 0; |
sr_cmd | 243 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 0; |
sr_cmd | 245 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 249 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = START_STOP; |
sr_cmd | 250 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1; |
sr_cmd | 251 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[5] = 0; |
sr_cmd | 252 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 1; |
sr_cmd | 254 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, NULL, 255); |
sr_cmd | 261 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = START_STOP; |
sr_cmd | 262 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1; |
sr_cmd | 263 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = sr_cmd[5] = 0; |
sr_cmd | 264 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 0x02; |
sr_cmd | 266 | drivers/scsi/sr_ioctl.c | if (!(result = do_ioctl(target, sr_cmd, NULL, 255))) |
sr_cmd | 281 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = MODE_SENSE; |
sr_cmd | 282 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
sr_cmd | 283 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0xe; /* Want mode page 0xe, CDROM audio params */ |
sr_cmd | 284 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0; |
sr_cmd | 285 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 28; |
sr_cmd | 286 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = 0; |
sr_cmd | 291 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, buffer, 28))) { |
sr_cmd | 297 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = MODE_SENSE; |
sr_cmd | 298 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = (scsi_CDs[target].device -> lun) << 5; |
sr_cmd | 299 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0x4e; /* Want the mask for mode page 0xe */ |
sr_cmd | 300 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0; |
sr_cmd | 301 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 28; |
sr_cmd | 302 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = 0; |
sr_cmd | 310 | drivers/scsi/sr_ioctl.c | if ((result = do_ioctl (target, sr_cmd, mask, 28))) { |
sr_cmd | 324 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = MODE_SELECT; |
sr_cmd | 325 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10; /* Params are SCSI-2 */ |
sr_cmd | 326 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = sr_cmd[3] = 0; |
sr_cmd | 327 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = 28; |
sr_cmd | 328 | drivers/scsi/sr_ioctl.c | sr_cmd[5] = 0; |
sr_cmd | 330 | drivers/scsi/sr_ioctl.c | result = do_ioctl (target, sr_cmd, buffer, 28); |
sr_cmd | 341 | drivers/scsi/sr_ioctl.c | sr_cmd[0] = SCMD_READ_SUBCHANNEL; |
sr_cmd | 342 | drivers/scsi/sr_ioctl.c | sr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02; /* MSF format */ |
sr_cmd | 343 | drivers/scsi/sr_ioctl.c | sr_cmd[2] = 0x40; /* I do want the subchannel info */ |
sr_cmd | 344 | drivers/scsi/sr_ioctl.c | sr_cmd[3] = 0x01; /* Give me current position info */ |
sr_cmd | 345 | drivers/scsi/sr_ioctl.c | sr_cmd[4] = sr_cmd[5] = 0; |
sr_cmd | 346 | drivers/scsi/sr_ioctl.c | sr_cmd[6] = 0; |
sr_cmd | 347 | drivers/scsi/sr_ioctl.c | sr_cmd[7] = 0; |
sr_cmd | 348 | drivers/scsi/sr_ioctl.c | sr_cmd[8] = 16; |
sr_cmd | 349 | drivers/scsi/sr_ioctl.c | sr_cmd[9] = 0; |
sr_cmd | 354 | drivers/scsi/sr_ioctl.c | result = do_ioctl(target, sr_cmd, buffer, 16); |