tag | line | file | source code |
sd_template | 387 | drivers/scsi/hosts.c | scsi_register_device(&sd_template); |
sd_template | 355 | 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 | 434 | drivers/scsi/sd.c | if (!SCpnt && sd_template.nr_dev > 1){ |
sd_template | 485 | drivers/scsi/sd.c | if (dev >= (sd_template.dev_max << 4) || |
sd_template | 859 | drivers/scsi/sd.c | if (target >= sd_template.dev_max || |
sd_template | 1089 | drivers/scsi/sd.c | sd_template.nr_dev--; |
sd_template | 1131 | drivers/scsi/sd.c | if (sd_template.dev_noticed == 0) return; |
sd_template | 1144 | drivers/scsi/sd.c | sd_template.dev_max = sd_template.dev_noticed + SD_EXTRA_DEVS; |
sd_template | 1147 | drivers/scsi/sd.c | scsi_init_malloc(sd_template.dev_max * sizeof(Scsi_Disk), GFP_ATOMIC); |
sd_template | 1148 | drivers/scsi/sd.c | memset(rscsi_disks, 0, sd_template.dev_max * sizeof(Scsi_Disk)); |
sd_template | 1150 | drivers/scsi/sd.c | sd_sizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
sd_template | 1152 | drivers/scsi/sd.c | memset(sd_sizes, 0, (sd_template.dev_max << 4) * sizeof(int)); |
sd_template | 1154 | drivers/scsi/sd.c | sd_blocksizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
sd_template | 1157 | drivers/scsi/sd.c | sd_hardsizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
sd_template | 1160 | drivers/scsi/sd.c | for(i=0;i<(sd_template.dev_max << 4);i++){ |
sd_template | 1166 | drivers/scsi/sd.c | sd = (struct hd_struct *) scsi_init_malloc((sd_template.dev_max << 4) * |
sd_template | 1171 | drivers/scsi/sd.c | sd_gendisk.max_nr = sd_template.dev_max; |
sd_template | 1187 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
sd_template | 1216 | drivers/scsi/sd.c | 'a'+ (sd_template.dev_noticed++), |
sd_template | 1228 | drivers/scsi/sd.c | if(sd_template.nr_dev >= sd_template.dev_max) { |
sd_template | 1233 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
sd_template | 1236 | drivers/scsi/sd.c | if(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)"); |
sd_template | 1241 | drivers/scsi/sd.c | sd_template.nr_dev++; |
sd_template | 1316 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
sd_template | 1338 | drivers/scsi/sd.c | sd_template.dev_noticed--; |
sd_template | 1339 | drivers/scsi/sd.c | sd_template.nr_dev--; |
sd_template | 1353 | drivers/scsi/sd.c | sd_template.usage_count = &mod_use_count_; |
sd_template | 1354 | drivers/scsi/sd.c | return scsi_register_module(MODULE_SCSI_DEV, &sd_template); |
sd_template | 1366 | drivers/scsi/sd.c | scsi_unregister_module(MODULE_SCSI_DEV, &sd_template); |
sd_template | 1371 | drivers/scsi/sd.c | (sd_template.dev_noticed + SD_EXTRA_DEVS) |
sd_template | 1374 | drivers/scsi/sd.c | scsi_init_free((char *) sd_sizes, sd_template.dev_max * sizeof(int)); |
sd_template | 1375 | drivers/scsi/sd.c | scsi_init_free((char *) sd_blocksizes, sd_template.dev_max * sizeof(int)); |
sd_template | 1376 | drivers/scsi/sd.c | scsi_init_free((char *) sd_hardsizes, sd_template.dev_max * sizeof(int)); |
sd_template | 1378 | drivers/scsi/sd.c | (sd_template.dev_max << 4) * sizeof(struct hd_struct)); |
sd_template | 1405 | drivers/scsi/sd.c | sd_template.dev_max = 0; |