tag | line | file | source code |
sr_template | 398 | drivers/scsi/hosts.c | scsi_register_device(&sr_template); |
sr_template | 372 | drivers/scsi/hosts.h | extern struct Scsi_Device_Template sr_template; |
sr_template | 50 | drivers/scsi/sr.c | struct Scsi_Device_Template sr_template = {NULL, "cdrom", "sr", NULL, TYPE_ROM, |
sr_template | 79 | drivers/scsi/sr.c | if(sr_template.usage_count) (*sr_template.usage_count)--; |
sr_template | 116 | drivers/scsi/sr.c | if (target >= sr_template.nr_dev) { |
sr_template | 516 | drivers/scsi/sr.c | if(MINOR(inode->i_rdev) >= sr_template.nr_dev || |
sr_template | 528 | drivers/scsi/sr.c | if(sr_template.usage_count) (*sr_template.usage_count)++; |
sr_template | 603 | drivers/scsi/sr.c | if (!SCpnt && sr_template.nr_dev > 1){ |
sr_template | 654 | drivers/scsi/sr.c | if (dev >= sr_template.nr_dev) { |
sr_template | 926 | drivers/scsi/sr.c | sr_template.dev_noticed++, |
sr_template | 938 | drivers/scsi/sr.c | if (sr_template.nr_dev >= sr_template.dev_max) |
sr_template | 944 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
sr_template | 947 | drivers/scsi/sr.c | if(i >= sr_template.dev_max) panic ("scsi_devices corrupt (sr)"); |
sr_template | 951 | drivers/scsi/sr.c | sr_template.nr_dev++; |
sr_template | 952 | drivers/scsi/sr.c | if(sr_template.nr_dev > sr_template.dev_max) |
sr_template | 1040 | drivers/scsi/sr.c | if(sr_template.dev_noticed == 0) return 0; |
sr_template | 1052 | drivers/scsi/sr.c | sr_template.dev_max = sr_template.dev_noticed + SR_EXTRA_DEVS; |
sr_template | 1053 | drivers/scsi/sr.c | scsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD), GFP_ATOMIC); |
sr_template | 1054 | drivers/scsi/sr.c | memset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD)); |
sr_template | 1056 | drivers/scsi/sr.c | sr_sizes = (int *) scsi_init_malloc(sr_template.dev_max * sizeof(int), GFP_ATOMIC); |
sr_template | 1057 | drivers/scsi/sr.c | memset(sr_sizes, 0, sr_template.dev_max * sizeof(int)); |
sr_template | 1059 | drivers/scsi/sr.c | sr_blocksizes = (int *) scsi_init_malloc(sr_template.dev_max * |
sr_template | 1061 | drivers/scsi/sr.c | for(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048; |
sr_template | 1073 | drivers/scsi/sr.c | for (i = 0; i < sr_template.nr_dev; ++i) |
sr_template | 1110 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
sr_template | 1128 | drivers/scsi/sr.c | sr_template.nr_dev--; |
sr_template | 1129 | drivers/scsi/sr.c | sr_template.dev_noticed--; |
sr_template | 1140 | drivers/scsi/sr.c | sr_template.usage_count = &mod_use_count_; |
sr_template | 1141 | drivers/scsi/sr.c | return scsi_register_module(MODULE_SCSI_DEV, &sr_template); |
sr_template | 1150 | drivers/scsi/sr.c | scsi_unregister_module(MODULE_SCSI_DEV, &sr_template); |
sr_template | 1155 | drivers/scsi/sr.c | (sr_template.dev_noticed + SR_EXTRA_DEVS) |
sr_template | 1158 | drivers/scsi/sr.c | scsi_init_free((char *) sr_sizes, sr_template.dev_max * sizeof(int)); |
sr_template | 1159 | drivers/scsi/sr.c | scsi_init_free((char *) sr_blocksizes, sr_template.dev_max * sizeof(int)); |
sr_template | 1167 | drivers/scsi/sr.c | sr_template.dev_max = 0; |
sr_template | 102 | drivers/scsi/sr_ioctl.c | if (target >= sr_template.nr_dev || |