taglinefilesource code
scsi_CDs59drivers/scsi/sr.cScsi_CD * scsi_CDs = NULL;
scsi_CDs75drivers/scsi/sr.cif(! --scsi_CDs[MINOR(inode->i_rdev)].device->access_count)
scsi_CDs78drivers/scsi/sr.cif (scsi_CDs[MINOR(inode->i_rdev)].auto_eject)
scsi_CDs81drivers/scsi/sr.cif (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)
scsi_CDs82drivers/scsi/sr.c(*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)--;
scsi_CDs133drivers/scsi/sr.cscsi_CDs[target].device->changed = 1;
scsi_CDs138drivers/scsi/sr.cretval = scsi_CDs[target].device->changed;
scsi_CDs140drivers/scsi/sr.cscsi_CDs[target].device->changed = 0;
scsi_CDs143drivers/scsi/sr.cif (retval) scsi_CDs[target].needs_sector_size = 1;
scsi_CDs248drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->changed = 1;
scsi_CDs260drivers/scsi/sr.cif (scsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten) {
scsi_CDs261drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].ten = 0;
scsi_CDs284drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, 
scsi_CDs285drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.dev)].device->id,
scsi_CDs286drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.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_CDs401drivers/scsi/sr.crc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs408drivers/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_CDs469drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].needs_sector_size = 1;
scsi_CDs483drivers/scsi/sr.crc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs505drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].mpcd_sector = sector;
scsi_CDs507drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].xa_flags |= 0x01;
scsi_CDs509drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].xa_flags &= ~0x01;
scsi_CDs511drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].xa_flags |= 0x02;
scsi_CDs518drivers/scsi/sr.c!scsi_CDs[MINOR(inode->i_rdev)].device) return -ENXIO;   /* No such device */
scsi_CDs525drivers/scsi/sr.cif(!scsi_CDs[MINOR(inode->i_rdev)].device->access_count++)
scsi_CDs527drivers/scsi/sr.cif (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)
scsi_CDs528drivers/scsi/sr.c(*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)++;
scsi_CDs538drivers/scsi/sr.cif(scsi_CDs[MINOR(inode->i_rdev)].needs_sector_size)
scsi_CDs569drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); 
scsi_CDs588drivers/scsi/sr.cscsi_CDs[DEVICE_NR(MINOR(req->dev))].device);
scsi_CDs639drivers/scsi/sr.cif (!scsi_CDs[dev].use)
scsi_CDs647drivers/scsi/sr.cif (scsi_CDs[dev].device->changed)
scsi_CDs701drivers/scsi/sr.cthis_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4;
scsi_CDs829drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 2048)
scsi_CDs836drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2;
scsi_CDs838drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
scsi_CDs843drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
scsi_CDs860drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
scsi_CDs891drivers/scsi/sr.cSCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ?
scsi_CDs892drivers/scsi/sr.c1024 : scsi_CDs[dev].sector_size;
scsi_CDs896drivers/scsi/sr.crealcount * scsi_CDs[dev].sector_size, 
scsi_CDs923drivers/scsi/sr.cfor(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) 
scsi_CDs929drivers/scsi/sr.cscsi_CDs[i].device = SDp;
scsi_CDs956drivers/scsi/sr.cSCpnt = allocate_device(NULL, scsi_CDs[i].device, 1);
scsi_CDs961drivers/scsi/sr.ccmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0;
scsi_CDs995drivers/scsi/sr.cscsi_CDs[i].capacity = 0x1fffff;
scsi_CDs996drivers/scsi/sr.cscsi_CDs[i].sector_size = 2048;  /* A guess, just in case */
scsi_CDs997drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
scsi_CDs999drivers/scsi/sr.cscsi_CDs[i].capacity = (buffer[0] << 24) |
scsi_CDs1001drivers/scsi/sr.cscsi_CDs[i].sector_size = (buffer[4] << 24) |
scsi_CDs1003drivers/scsi/sr.cif(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048;
scsi_CDs1004drivers/scsi/sr.cif(scsi_CDs[i].sector_size != 2048 && 
scsi_CDs1005drivers/scsi/sr.cscsi_CDs[i].sector_size != 512) {
scsi_CDs1007drivers/scsi/sr.ci, scsi_CDs[i].sector_size);
scsi_CDs1008drivers/scsi/sr.cscsi_CDs[i].capacity = 0;
scsi_CDs1009drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
scsi_CDs1011drivers/scsi/sr.cif(scsi_CDs[i].sector_size == 2048)
scsi_CDs1012drivers/scsi/sr.cscsi_CDs[i].capacity *= 4;
scsi_CDs1013drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 0;
scsi_CDs1014drivers/scsi/sr.csr_sizes[i] = scsi_CDs[i].capacity;
scsi_CDs1035drivers/scsi/sr.cif (scsi_CDs) return;
scsi_CDs1037drivers/scsi/sr.cscsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD), GFP_ATOMIC);
scsi_CDs1038drivers/scsi/sr.cmemset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD));
scsi_CDs1061drivers/scsi/sr.cif (scsi_CDs[i].capacity) continue;
scsi_CDs1062drivers/scsi/sr.cscsi_CDs[i].capacity = 0x1fffff;
scsi_CDs1063drivers/scsi/sr.cscsi_CDs[i].sector_size = 2048;  /* A guess, just in case */
scsi_CDs1064drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
scsi_CDs1068drivers/scsi/sr.cprintk("Scd sectorsize = %d bytes.\n", scsi_CDs[i].sector_size);
scsi_CDs1070drivers/scsi/sr.cscsi_CDs[i].use = 1;
scsi_CDs1071drivers/scsi/sr.cscsi_CDs[i].ten = 1;
scsi_CDs1072drivers/scsi/sr.cscsi_CDs[i].remap = 1;
scsi_CDs1073drivers/scsi/sr.cscsi_CDs[i].auto_eject = 0; /* Default is not to eject upon unmount. */
scsi_CDs1074drivers/scsi/sr.csr_sizes[i] = scsi_CDs[i].capacity;
scsi_CDs1081drivers/scsi/sr.cif(scsi_CDs[0].device && scsi_CDs[0].device->host->sg_tablesize)
scsi_CDs1096drivers/scsi/sr.cfor(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) 
scsi_CDs1140drivers/scsi/sr.cif(scsi_CDs != NULL) {
scsi_CDs1141drivers/scsi/sr.cscsi_init_free((char *) scsi_CDs,
scsi_CDs38drivers/scsi/sr.hextern Scsi_CD * scsi_CDs;
scsi_CDs48drivers/scsi/sr_ioctl.cSCpnt = allocate_device(NULL, scsi_CDs[target].device, 1);
scsi_CDs68drivers/scsi/sr_ioctl.cscsi_CDs[target].device->changed = 1;
scsi_CDs79drivers/scsi/sr_ioctl.cscsi_CDs[target].device->host->host_no, 
scsi_CDs80drivers/scsi/sr_ioctl.cscsi_CDs[target].device->id,
scsi_CDs81drivers/scsi/sr_ioctl.cscsi_CDs[target].device->lun,
scsi_CDs107drivers/scsi/sr_ioctl.c!scsi_CDs[target].device) return -ENXIO;
scsi_CDs115drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs127drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs147drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs171drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs192drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02;    /* MSF format */
scsi_CDs228drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02;    /* MSF format */
scsi_CDs261drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1;
scsi_CDs270drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1;
scsi_CDs281drivers/scsi/sr_ioctl.cif (scsi_CDs[target].device -> access_count > 1)
scsi_CDs286drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1;
scsi_CDs291drivers/scsi/sr_ioctl.cscsi_CDs[target].device -> changed = 1;
scsi_CDs296drivers/scsi/sr_ioctl.cscsi_CDs[target].auto_eject = !!arg;
scsi_CDs312drivers/scsi/sr_ioctl.csr_cmd[1] = (scsi_CDs[target].device -> lun) << 5;
scsi_CDs328drivers/scsi/sr_ioctl.csr_cmd[1] = (scsi_CDs[target].device -> lun) << 5;
scsi_CDs356drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10;    /* Params are SCSI-2 */
scsi_CDs373drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02;    /* MSF format */
scsi_CDs427drivers/scsi/sr_ioctl.clba = scsi_CDs[target].mpcd_sector+CD_BLOCK_OFFSET;
scsi_CDs433drivers/scsi/sr_ioctl.cms_info.addr.lba=scsi_CDs[target].mpcd_sector;
scsi_CDs436drivers/scsi/sr_ioctl.cms_info.xa_flag=scsi_CDs[target].xa_flags & 0x01;
scsi_CDs454drivers/scsi/sr_ioctl.creturn scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg);