tag | line | file | source code |
rscsi_disks | 49 | drivers/scsi/sd.c | Scsi_Disk * rscsi_disks; |
rscsi_disks | 77 | drivers/scsi/sd.c | if(target >= sd_template.dev_max || !rscsi_disks[target].device) |
rscsi_disks | 83 | drivers/scsi/sd.c | while (rscsi_disks[target].device->busy); |
rscsi_disks | 85 | drivers/scsi/sd.c | if(rscsi_disks[target].device->removable) { |
rscsi_disks | 88 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->access_count) |
rscsi_disks | 91 | drivers/scsi/sd.c | rscsi_disks[target].device->access_count++; |
rscsi_disks | 102 | drivers/scsi/sd.c | rscsi_disks[target].device->access_count--; |
rscsi_disks | 104 | drivers/scsi/sd.c | if(rscsi_disks[target].device->removable) { |
rscsi_disks | 105 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->access_count) |
rscsi_disks | 147 | drivers/scsi/sd.c | if(rscsi_disks[i].device) |
rscsi_disks | 148 | drivers/scsi/sd.c | sd[i << 4].nr_sects = rscsi_disks[i].capacity; |
rscsi_disks | 271 | drivers/scsi/sd.c | if rscsi_disks[DEVICE_NR(SCpnt->request.dev)].remap |
rscsi_disks | 282 | drivers/scsi/sd.c | if(rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->removable) { |
rscsi_disks | 286 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->changed = 1; |
rscsi_disks | 303 | drivers/scsi/sd.c | if (rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten) { |
rscsi_disks | 304 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].ten = 0; |
rscsi_disks | 313 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->host->host_no, |
rscsi_disks | 314 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->id, |
rscsi_disks | 315 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(SCpnt->request.dev)].device->lun, result); |
rscsi_disks | 359 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(MINOR(CURRENT->dev))].device, 0); |
rscsi_disks | 377 | drivers/scsi/sd.c | rscsi_disks[DEVICE_NR(MINOR(req->dev))].device); |
rscsi_disks | 423 | drivers/scsi/sd.c | !rscsi_disks[DEVICE_NR(dev)].device || |
rscsi_disks | 433 | drivers/scsi/sd.c | if (rscsi_disks[dev].device->changed) |
rscsi_disks | 450 | drivers/scsi/sd.c | if (!rscsi_disks[dev].device->writeable) |
rscsi_disks | 530 | drivers/scsi/sd.c | this_count_max = (rscsi_disks[dev].ten ? 0xffff : 0xff); |
rscsi_disks | 699 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 1024){ |
rscsi_disks | 706 | drivers/scsi/sd.c | if (rscsi_disks[dev].sector_size == 256){ |
rscsi_disks | 711 | drivers/scsi/sd.c | if (((this_count > 0xff) || (block > 0x1fffff)) && rscsi_disks[dev].ten) |
rscsi_disks | 743 | drivers/scsi/sd.c | SCpnt->transfersize = rscsi_disks[dev].sector_size; |
rscsi_disks | 746 | drivers/scsi/sd.c | this_count * rscsi_disks[dev].sector_size, |
rscsi_disks | 762 | drivers/scsi/sd.c | !rscsi_disks[target].device) { |
rscsi_disks | 767 | drivers/scsi/sd.c | if(!rscsi_disks[target].device->removable) return 0; |
rscsi_disks | 777 | drivers/scsi/sd.c | rscsi_disks[target].device->changed = 1; |
rscsi_disks | 782 | drivers/scsi/sd.c | retval = rscsi_disks[target].device->changed; |
rscsi_disks | 783 | drivers/scsi/sd.c | if(!flag) rscsi_disks[target].device->changed = 0; |
rscsi_disks | 811 | drivers/scsi/sd.c | SCpnt = allocate_device(NULL, rscsi_disks[i].device, 1); |
rscsi_disks | 820 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
rscsi_disks | 837 | drivers/scsi/sd.c | if(the_result && !rscsi_disks[i].device->removable && |
rscsi_disks | 843 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
rscsi_disks | 878 | drivers/scsi/sd.c | cmd[1] = (rscsi_disks[i].device->lun << 5) & 0xe0; |
rscsi_disks | 941 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0x1fffff; |
rscsi_disks | 942 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = 512; |
rscsi_disks | 946 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable && |
rscsi_disks | 948 | drivers/scsi/sd.c | rscsi_disks[i].device->changed = 1; |
rscsi_disks | 953 | drivers/scsi/sd.c | rscsi_disks[i].capacity = (buffer[0] << 24) | |
rscsi_disks | 958 | drivers/scsi/sd.c | rscsi_disks[i].sector_size = (buffer[4] << 24) | |
rscsi_disks | 961 | drivers/scsi/sd.c | if (rscsi_disks[i].sector_size != 512 && |
rscsi_disks | 962 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 1024 && |
rscsi_disks | 963 | drivers/scsi/sd.c | rscsi_disks[i].sector_size != 256) |
rscsi_disks | 966 | drivers/scsi/sd.c | 'a' + i, rscsi_disks[i].sector_size); |
rscsi_disks | 967 | drivers/scsi/sd.c | if(rscsi_disks[i].device->removable){ |
rscsi_disks | 968 | drivers/scsi/sd.c | rscsi_disks[i].capacity = 0; |
rscsi_disks | 971 | drivers/scsi/sd.c | rscsi_disks[i].device = NULL; |
rscsi_disks | 976 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 1024) |
rscsi_disks | 977 | drivers/scsi/sd.c | rscsi_disks[i].capacity <<= 1; /* Change this into 512 byte sectors */ |
rscsi_disks | 978 | drivers/scsi/sd.c | if(rscsi_disks[i].sector_size == 256) |
rscsi_disks | 979 | drivers/scsi/sd.c | rscsi_disks[i].capacity >>= 1; /* Change this into 512 byte sectors */ |
rscsi_disks | 982 | drivers/scsi/sd.c | rscsi_disks[i].ten = 1; |
rscsi_disks | 983 | drivers/scsi/sd.c | rscsi_disks[i].remap = 1; |
rscsi_disks | 1014 | drivers/scsi/sd.c | rscsi_disks = (Scsi_Disk *) |
rscsi_disks | 1016 | drivers/scsi/sd.c | memset(rscsi_disks, 0, sd_template.dev_max * sizeof(Scsi_Disk)); |
rscsi_disks | 1034 | drivers/scsi/sd.c | sd_gendisk.real_devices = (void *) rscsi_disks; |
rscsi_disks | 1043 | drivers/scsi/sd.c | if (rscsi_disks[i].device) i = sd_init_onedisk(i); |
rscsi_disks | 1050 | drivers/scsi/sd.c | if(rscsi_disks[0].device->host->sg_tablesize) |
rscsi_disks | 1085 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
rscsi_disks | 1091 | drivers/scsi/sd.c | rscsi_disks[i].device = SDp; |
rscsi_disks | 1095 | drivers/scsi/sd.c | #define DEVICE_BUSY rscsi_disks[target].device->busy |
rscsi_disks | 1096 | drivers/scsi/sd.c | #define USAGE rscsi_disks[target].device->access_count |
rscsi_disks | 1097 | drivers/scsi/sd.c | #define CAPACITY rscsi_disks[target].capacity |
rscsi_disks | 44 | drivers/scsi/sd.h | extern Scsi_Disk * rscsi_disks; |
rscsi_disks | 31 | drivers/scsi/sd_ioctl.c | host = rscsi_disks[MINOR(dev) >> 4].device->host; |
rscsi_disks | 36 | drivers/scsi/sd_ioctl.c | host->hostt->bios_param(&rscsi_disks[MINOR(dev) >> 4], |
rscsi_disks | 72 | drivers/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device , cmd, (void *) arg); |