taglinefilesource code
rscsi_disks67drivers/scsi/sd.cScsi_Disk * rscsi_disks = NULL;
rscsi_disks99drivers/scsi/sd.cif(target >= sd_template.dev_max || !rscsi_disks[target].device)
rscsi_disks108drivers/scsi/sd.cwhile (rscsi_disks[target].device->busy)
rscsi_disks110drivers/scsi/sd.cif(rscsi_disks[target].device->removable) {
rscsi_disks116drivers/scsi/sd.cif ( !rscsi_disks[target].ready ) {
rscsi_disks125drivers/scsi/sd.cif ( (rscsi_disks[target].write_prot) && (filp->f_mode & 2) ) { 
rscsi_disks129drivers/scsi/sd.cif(!rscsi_disks[target].device->access_count)
rscsi_disks140drivers/scsi/sd.crscsi_disks[target].device->access_count++;
rscsi_disks141drivers/scsi/sd.cif (rscsi_disks[target].device->host->hostt->usage_count)
rscsi_disks142drivers/scsi/sd.c(*rscsi_disks[target].device->host->hostt->usage_count)++;
rscsi_disks154drivers/scsi/sd.crscsi_disks[target].device->access_count--;
rscsi_disks155drivers/scsi/sd.cif (rscsi_disks[target].device->host->hostt->usage_count)
rscsi_disks156drivers/scsi/sd.c(*rscsi_disks[target].device->host->hostt->usage_count)--;
rscsi_disks159drivers/scsi/sd.cif(rscsi_disks[target].device->removable) {
rscsi_disks160drivers/scsi/sd.cif(!rscsi_disks[target].device->access_count)
rscsi_disks202drivers/scsi/sd.cif(rscsi_disks[i].device) 
rscsi_disks203drivers/scsi/sd.csd[i << 4].nr_sects = rscsi_disks[i].capacity;
rscsi_disks335drivers/scsi/sd.cif rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].remap
rscsi_disks345drivers/scsi/sd.cif(rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->removable) {
rscsi_disks349drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->changed = 1;
rscsi_disks376drivers/scsi/sd.cif (rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].ten) {
rscsi_disks377drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].ten = 0;
rscsi_disks387drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->host->host_no,
rscsi_disks388drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->channel,
rscsi_disks389drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->id,
rscsi_disks390drivers/scsi/sd.crscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->lun, result);
rscsi_disks423drivers/scsi/sd.cSDev = rscsi_disks[DEVICE_NR(CURRENT->rq_dev)].device;
rscsi_disks460drivers/scsi/sd.crscsi_disks[DEVICE_NR(CURRENT->rq_dev)].device, 0); 
rscsi_disks485drivers/scsi/sd.cSCpnt = request_queueable(req, rscsi_disks[DEVICE_NR(req->rq_dev)].device);
rscsi_disks533drivers/scsi/sd.c!rscsi_disks[dev].device ||
rscsi_disks542drivers/scsi/sd.cif (rscsi_disks[dev].device->changed)
rscsi_disks569drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024)
rscsi_disks579drivers/scsi/sd.cif (!rscsi_disks[dev].device->writeable)
rscsi_disks659drivers/scsi/sd.cthis_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff);
rscsi_disks843drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 1024){
rscsi_disks850drivers/scsi/sd.cif (rscsi_disks[dev].sector_size == 256){
rscsi_disks855drivers/scsi/sd.cif (((this_count > 0xff) ||  (block > 0x1fffff)) && rscsi_disks[dev].ten)
rscsi_disks887drivers/scsi/sd.cSCpnt->transfersize = rscsi_disks[dev].sector_size;
rscsi_disks890drivers/scsi/sd.cthis_count * rscsi_disks[dev].sector_size,
rscsi_disks906drivers/scsi/sd.c!rscsi_disks[target].device) {
rscsi_disks911drivers/scsi/sd.cif(!rscsi_disks[target].device->removable) return 0;
rscsi_disks921drivers/scsi/sd.crscsi_disks[target].ready = 0;
rscsi_disks922drivers/scsi/sd.crscsi_disks[target].device->changed = 1;
rscsi_disks933drivers/scsi/sd.crscsi_disks[target].ready = 1;  /* FLOPTICAL */
rscsi_disks935drivers/scsi/sd.cretval = rscsi_disks[target].device->changed;
rscsi_disks936drivers/scsi/sd.cif(!flag) rscsi_disks[target].device->changed = 0;
rscsi_disks965drivers/scsi/sd.cSCpnt = allocate_device(NULL, rscsi_disks[i].device, 1);
rscsi_disks977drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
rscsi_disks1004drivers/scsi/sd.cif(the_result && !rscsi_disks[i].device->removable && 
rscsi_disks1010drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
rscsi_disks1050drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
rscsi_disks1112drivers/scsi/sd.crscsi_disks[i].capacity = 0x1fffff;
rscsi_disks1113drivers/scsi/sd.crscsi_disks[i].sector_size = 512;
rscsi_disks1117drivers/scsi/sd.cif(rscsi_disks[i].device->removable && 
rscsi_disks1119drivers/scsi/sd.crscsi_disks[i].device->changed = 1;
rscsi_disks1127drivers/scsi/sd.crscsi_disks[i].ready = 1;
rscsi_disks1129drivers/scsi/sd.crscsi_disks[i].capacity = (buffer[0] << 24) |
rscsi_disks1134drivers/scsi/sd.crscsi_disks[i].sector_size = (buffer[4] << 24) |
rscsi_disks1137drivers/scsi/sd.cif (rscsi_disks[i].sector_size == 0) {
rscsi_disks1138drivers/scsi/sd.crscsi_disks[i].sector_size = 512;
rscsi_disks1143drivers/scsi/sd.cif (rscsi_disks[i].sector_size != 512 &&
rscsi_disks1144drivers/scsi/sd.crscsi_disks[i].sector_size != 1024 &&
rscsi_disks1145drivers/scsi/sd.crscsi_disks[i].sector_size != 256)
rscsi_disks1148drivers/scsi/sd.c'a' + i, rscsi_disks[i].sector_size);
rscsi_disks1149drivers/scsi/sd.cif(rscsi_disks[i].device->removable){
rscsi_disks1150drivers/scsi/sd.crscsi_disks[i].capacity = 0;
rscsi_disks1153drivers/scsi/sd.crscsi_disks[i].device = NULL;
rscsi_disks1165drivers/scsi/sd.cint hard_sector = rscsi_disks[i].sector_size;
rscsi_disks1173drivers/scsi/sd.cif(rscsi_disks[i].sector_size == 1024)
rscsi_disks1174drivers/scsi/sd.crscsi_disks[i].capacity <<= 1;  /* Change into 512 byte sectors */
rscsi_disks1175drivers/scsi/sd.cif(rscsi_disks[i].sector_size == 256)
rscsi_disks1176drivers/scsi/sd.crscsi_disks[i].capacity >>= 1;  /* Change into 512 byte sectors */
rscsi_disks1183drivers/scsi/sd.crscsi_disks[i].write_prot = 0;
rscsi_disks1184drivers/scsi/sd.cif ( rscsi_disks[i].device->removable && rscsi_disks[i].ready ) {
rscsi_disks1196drivers/scsi/sd.ccmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0;
rscsi_disks1221drivers/scsi/sd.crscsi_disks[i].write_prot = 1;
rscsi_disks1223drivers/scsi/sd.crscsi_disks[i].write_prot = ((buffer[2] & 0x80) != 0);
rscsi_disks1225drivers/scsi/sd.crscsi_disks[i].write_prot ? "on" : "off");
rscsi_disks1230drivers/scsi/sd.crscsi_disks[i].ten = 1;
rscsi_disks1231drivers/scsi/sd.crscsi_disks[i].remap = 1;
rscsi_disks1258drivers/scsi/sd.cif(rscsi_disks) return 0;
rscsi_disks1262drivers/scsi/sd.crscsi_disks = (Scsi_Disk *) 
rscsi_disks1264drivers/scsi/sd.cmemset(rscsi_disks, 0, sd_template.dev_max * sizeof(Scsi_Disk));
rscsi_disks1290drivers/scsi/sd.csd_gendisk.real_devices = (void *) rscsi_disks;
rscsi_disks1304drivers/scsi/sd.cif (!rscsi_disks[i].capacity && 
rscsi_disks1305drivers/scsi/sd.crscsi_disks[i].device)
rscsi_disks1308drivers/scsi/sd.c&& !rscsi_disks[i].has_part_table) {
rscsi_disks1309drivers/scsi/sd.csd_sizes[i << 4] = rscsi_disks[i].capacity;
rscsi_disks1315drivers/scsi/sd.crscsi_disks[i].has_part_table = 1;
rscsi_disks1322drivers/scsi/sd.cif(rscsi_disks[0].device && rscsi_disks[0].device->host->sg_tablesize)
rscsi_disks1351drivers/scsi/sd.cfor(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) 
rscsi_disks1357drivers/scsi/sd.crscsi_disks[i].device = SDp;
rscsi_disks1358drivers/scsi/sd.crscsi_disks[i].has_part_table = 0;
rscsi_disks1364drivers/scsi/sd.c#define DEVICE_BUSY rscsi_disks[target].device->busy
rscsi_disks1365drivers/scsi/sd.c#define USAGE rscsi_disks[target].device->access_count
rscsi_disks1366drivers/scsi/sd.c#define CAPACITY rscsi_disks[target].capacity
rscsi_disks1439drivers/scsi/sd.cfor(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) 
rscsi_disks1485drivers/scsi/sd.cif( rscsi_disks != NULL )
rscsi_disks1487drivers/scsi/sd.cscsi_init_free((char *) rscsi_disks,
rscsi_disks41drivers/scsi/sd.hextern Scsi_Disk * rscsi_disks;
rscsi_disks37drivers/scsi/sd_ioctl.chost = rscsi_disks[MINOR(dev) >> 4].device->host;
rscsi_disks43drivers/scsi/sd_ioctl.cdiskinfo[2] = rscsi_disks[MINOR(dev) >> 4].capacity >> 11;
rscsi_disks48drivers/scsi/sd_ioctl.cscsicam_bios_param(&rscsi_disks[MINOR(dev) >> 4],
rscsi_disks52drivers/scsi/sd_ioctl.chost->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4],
rscsi_disks98drivers/scsi/sd_ioctl.creturn scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg);