tag | line | file | source code |
rscsi_disks | 69 | drivers/scsi/sd.c | Scsi_Disk * rscsi_disks = NULL; |
rscsi_disks | 101 | drivers/scsi/sd.c | if(target >= sd_template.dev_max || !rscsi_disks[target].device) |
rscsi_disks | 110 | drivers/scsi/sd.c | while (rscsi_disks[target].device->busy) |
rscsi_disks | 112 | drivers/scsi/sd.c | if(rscsi_disks[target].device->removable) { |
rscsi_disks | 118 | drivers/scsi/sd.c | if ( !rscsi_disks[target].ready ) { |
rscsi_disks | 127 | drivers/scsi/sd.c | if ( (rscsi_disks[target].write_prot) && (filp->f_mode & 2) ) { |
rscsi_disks | 131 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->access_count) |
rscsi_disks | 142 | drivers/scsi/sd.c | rscsi_disks[target].device->access_count++; |
rscsi_disks | 143 | drivers/scsi/sd.c | if (rscsi_disks[target].device->host->hostt->usage_count) |
rscsi_disks | 144 | drivers/scsi/sd.c | (*rscsi_disks[target].device->host->hostt->usage_count)++; |
rscsi_disks | 156 | drivers/scsi/sd.c | rscsi_disks[target].device->access_count--; |
rscsi_disks | 157 | drivers/scsi/sd.c | if (rscsi_disks[target].device->host->hostt->usage_count) |
rscsi_disks | 158 | drivers/scsi/sd.c | (*rscsi_disks[target].device->host->hostt->usage_count)--; |
rscsi_disks | 161 | drivers/scsi/sd.c | if(rscsi_disks[target].device->removable) { |
rscsi_disks | 162 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->access_count) |
rscsi_disks | 204 | drivers/scsi/sd.c | if(rscsi_disks[i].device) |
rscsi_disks | 205 | drivers/scsi/sd.c | sd[i << 4].nr_sects = rscsi_disks[i].capacity; |
rscsi_disks | 337 | drivers/scsi/sd.c | if rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].remap |
rscsi_disks | 347 | drivers/scsi/sd.c | if(rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->removable) { |
rscsi_disks | 351 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->changed = 1; |
rscsi_disks | 378 | drivers/scsi/sd.c | if (rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].ten) { |
rscsi_disks | 379 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].ten = 0; |
rscsi_disks | 389 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->host->host_no, |
rscsi_disks | 390 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->channel, |
rscsi_disks | 391 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->id, |
rscsi_disks | 392 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.rq_dev)].device->lun, result); |
rscsi_disks | 425 | drivers/scsi/sd.c | SDev = rscsi_disks[DEVICE_NR(CURRENT->rq_dev)].device; |
rscsi_disks | 462 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(CURRENT->rq_dev)].device, 0); |
rscsi_disks | 487 | drivers/scsi/sd.c | SCpnt = request_queueable(req, rscsi_disks[DEVICE_NR(req->rq_dev)].device); |
rscsi_disks | 535 | drivers/scsi/sd.c | !rscsi_disks[dev].device || |
rscsi_disks | 544 | drivers/scsi/sd.c | if (rscsi_disks[dev].device->changed) |
rscsi_disks | 571 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 1024) |
rscsi_disks | 581 | drivers/scsi/sd.c | if (!rscsi_disks[dev].device->writeable) |
rscsi_disks | 661 | drivers/scsi/sd.c | this_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff); |
rscsi_disks | 845 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 1024){ |
rscsi_disks | 852 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 256){ |
rscsi_disks | 857 | drivers/scsi/sd.c | if (((this_count > 0xff) || (block > 0x1fffff)) && rscsi_disks[dev].ten) |
rscsi_disks | 889 | drivers/scsi/sd.c | SCpnt->transfersize = rscsi_disks[dev].sector_size; |
rscsi_disks | 892 | drivers/scsi/sd.c | this_count * rscsi_disks[dev].sector_size, |
rscsi_disks | 908 | drivers/scsi/sd.c | !rscsi_disks[target].device) { |
rscsi_disks | 913 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->removable) return 0; |
rscsi_disks | 923 | drivers/scsi/sd.c | rscsi_disks[target].ready = 0; |
rscsi_disks | 924 | drivers/scsi/sd.c | rscsi_disks[target].device->changed = 1; |
rscsi_disks | 935 | drivers/scsi/sd.c | rscsi_disks[target].ready = 1; /* FLOPTICAL */ |
rscsi_disks | 937 | drivers/scsi/sd.c | retval = rscsi_disks[target].device->changed; |
rscsi_disks | 938 | drivers/scsi/sd.c | if(!flag) rscsi_disks[target].device->changed = 0; |
rscsi_disks | 967 | drivers/scsi/sd.c | SCpnt = allocate_device(NULL, rscsi_disks[i].device, 1); |
rscsi_disks | 979 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
rscsi_disks | 1006 | drivers/scsi/sd.c | if(the_result && !rscsi_disks[i].device->removable && |
rscsi_disks | 1012 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
rscsi_disks | 1052 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
rscsi_disks | 1114 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0x1fffff; |
rscsi_disks | 1115 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = 512; |
rscsi_disks | 1119 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable && |
rscsi_disks | 1121 | drivers/scsi/sd.c | rscsi_disks[i].device->changed = 1; |
rscsi_disks | 1129 | drivers/scsi/sd.c | rscsi_disks[i].ready = 1; |
rscsi_disks | 1131 | drivers/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
rscsi_disks | 1136 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = (buffer[4] << 24) | |
rscsi_disks | 1139 | drivers/scsi/sd.c | if (rscsi_disks[i].sector_size != 512 && |
rscsi_disks | 1140 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 1024 && |
rscsi_disks | 1141 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 256) |
rscsi_disks | 1144 | drivers/scsi/sd.c | 'a' + i, rscsi_disks[i].sector_size); |
rscsi_disks | 1145 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable){ |
rscsi_disks | 1146 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0; |
rscsi_disks | 1149 | drivers/scsi/sd.c | rscsi_disks[i].device = NULL; |
rscsi_disks | 1161 | drivers/scsi/sd.c | int hard_sector = rscsi_disks[i].sector_size; |
rscsi_disks | 1169 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 1024) |
rscsi_disks | 1170 | drivers/scsi/sd.c | rscsi_disks[i].capacity <<= 1; /* Change into 512 byte sectors */ |
rscsi_disks | 1171 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 256) |
rscsi_disks | 1172 | drivers/scsi/sd.c | rscsi_disks[i].capacity >>= 1; /* Change into 512 byte sectors */ |
rscsi_disks | 1179 | drivers/scsi/sd.c | rscsi_disks[i].write_prot = 0; |
rscsi_disks | 1180 | drivers/scsi/sd.c | if ( rscsi_disks[i].device->removable && rscsi_disks[i].ready ) { |
rscsi_disks | 1192 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
rscsi_disks | 1217 | drivers/scsi/sd.c | rscsi_disks[i].write_prot = 1; |
rscsi_disks | 1219 | drivers/scsi/sd.c | rscsi_disks[i].write_prot = ((buffer[2] & 0x80) != 0); |
rscsi_disks | 1221 | drivers/scsi/sd.c | rscsi_disks[i].write_prot ? "on" : "off"); |
rscsi_disks | 1226 | drivers/scsi/sd.c | rscsi_disks[i].ten = 1; |
rscsi_disks | 1227 | drivers/scsi/sd.c | rscsi_disks[i].remap = 1; |
rscsi_disks | 1254 | drivers/scsi/sd.c | if(rscsi_disks) return 0; |
rscsi_disks | 1258 | drivers/scsi/sd.c | rscsi_disks = (Scsi_Disk *) |
rscsi_disks | 1260 | drivers/scsi/sd.c | memset(rscsi_disks, 0, sd_template.dev_max * sizeof(Scsi_Disk)); |
rscsi_disks | 1286 | drivers/scsi/sd.c | sd_gendisk.real_devices = (void *) rscsi_disks; |
rscsi_disks | 1300 | drivers/scsi/sd.c | if (!rscsi_disks[i].capacity && |
rscsi_disks | 1301 | drivers/scsi/sd.c | rscsi_disks[i].device) |
rscsi_disks | 1305 | drivers/scsi/sd.c | && !rscsi_disks[i].has_part_table) { |
rscsi_disks | 1306 | drivers/scsi/sd.c | sd_sizes[i << 4] = rscsi_disks[i].capacity; |
rscsi_disks | 1309 | drivers/scsi/sd.c | rscsi_disks[i].has_part_table = 1; |
rscsi_disks | 1316 | drivers/scsi/sd.c | if(rscsi_disks[0].device && rscsi_disks[0].device->host->sg_tablesize) |
rscsi_disks | 1345 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
rscsi_disks | 1351 | drivers/scsi/sd.c | rscsi_disks[i].device = SDp; |
rscsi_disks | 1352 | drivers/scsi/sd.c | rscsi_disks[i].has_part_table = 0; |
rscsi_disks | 1358 | drivers/scsi/sd.c | #define DEVICE_BUSY rscsi_disks[target].device->busy |
rscsi_disks | 1359 | drivers/scsi/sd.c | #define USAGE rscsi_disks[target].device->access_count |
rscsi_disks | 1360 | drivers/scsi/sd.c | #define CAPACITY rscsi_disks[target].capacity |
rscsi_disks | 1433 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
rscsi_disks | 1487 | drivers/scsi/sd.c | if( rscsi_disks != NULL ) |
rscsi_disks | 1489 | 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); |