taglinefilesource code
scsi_CDs55drivers/scsi/sr.cScsi_CD * scsi_CDs = NULL;
scsi_CDs72drivers/scsi/sr.cif(! --scsi_CDs[MINOR(inode->i_rdev)].device->access_count)
scsi_CDs75drivers/scsi/sr.cif (scsi_CDs[MINOR(inode->i_rdev)].auto_eject)
scsi_CDs78drivers/scsi/sr.cif (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)
scsi_CDs79drivers/scsi/sr.c(*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)--;
scsi_CDs130drivers/scsi/sr.cscsi_CDs[target].device->changed = 1;
scsi_CDs135drivers/scsi/sr.cretval = scsi_CDs[target].device->changed;
scsi_CDs137drivers/scsi/sr.cscsi_CDs[target].device->changed = 0;
scsi_CDs140drivers/scsi/sr.cif (retval) scsi_CDs[target].needs_sector_size = 1;
scsi_CDs245drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].device->changed = 1;
scsi_CDs257drivers/scsi/sr.cif (scsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].ten) {
scsi_CDs258drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].ten = 0;
scsi_CDs281drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].device->host->host_no, 
scsi_CDs282drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].device->id,
scsi_CDs283drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].device->lun,
scsi_CDs328drivers/scsi/sr.cif (scsi_CDs[MINOR(inode->i_rdev)].xa_flags & 0x02) {
scsi_CDs342drivers/scsi/sr.cif (1 == scsi_CDs[MINOR(inode->i_rdev)].device->access_count) {
scsi_CDs343drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].mpcd_sector = 0;
scsi_CDs344drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].xa_flags &= ~0x01;
scsi_CDs354drivers/scsi/sr.cswitch(scsi_CDs[MINOR(inode->i_rdev)].device->manufacturer) {
scsi_CDs366drivers/scsi/sr.crc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs402drivers/scsi/sr.crc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs410drivers/scsi/sr.cif (!kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs438drivers/scsi/sr.crc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs463drivers/scsi/sr.crc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs470drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].needs_sector_size = 1;
scsi_CDs485drivers/scsi/sr.crc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs513drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].mpcd_sector = sector;
scsi_CDs515drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].xa_flags |= 0x01;
scsi_CDs517drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].xa_flags &= ~0x01;
scsi_CDs519drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].xa_flags |= 0x02;
scsi_CDs526drivers/scsi/sr.c!scsi_CDs[MINOR(inode->i_rdev)].device) return -ENXIO;   /* No such device */
scsi_CDs533drivers/scsi/sr.cif(!scsi_CDs[MINOR(inode->i_rdev)].device->access_count++)
scsi_CDs535drivers/scsi/sr.cif (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)
scsi_CDs536drivers/scsi/sr.c(*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)++;
scsi_CDs546drivers/scsi/sr.cif(scsi_CDs[MINOR(inode->i_rdev)].needs_sector_size)
scsi_CDs577drivers/scsi/sr.cSDev = scsi_CDs[DEVICE_NR(CURRENT->rq_dev)].device;
scsi_CDs601drivers/scsi/sr.cscsi_CDs[DEVICE_NR(CURRENT->rq_dev)].device, 0); 
scsi_CDs620drivers/scsi/sr.cscsi_CDs[DEVICE_NR(req->rq_dev)].device);
scsi_CDs670drivers/scsi/sr.cif (!scsi_CDs[dev].use) {
scsi_CDs677drivers/scsi/sr.cif (scsi_CDs[dev].device->changed) {
scsi_CDs731drivers/scsi/sr.cthis_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4;
scsi_CDs859drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 2048)
scsi_CDs866drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2;
scsi_CDs868drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
scsi_CDs873drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
scsi_CDs890drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
scsi_CDs921drivers/scsi/sr.cSCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ?
scsi_CDs922drivers/scsi/sr.c1024 : scsi_CDs[dev].sector_size;
scsi_CDs926drivers/scsi/sr.crealcount * scsi_CDs[dev].sector_size, 
scsi_CDs953drivers/scsi/sr.cfor(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) 
scsi_CDs959drivers/scsi/sr.cscsi_CDs[i].device = SDp;
scsi_CDs986drivers/scsi/sr.cSCpnt = allocate_device(NULL, scsi_CDs[i].device, 1);
scsi_CDs991drivers/scsi/sr.ccmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0;
scsi_CDs1019drivers/scsi/sr.cscsi_CDs[i].capacity = 0x1fffff;
scsi_CDs1020drivers/scsi/sr.cscsi_CDs[i].sector_size = 2048;  /* A guess, just in case */
scsi_CDs1021drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
scsi_CDs1023drivers/scsi/sr.cscsi_CDs[i].capacity = 1 + ((buffer[0] << 24) |
scsi_CDs1027drivers/scsi/sr.cscsi_CDs[i].sector_size = (buffer[4] << 24) |
scsi_CDs1029drivers/scsi/sr.cswitch (scsi_CDs[i].sector_size) {
scsi_CDs1037drivers/scsi/sr.cscsi_CDs[i].sector_size = 2048;
scsi_CDs1040drivers/scsi/sr.cscsi_CDs[i].capacity *= 4;
scsi_CDs1046drivers/scsi/sr.ci, scsi_CDs[i].sector_size);
scsi_CDs1047drivers/scsi/sr.cscsi_CDs[i].capacity = 0;
scsi_CDs1048drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
scsi_CDs1050drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 0;
scsi_CDs1051drivers/scsi/sr.csr_sizes[i] = scsi_CDs[i].capacity >> (BLOCK_SIZE_BITS - 9);
scsi_CDs1073drivers/scsi/sr.cif (scsi_CDs) return 0;
scsi_CDs1075drivers/scsi/sr.cscsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD), GFP_ATOMIC);
scsi_CDs1076drivers/scsi/sr.cmemset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD));
scsi_CDs1099drivers/scsi/sr.cif (scsi_CDs[i].capacity) continue;
scsi_CDs1100drivers/scsi/sr.cscsi_CDs[i].capacity = 0x1fffff;
scsi_CDs1101drivers/scsi/sr.cscsi_CDs[i].sector_size = 2048;  /* A guess, just in case */
scsi_CDs1102drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
scsi_CDs1106drivers/scsi/sr.cprintk("Scd sectorsize = %d bytes.\n", scsi_CDs[i].sector_size);
scsi_CDs1108drivers/scsi/sr.cscsi_CDs[i].use = 1;
scsi_CDs1109drivers/scsi/sr.cscsi_CDs[i].ten = 1;
scsi_CDs1110drivers/scsi/sr.cscsi_CDs[i].remap = 1;
scsi_CDs1111drivers/scsi/sr.cscsi_CDs[i].auto_eject = 0; /* Default is not to eject upon unmount. */
scsi_CDs1112drivers/scsi/sr.csr_sizes[i] = scsi_CDs[i].capacity >> (BLOCK_SIZE_BITS - 9);
scsi_CDs1119drivers/scsi/sr.cif(scsi_CDs[0].device && scsi_CDs[0].device->host->sg_tablesize)
scsi_CDs1132drivers/scsi/sr.cfor(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) 
scsi_CDs1171drivers/scsi/sr.cif(scsi_CDs != NULL) {
scsi_CDs1172drivers/scsi/sr.cscsi_init_free((char *) scsi_CDs,
scsi_CDs38drivers/scsi/sr.hextern Scsi_CD * scsi_CDs;
scsi_CDs46drivers/scsi/sr_ioctl.cSCpnt = allocate_device(NULL, scsi_CDs[target].device, 1);
scsi_CDs62drivers/scsi/sr_ioctl.cscsi_CDs[target].device->changed = 1;
scsi_CDs73drivers/scsi/sr_ioctl.cscsi_CDs[target].device->host->host_no, 
scsi_CDs74drivers/scsi/sr_ioctl.cscsi_CDs[target].device->id,
scsi_CDs75drivers/scsi/sr_ioctl.cscsi_CDs[target].device->lun,
scsi_CDs101drivers/scsi/sr_ioctl.c!scsi_CDs[target].device) return -ENXIO;
scsi_CDs109drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs121drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs141drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs165drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs189drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs210drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5);
scsi_CDs246drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) |
scsi_CDs283drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1;
scsi_CDs292drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1;
scsi_CDs301drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5);
scsi_CDs313drivers/scsi/sr_ioctl.cif (scsi_CDs[MINOR(inode->i_rdev)].needs_sector_size)
scsi_CDs322drivers/scsi/sr_ioctl.cif (scsi_CDs[target].device -> access_count > 1)
scsi_CDs327drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1;
scsi_CDs332drivers/scsi/sr_ioctl.cscsi_CDs[target].device -> changed = 1;
scsi_CDs337drivers/scsi/sr_ioctl.cscsi_CDs[target].auto_eject = !!arg;
scsi_CDs353drivers/scsi/sr_ioctl.csr_cmd[1] = (scsi_CDs[target].device -> lun) << 5;
scsi_CDs369drivers/scsi/sr_ioctl.csr_cmd[1] = (scsi_CDs[target].device -> lun) << 5;
scsi_CDs397drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10;    /* Params are SCSI-2 */
scsi_CDs419drivers/scsi/sr_ioctl.csr_cmd[1] = (scsi_CDs[target].device -> lun) << 5;
scsi_CDs452drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02;    /* MSF format */
scsi_CDs494drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5);
scsi_CDs538drivers/scsi/sr_ioctl.clba = scsi_CDs[target].mpcd_sector+CD_BLOCK_OFFSET;
scsi_CDs544drivers/scsi/sr_ioctl.cms_info.addr.lba=scsi_CDs[target].mpcd_sector;
scsi_CDs547drivers/scsi/sr_ioctl.cms_info.xa_flag=scsi_CDs[target].xa_flags & 0x01;
scsi_CDs565drivers/scsi/sr_ioctl.creturn scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg);