taglinefilesource code
scsi_CDs55drivers/scsi/sr.cScsi_CD * scsi_CDs = NULL;
scsi_CDs71drivers/scsi/sr.cif(! --scsi_CDs[MINOR(inode->i_rdev)].device->access_count)
scsi_CDs74drivers/scsi/sr.cif (scsi_CDs[MINOR(inode->i_rdev)].auto_eject)
scsi_CDs77drivers/scsi/sr.cif (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)
scsi_CDs78drivers/scsi/sr.c(*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)--;
scsi_CDs129drivers/scsi/sr.cscsi_CDs[target].device->changed = 1;
scsi_CDs134drivers/scsi/sr.cretval = scsi_CDs[target].device->changed;
scsi_CDs136drivers/scsi/sr.cscsi_CDs[target].device->changed = 0;
scsi_CDs139drivers/scsi/sr.cif (retval) scsi_CDs[target].needs_sector_size = 1;
scsi_CDs244drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].device->changed = 1;
scsi_CDs256drivers/scsi/sr.cif (scsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].ten) {
scsi_CDs257drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].ten = 0;
scsi_CDs280drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].device->host->host_no, 
scsi_CDs281drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].device->id,
scsi_CDs282drivers/scsi/sr.cscsi_CDs[DEVICE_NR(SCpnt->request.rq_dev)].device->lun,
scsi_CDs326drivers/scsi/sr.cif (scsi_CDs[MINOR(inode->i_rdev)].xa_flags & 0x02) {
scsi_CDs340drivers/scsi/sr.cif (1 == scsi_CDs[MINOR(inode->i_rdev)].device->access_count) {
scsi_CDs341drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].mpcd_sector = 0;
scsi_CDs342drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].xa_flags &= ~0x01;
scsi_CDs352drivers/scsi/sr.cswitch(scsi_CDs[MINOR(inode->i_rdev)].device->manufacturer) {
scsi_CDs364drivers/scsi/sr.crc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs399drivers/scsi/sr.crc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs406drivers/scsi/sr.cif (kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs436drivers/scsi/sr.crc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs461drivers/scsi/sr.crc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs467drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].needs_sector_size = 1;
scsi_CDs482drivers/scsi/sr.crc = kernel_scsi_ioctl(scsi_CDs[MINOR(inode->i_rdev)].device,
scsi_CDs509drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].mpcd_sector = sector;
scsi_CDs511drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].xa_flags |= 0x01;
scsi_CDs513drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].xa_flags &= ~0x01;
scsi_CDs515drivers/scsi/sr.cscsi_CDs[MINOR(inode->i_rdev)].xa_flags |= 0x02;
scsi_CDs522drivers/scsi/sr.c!scsi_CDs[MINOR(inode->i_rdev)].device) return -ENXIO;   /* No such device */
scsi_CDs529drivers/scsi/sr.cif(!scsi_CDs[MINOR(inode->i_rdev)].device->access_count++)
scsi_CDs531drivers/scsi/sr.cif (scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)
scsi_CDs532drivers/scsi/sr.c(*scsi_CDs[MINOR(inode->i_rdev)].device->host->hostt->usage_count)++;
scsi_CDs542drivers/scsi/sr.cif(scsi_CDs[MINOR(inode->i_rdev)].needs_sector_size)
scsi_CDs573drivers/scsi/sr.cSDev = scsi_CDs[DEVICE_NR(CURRENT->rq_dev)].device;
scsi_CDs597drivers/scsi/sr.cscsi_CDs[DEVICE_NR(CURRENT->rq_dev)].device, 0); 
scsi_CDs616drivers/scsi/sr.cscsi_CDs[DEVICE_NR(req->rq_dev)].device);
scsi_CDs666drivers/scsi/sr.cif (!scsi_CDs[dev].use) {
scsi_CDs673drivers/scsi/sr.cif (scsi_CDs[dev].device->changed) {
scsi_CDs727drivers/scsi/sr.cthis_count_max = (scsi_CDs[dev].ten ? 0xffff : 0xff) << 4;
scsi_CDs855drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 2048)
scsi_CDs862drivers/scsi/sr.cif (scsi_CDs[dev].sector_size == 512) realcount = realcount << 2;
scsi_CDs864drivers/scsi/sr.cif (((realcount > 0xff) || (block > 0x1fffff)) && scsi_CDs[dev].ten) 
scsi_CDs869drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
scsi_CDs886drivers/scsi/sr.cthis_count = realcount * (scsi_CDs[dev].sector_size >> 9);
scsi_CDs917drivers/scsi/sr.cSCpnt->transfersize = (scsi_CDs[dev].sector_size > 1024) ?
scsi_CDs918drivers/scsi/sr.c1024 : scsi_CDs[dev].sector_size;
scsi_CDs922drivers/scsi/sr.crealcount * scsi_CDs[dev].sector_size, 
scsi_CDs949drivers/scsi/sr.cfor(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) 
scsi_CDs955drivers/scsi/sr.cscsi_CDs[i].device = SDp;
scsi_CDs982drivers/scsi/sr.cSCpnt = allocate_device(NULL, scsi_CDs[i].device, 1);
scsi_CDs987drivers/scsi/sr.ccmd[1] = (scsi_CDs[i].device->lun << 5) & 0xe0;
scsi_CDs1015drivers/scsi/sr.cscsi_CDs[i].capacity = 0x1fffff;
scsi_CDs1016drivers/scsi/sr.cscsi_CDs[i].sector_size = 2048;  /* A guess, just in case */
scsi_CDs1017drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
scsi_CDs1019drivers/scsi/sr.cscsi_CDs[i].capacity = (buffer[0] << 24) |
scsi_CDs1021drivers/scsi/sr.cscsi_CDs[i].sector_size = (buffer[4] << 24) |
scsi_CDs1023drivers/scsi/sr.cif(scsi_CDs[i].sector_size == 0) scsi_CDs[i].sector_size = 2048;
scsi_CDs1025drivers/scsi/sr.cif(scsi_CDs[i].sector_size == 2340) scsi_CDs[i].sector_size = 2048;
scsi_CDs1026drivers/scsi/sr.cif(scsi_CDs[i].sector_size != 2048 && 
scsi_CDs1027drivers/scsi/sr.cscsi_CDs[i].sector_size != 512) {
scsi_CDs1029drivers/scsi/sr.ci, scsi_CDs[i].sector_size);
scsi_CDs1030drivers/scsi/sr.cscsi_CDs[i].capacity = 0;
scsi_CDs1031drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
scsi_CDs1033drivers/scsi/sr.cif(scsi_CDs[i].sector_size == 2048)
scsi_CDs1034drivers/scsi/sr.cscsi_CDs[i].capacity *= 4;
scsi_CDs1035drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 0;
scsi_CDs1036drivers/scsi/sr.csr_sizes[i] = scsi_CDs[i].capacity;
scsi_CDs1058drivers/scsi/sr.cif (scsi_CDs) return 0;
scsi_CDs1060drivers/scsi/sr.cscsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD), GFP_ATOMIC);
scsi_CDs1061drivers/scsi/sr.cmemset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD));
scsi_CDs1084drivers/scsi/sr.cif (scsi_CDs[i].capacity) continue;
scsi_CDs1085drivers/scsi/sr.cscsi_CDs[i].capacity = 0x1fffff;
scsi_CDs1086drivers/scsi/sr.cscsi_CDs[i].sector_size = 2048;  /* A guess, just in case */
scsi_CDs1087drivers/scsi/sr.cscsi_CDs[i].needs_sector_size = 1;
scsi_CDs1091drivers/scsi/sr.cprintk("Scd sectorsize = %d bytes.\n", scsi_CDs[i].sector_size);
scsi_CDs1093drivers/scsi/sr.cscsi_CDs[i].use = 1;
scsi_CDs1094drivers/scsi/sr.cscsi_CDs[i].ten = 1;
scsi_CDs1095drivers/scsi/sr.cscsi_CDs[i].remap = 1;
scsi_CDs1096drivers/scsi/sr.cscsi_CDs[i].auto_eject = 0; /* Default is not to eject upon unmount. */
scsi_CDs1097drivers/scsi/sr.csr_sizes[i] = scsi_CDs[i].capacity;
scsi_CDs1104drivers/scsi/sr.cif(scsi_CDs[0].device && scsi_CDs[0].device->host->sg_tablesize)
scsi_CDs1117drivers/scsi/sr.cfor(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) 
scsi_CDs1160drivers/scsi/sr.cif(scsi_CDs != NULL) {
scsi_CDs1161drivers/scsi/sr.cscsi_init_free((char *) scsi_CDs,
scsi_CDs38drivers/scsi/sr.hextern Scsi_CD * scsi_CDs;
scsi_CDs42drivers/scsi/sr_ioctl.cSCpnt = allocate_device(NULL, scsi_CDs[target].device, 1);
scsi_CDs58drivers/scsi/sr_ioctl.cscsi_CDs[target].device->changed = 1;
scsi_CDs69drivers/scsi/sr_ioctl.cscsi_CDs[target].device->host->host_no, 
scsi_CDs70drivers/scsi/sr_ioctl.cscsi_CDs[target].device->id,
scsi_CDs71drivers/scsi/sr_ioctl.cscsi_CDs[target].device->lun,
scsi_CDs97drivers/scsi/sr_ioctl.c!scsi_CDs[target].device) return -ENXIO;
scsi_CDs105drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs117drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs137drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs161drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs185drivers/scsi/sr_ioctl.csr_cmd[1] = scsi_CDs[target].device->lun << 5;
scsi_CDs206drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02;    /* MSF format */
scsi_CDs242drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02;    /* MSF format */
scsi_CDs275drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1;
scsi_CDs284drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 1;
scsi_CDs295drivers/scsi/sr_ioctl.cif (scsi_CDs[target].device -> access_count > 1)
scsi_CDs300drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 1;
scsi_CDs305drivers/scsi/sr_ioctl.cscsi_CDs[target].device -> changed = 1;
scsi_CDs310drivers/scsi/sr_ioctl.cscsi_CDs[target].auto_eject = !!arg;
scsi_CDs326drivers/scsi/sr_ioctl.csr_cmd[1] = (scsi_CDs[target].device -> lun) << 5;
scsi_CDs342drivers/scsi/sr_ioctl.csr_cmd[1] = (scsi_CDs[target].device -> lun) << 5;
scsi_CDs370drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device -> lun) << 5) | 0x10;    /* Params are SCSI-2 */
scsi_CDs387drivers/scsi/sr_ioctl.csr_cmd[1] = ((scsi_CDs[target].device->lun) << 5) | 0x02;    /* MSF format */
scsi_CDs441drivers/scsi/sr_ioctl.clba = scsi_CDs[target].mpcd_sector+CD_BLOCK_OFFSET;
scsi_CDs447drivers/scsi/sr_ioctl.cms_info.addr.lba=scsi_CDs[target].mpcd_sector;
scsi_CDs450drivers/scsi/sr_ioctl.cms_info.xa_flag=scsi_CDs[target].xa_flags & 0x01;
scsi_CDs468drivers/scsi/sr_ioctl.creturn scsi_ioctl(scsi_CDs[target].device,cmd,(void *) arg);