tag | line | file | source code |
sr_template | 390 | drivers/scsi/hosts.c | scsi_register_device(&sr_template); |
sr_template | 364 | 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 | 521 | drivers/scsi/sr.c | if(MINOR(inode->i_rdev) >= sr_template.nr_dev || |
sr_template | 533 | drivers/scsi/sr.c | if(sr_template.usage_count) (*sr_template.usage_count)++; |
sr_template | 608 | drivers/scsi/sr.c | if (!SCpnt && sr_template.nr_dev > 1){ |
sr_template | 659 | drivers/scsi/sr.c | if (dev >= sr_template.nr_dev) { |
sr_template | 931 | drivers/scsi/sr.c | sr_template.dev_noticed++, |
sr_template | 943 | drivers/scsi/sr.c | if (sr_template.nr_dev >= sr_template.dev_max) |
sr_template | 949 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
sr_template | 952 | drivers/scsi/sr.c | if(i >= sr_template.dev_max) panic ("scsi_devices corrupt (sr)"); |
sr_template | 956 | drivers/scsi/sr.c | sr_template.nr_dev++; |
sr_template | 957 | drivers/scsi/sr.c | if(sr_template.nr_dev > sr_template.dev_max) |
sr_template | 1047 | drivers/scsi/sr.c | if(sr_template.dev_noticed == 0) return 0; |
sr_template | 1059 | drivers/scsi/sr.c | sr_template.dev_max = sr_template.dev_noticed + SR_EXTRA_DEVS; |
sr_template | 1060 | drivers/scsi/sr.c | scsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD), GFP_ATOMIC); |
sr_template | 1061 | drivers/scsi/sr.c | memset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD)); |
sr_template | 1063 | drivers/scsi/sr.c | sr_sizes = (int *) scsi_init_malloc(sr_template.dev_max * sizeof(int), GFP_ATOMIC); |
sr_template | 1064 | drivers/scsi/sr.c | memset(sr_sizes, 0, sr_template.dev_max * sizeof(int)); |
sr_template | 1066 | drivers/scsi/sr.c | sr_blocksizes = (int *) scsi_init_malloc(sr_template.dev_max * |
sr_template | 1068 | drivers/scsi/sr.c | for(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048; |
sr_template | 1080 | drivers/scsi/sr.c | for (i = 0; i < sr_template.nr_dev; ++i) |
sr_template | 1117 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
sr_template | 1135 | drivers/scsi/sr.c | sr_template.nr_dev--; |
sr_template | 1136 | drivers/scsi/sr.c | sr_template.dev_noticed--; |
sr_template | 1147 | drivers/scsi/sr.c | sr_template.usage_count = &mod_use_count_; |
sr_template | 1148 | drivers/scsi/sr.c | return scsi_register_module(MODULE_SCSI_DEV, &sr_template); |
sr_template | 1157 | drivers/scsi/sr.c | scsi_unregister_module(MODULE_SCSI_DEV, &sr_template); |
sr_template | 1162 | drivers/scsi/sr.c | (sr_template.dev_noticed + SR_EXTRA_DEVS) |
sr_template | 1165 | drivers/scsi/sr.c | scsi_init_free((char *) sr_sizes, sr_template.dev_max * sizeof(int)); |
sr_template | 1166 | drivers/scsi/sr.c | scsi_init_free((char *) sr_blocksizes, sr_template.dev_max * sizeof(int)); |
sr_template | 1174 | drivers/scsi/sr.c | sr_template.dev_max = 0; |
sr_template | 96 | drivers/scsi/sr_ioctl.c | if (target >= sr_template.nr_dev || |