tag | line | file | source code |
rscsi_disks | 67 | drivers/scsi/sd.c | Scsi_Disk * rscsi_disks = NULL; |
rscsi_disks | 99 | drivers/scsi/sd.c | if(target >= sd_template.dev_max || !rscsi_disks[target].device) |
rscsi_disks | 108 | drivers/scsi/sd.c | while (rscsi_disks[target].device->busy) |
rscsi_disks | 110 | drivers/scsi/sd.c | if(rscsi_disks[target].device->removable) { |
rscsi_disks | 116 | drivers/scsi/sd.c | if ( !rscsi_disks[target].ready ) { |
rscsi_disks | 125 | drivers/scsi/sd.c | if ( (rscsi_disks[target].write_prot) && (filp->f_mode & 2) ) { |
rscsi_disks | 129 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->access_count) |
rscsi_disks | 140 | drivers/scsi/sd.c | rscsi_disks[target].device->access_count++; |
rscsi_disks | 141 | drivers/scsi/sd.c | if (rscsi_disks[target].device->host->hostt->usage_count) |
rscsi_disks | 142 | drivers/scsi/sd.c | (*rscsi_disks[target].device->host->hostt->usage_count)++; |
rscsi_disks | 154 | drivers/scsi/sd.c | rscsi_disks[target].device->access_count--; |
rscsi_disks | 155 | drivers/scsi/sd.c | if (rscsi_disks[target].device->host->hostt->usage_count) |
rscsi_disks | 156 | drivers/scsi/sd.c | (*rscsi_disks[target].device->host->hostt->usage_count)--; |
rscsi_disks | 159 | drivers/scsi/sd.c | if(rscsi_disks[target].device->removable) { |
rscsi_disks | 160 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->access_count) |
rscsi_disks | 202 | drivers/scsi/sd.c | if(rscsi_disks[i].device) |
rscsi_disks | 203 | drivers/scsi/sd.c | sd[i << 4].nr_sects = rscsi_disks[i].capacity; |
rscsi_disks | 335 | drivers/scsi/sd.c | if rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].remap |
rscsi_disks | 345 | drivers/scsi/sd.c | if(rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->removable) { |
rscsi_disks | 349 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->changed = 1; |
rscsi_disks | 376 | drivers/scsi/sd.c | if (rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].ten) { |
rscsi_disks | 377 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].ten = 0; |
rscsi_disks | 387 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->host->host_no, |
rscsi_disks | 388 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->channel, |
rscsi_disks | 389 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->id, |
rscsi_disks | 390 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->lun, result); |
rscsi_disks | 423 | drivers/scsi/sd.c | SDev = rscsi_disks[DEVICE_NR(CURRENT->rq_dev)].device; |
rscsi_disks | 460 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(CURRENT->rq_dev)].device, 0); |
rscsi_disks | 485 | drivers/scsi/sd.c | SCpnt = request_queueable(req, rscsi_disks[DEVICE_NR(req->rq_dev)].device); |
rscsi_disks | 533 | drivers/scsi/sd.c | !rscsi_disks[dev].device || |
rscsi_disks | 542 | drivers/scsi/sd.c | if (rscsi_disks[dev].device->changed) |
rscsi_disks | 569 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 1024) |
rscsi_disks | 579 | drivers/scsi/sd.c | if (!rscsi_disks[dev].device->writeable) |
rscsi_disks | 659 | drivers/scsi/sd.c | this_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff); |
rscsi_disks | 843 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 1024){ |
rscsi_disks | 850 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 256){ |
rscsi_disks | 855 | drivers/scsi/sd.c | if (((this_count > 0xff) || (block > 0x1fffff)) && rscsi_disks[dev].ten) |
rscsi_disks | 887 | drivers/scsi/sd.c | SCpnt->transfersize = rscsi_disks[dev].sector_size; |
rscsi_disks | 890 | drivers/scsi/sd.c | this_count * rscsi_disks[dev].sector_size, |
rscsi_disks | 906 | drivers/scsi/sd.c | !rscsi_disks[target].device) { |
rscsi_disks | 911 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->removable) return 0; |
rscsi_disks | 921 | drivers/scsi/sd.c | rscsi_disks[target].ready = 0; |
rscsi_disks | 922 | drivers/scsi/sd.c | rscsi_disks[target].device->changed = 1; |
rscsi_disks | 933 | drivers/scsi/sd.c | rscsi_disks[target].ready = 1; /* FLOPTICAL */ |
rscsi_disks | 935 | drivers/scsi/sd.c | retval = rscsi_disks[target].device->changed; |
rscsi_disks | 936 | drivers/scsi/sd.c | if(!flag) rscsi_disks[target].device->changed = 0; |
rscsi_disks | 965 | drivers/scsi/sd.c | SCpnt = allocate_device(NULL, rscsi_disks[i].device, 1); |
rscsi_disks | 977 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
rscsi_disks | 1004 | drivers/scsi/sd.c | if(the_result && !rscsi_disks[i].device->removable && |
rscsi_disks | 1010 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
rscsi_disks | 1050 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
rscsi_disks | 1112 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0x1fffff; |
rscsi_disks | 1113 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = 512; |
rscsi_disks | 1117 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable && |
rscsi_disks | 1119 | drivers/scsi/sd.c | rscsi_disks[i].device->changed = 1; |
rscsi_disks | 1127 | drivers/scsi/sd.c | rscsi_disks[i].ready = 1; |
rscsi_disks | 1129 | drivers/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
rscsi_disks | 1134 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = (buffer[4] << 24) | |
rscsi_disks | 1137 | drivers/scsi/sd.c | if (rscsi_disks[i].sector_size == 0) { |
rscsi_disks | 1138 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = 512; |
rscsi_disks | 1143 | drivers/scsi/sd.c | if (rscsi_disks[i].sector_size != 512 && |
rscsi_disks | 1144 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 1024 && |
rscsi_disks | 1145 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 256) |
rscsi_disks | 1148 | drivers/scsi/sd.c | 'a' + i, rscsi_disks[i].sector_size); |
rscsi_disks | 1149 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable){ |
rscsi_disks | 1150 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0; |
rscsi_disks | 1153 | drivers/scsi/sd.c | rscsi_disks[i].device = NULL; |
rscsi_disks | 1165 | drivers/scsi/sd.c | int hard_sector = rscsi_disks[i].sector_size; |
rscsi_disks | 1173 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 1024) |
rscsi_disks | 1174 | drivers/scsi/sd.c | rscsi_disks[i].capacity <<= 1; /* Change into 512 byte sectors */ |
rscsi_disks | 1175 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 256) |
rscsi_disks | 1176 | drivers/scsi/sd.c | rscsi_disks[i].capacity >>= 1; /* Change into 512 byte sectors */ |
rscsi_disks | 1183 | drivers/scsi/sd.c | rscsi_disks[i].write_prot = 0; |
rscsi_disks | 1184 | drivers/scsi/sd.c | if ( rscsi_disks[i].device->removable && rscsi_disks[i].ready ) { |
rscsi_disks | 1196 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
rscsi_disks | 1221 | drivers/scsi/sd.c | rscsi_disks[i].write_prot = 1; |
rscsi_disks | 1223 | drivers/scsi/sd.c | rscsi_disks[i].write_prot = ((buffer[2] & 0x80) != 0); |
rscsi_disks | 1225 | drivers/scsi/sd.c | rscsi_disks[i].write_prot ? "on" : "off"); |
rscsi_disks | 1230 | drivers/scsi/sd.c | rscsi_disks[i].ten = 1; |
rscsi_disks | 1231 | drivers/scsi/sd.c | rscsi_disks[i].remap = 1; |
rscsi_disks | 1258 | drivers/scsi/sd.c | if(rscsi_disks) return 0; |
rscsi_disks | 1262 | drivers/scsi/sd.c | rscsi_disks = (Scsi_Disk *) |
rscsi_disks | 1264 | drivers/scsi/sd.c | memset(rscsi_disks, 0, sd_template.dev_max * sizeof(Scsi_Disk)); |
rscsi_disks | 1290 | drivers/scsi/sd.c | sd_gendisk.real_devices = (void *) rscsi_disks; |
rscsi_disks | 1304 | drivers/scsi/sd.c | if (!rscsi_disks[i].capacity && |
rscsi_disks | 1305 | drivers/scsi/sd.c | rscsi_disks[i].device) |
rscsi_disks | 1308 | drivers/scsi/sd.c | && !rscsi_disks[i].has_part_table) { |
rscsi_disks | 1309 | drivers/scsi/sd.c | sd_sizes[i << 4] = rscsi_disks[i].capacity; |
rscsi_disks | 1315 | drivers/scsi/sd.c | rscsi_disks[i].has_part_table = 1; |
rscsi_disks | 1322 | drivers/scsi/sd.c | if(rscsi_disks[0].device && rscsi_disks[0].device->host->sg_tablesize) |
rscsi_disks | 1351 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
rscsi_disks | 1357 | drivers/scsi/sd.c | rscsi_disks[i].device = SDp; |
rscsi_disks | 1358 | drivers/scsi/sd.c | rscsi_disks[i].has_part_table = 0; |
rscsi_disks | 1364 | drivers/scsi/sd.c | #define DEVICE_BUSY rscsi_disks[target].device->busy |
rscsi_disks | 1365 | drivers/scsi/sd.c | #define USAGE rscsi_disks[target].device->access_count |
rscsi_disks | 1366 | drivers/scsi/sd.c | #define CAPACITY rscsi_disks[target].capacity |
rscsi_disks | 1439 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
rscsi_disks | 1485 | drivers/scsi/sd.c | if( rscsi_disks != NULL ) |
rscsi_disks | 1487 | drivers/scsi/sd.c | scsi_init_free((char *) rscsi_disks, |
rscsi_disks | 41 | drivers/scsi/sd.h | extern Scsi_Disk * rscsi_disks; |
rscsi_disks | 36 | drivers/scsi/sd_ioctl.c | host = rscsi_disks[MINOR(dev) >> 4].device->host; |
rscsi_disks | 41 | drivers/scsi/sd_ioctl.c | host->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4], |
rscsi_disks | 73 | drivers/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg); |