tag | line | file | source code |
sd_template | 401 | drivers/scsi/hosts.c | scsi_register_device(&sd_template); |
sd_template | 362 | drivers/scsi/hosts.h | extern struct Scsi_Device_Template sd_template; |
sd_template | 87 | drivers/scsi/sd.c | struct Scsi_Device_Template sd_template = |
sd_template | 99 | drivers/scsi/sd.c | if(target >= sd_template.dev_max || !rscsi_disks[target].device) |
sd_template | 143 | drivers/scsi/sd.c | if(sd_template.usage_count) (*sd_template.usage_count)++; |
sd_template | 157 | drivers/scsi/sd.c | if(sd_template.usage_count) (*sd_template.usage_count)--; |
sd_template | 201 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
sd_template | 206 | drivers/scsi/sd.c | sd_gendisk.nr_real = sd_template.dev_max; |
sd_template | 479 | drivers/scsi/sd.c | if (!SCpnt && sd_template.nr_dev > 1){ |
sd_template | 532 | drivers/scsi/sd.c | if (devm >= (sd_template.dev_max << 4) || |
sd_template | 905 | drivers/scsi/sd.c | if (target >= sd_template.dev_max || |
sd_template | 1154 | drivers/scsi/sd.c | sd_template.nr_dev--; |
sd_template | 1247 | drivers/scsi/sd.c | if (sd_template.dev_noticed == 0) return 0; |
sd_template | 1260 | drivers/scsi/sd.c | sd_template.dev_max = sd_template.dev_noticed + SD_EXTRA_DEVS; |
sd_template | 1263 | drivers/scsi/sd.c | scsi_init_malloc(sd_template.dev_max * sizeof(Scsi_Disk), GFP_ATOMIC); |
sd_template | 1264 | drivers/scsi/sd.c | memset(rscsi_disks, 0, sd_template.dev_max * sizeof(Scsi_Disk)); |
sd_template | 1266 | drivers/scsi/sd.c | sd_sizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
sd_template | 1268 | drivers/scsi/sd.c | memset(sd_sizes, 0, (sd_template.dev_max << 4) * sizeof(int)); |
sd_template | 1270 | drivers/scsi/sd.c | sd_blocksizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
sd_template | 1273 | drivers/scsi/sd.c | sd_hardsizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
sd_template | 1276 | drivers/scsi/sd.c | for(i=0;i<(sd_template.dev_max << 4);i++){ |
sd_template | 1282 | drivers/scsi/sd.c | sd = (struct hd_struct *) scsi_init_malloc((sd_template.dev_max << 4) * |
sd_template | 1287 | drivers/scsi/sd.c | sd_gendisk.max_nr = sd_template.dev_max; |
sd_template | 1303 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
sd_template | 1334 | drivers/scsi/sd.c | 'a'+ (sd_template.dev_noticed++), |
sd_template | 1346 | drivers/scsi/sd.c | if(sd_template.nr_dev >= sd_template.dev_max) { |
sd_template | 1351 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
sd_template | 1354 | drivers/scsi/sd.c | if(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)"); |
sd_template | 1359 | drivers/scsi/sd.c | sd_template.nr_dev++; |
sd_template | 1439 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
sd_template | 1462 | drivers/scsi/sd.c | sd_template.dev_noticed--; |
sd_template | 1463 | drivers/scsi/sd.c | sd_template.nr_dev--; |
sd_template | 1473 | drivers/scsi/sd.c | sd_template.usage_count = &mod_use_count_; |
sd_template | 1474 | drivers/scsi/sd.c | return scsi_register_module(MODULE_SCSI_DEV, &sd_template); |
sd_template | 1482 | drivers/scsi/sd.c | scsi_unregister_module(MODULE_SCSI_DEV, &sd_template); |
sd_template | 1488 | drivers/scsi/sd.c | (sd_template.dev_noticed + SD_EXTRA_DEVS) |
sd_template | 1491 | drivers/scsi/sd.c | scsi_init_free((char *) sd_sizes, sd_template.dev_max * sizeof(int)); |
sd_template | 1492 | drivers/scsi/sd.c | scsi_init_free((char *) sd_blocksizes, sd_template.dev_max * sizeof(int)); |
sd_template | 1493 | drivers/scsi/sd.c | scsi_init_free((char *) sd_hardsizes, sd_template.dev_max * sizeof(int)); |
sd_template | 1495 | drivers/scsi/sd.c | (sd_template.dev_max << 4) * sizeof(struct hd_struct)); |
sd_template | 1522 | drivers/scsi/sd.c | sd_template.dev_max = 0; |