tag | line | file | source code |
sd_template | 388 | drivers/scsi/hosts.c | scsi_register_device(&sd_template); |
sd_template | 372 | drivers/scsi/hosts.h | extern struct Scsi_Device_Template sd_template; |
sd_template | 90 | drivers/scsi/sd.c | struct Scsi_Device_Template sd_template = |
sd_template | 102 | drivers/scsi/sd.c | if(target >= sd_template.dev_max || !rscsi_disks[target].device) |
sd_template | 130 | drivers/scsi/sd.c | if(sd_template.usage_count) (*sd_template.usage_count)++; |
sd_template | 144 | drivers/scsi/sd.c | if(sd_template.usage_count) (*sd_template.usage_count)--; |
sd_template | 188 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
sd_template | 193 | drivers/scsi/sd.c | sd_gendisk.nr_real = sd_template.dev_max; |
sd_template | 466 | drivers/scsi/sd.c | if (!SCpnt && sd_template.nr_dev > 1){ |
sd_template | 517 | drivers/scsi/sd.c | if (dev >= (sd_template.dev_max << 4) || |
sd_template | 891 | drivers/scsi/sd.c | if (target >= sd_template.dev_max || |
sd_template | 1121 | drivers/scsi/sd.c | sd_template.nr_dev--; |
sd_template | 1163 | drivers/scsi/sd.c | if (sd_template.dev_noticed == 0) return 0; |
sd_template | 1176 | drivers/scsi/sd.c | sd_template.dev_max = sd_template.dev_noticed + SD_EXTRA_DEVS; |
sd_template | 1179 | drivers/scsi/sd.c | scsi_init_malloc(sd_template.dev_max * sizeof(Scsi_Disk), GFP_ATOMIC); |
sd_template | 1180 | drivers/scsi/sd.c | memset(rscsi_disks, 0, sd_template.dev_max * sizeof(Scsi_Disk)); |
sd_template | 1182 | drivers/scsi/sd.c | sd_sizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
sd_template | 1184 | drivers/scsi/sd.c | memset(sd_sizes, 0, (sd_template.dev_max << 4) * sizeof(int)); |
sd_template | 1186 | drivers/scsi/sd.c | sd_blocksizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
sd_template | 1189 | drivers/scsi/sd.c | sd_hardsizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
sd_template | 1192 | drivers/scsi/sd.c | for(i=0;i<(sd_template.dev_max << 4);i++){ |
sd_template | 1198 | drivers/scsi/sd.c | sd = (struct hd_struct *) scsi_init_malloc((sd_template.dev_max << 4) * |
sd_template | 1203 | drivers/scsi/sd.c | sd_gendisk.max_nr = sd_template.dev_max; |
sd_template | 1219 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
sd_template | 1248 | drivers/scsi/sd.c | 'a'+ (sd_template.dev_noticed++), |
sd_template | 1260 | drivers/scsi/sd.c | if(sd_template.nr_dev >= sd_template.dev_max) { |
sd_template | 1265 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
sd_template | 1268 | drivers/scsi/sd.c | if(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)"); |
sd_template | 1273 | drivers/scsi/sd.c | sd_template.nr_dev++; |
sd_template | 1353 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
sd_template | 1375 | drivers/scsi/sd.c | sd_template.dev_noticed--; |
sd_template | 1376 | drivers/scsi/sd.c | sd_template.nr_dev--; |
sd_template | 1390 | drivers/scsi/sd.c | sd_template.usage_count = &mod_use_count_; |
sd_template | 1391 | drivers/scsi/sd.c | return scsi_register_module(MODULE_SCSI_DEV, &sd_template); |
sd_template | 1403 | drivers/scsi/sd.c | scsi_unregister_module(MODULE_SCSI_DEV, &sd_template); |
sd_template | 1409 | drivers/scsi/sd.c | (sd_template.dev_noticed + SD_EXTRA_DEVS) |
sd_template | 1412 | drivers/scsi/sd.c | scsi_init_free((char *) sd_sizes, sd_template.dev_max * sizeof(int)); |
sd_template | 1413 | drivers/scsi/sd.c | scsi_init_free((char *) sd_blocksizes, sd_template.dev_max * sizeof(int)); |
sd_template | 1414 | drivers/scsi/sd.c | scsi_init_free((char *) sd_hardsizes, sd_template.dev_max * sizeof(int)); |
sd_template | 1416 | drivers/scsi/sd.c | (sd_template.dev_max << 4) * sizeof(struct hd_struct)); |
sd_template | 1443 | drivers/scsi/sd.c | sd_template.dev_max = 0; |