tag | line | file | source code |
sr_template | 463 | drivers/scsi/hosts.c | scsi_register_device(&sr_template); |
sr_template | 360 | 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 | 80 | drivers/scsi/sr.c | if(sr_template.usage_count) (*sr_template.usage_count)--; |
sr_template | 117 | drivers/scsi/sr.c | if (target >= sr_template.nr_dev) { |
sr_template | 525 | drivers/scsi/sr.c | if(MINOR(inode->i_rdev) >= sr_template.nr_dev || |
sr_template | 537 | drivers/scsi/sr.c | if(sr_template.usage_count) (*sr_template.usage_count)++; |
sr_template | 612 | drivers/scsi/sr.c | if (!SCpnt && sr_template.nr_dev > 1){ |
sr_template | 663 | drivers/scsi/sr.c | if (dev >= sr_template.nr_dev) { |
sr_template | 935 | drivers/scsi/sr.c | sr_template.dev_noticed++, |
sr_template | 947 | drivers/scsi/sr.c | if (sr_template.nr_dev >= sr_template.dev_max) |
sr_template | 953 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
sr_template | 956 | drivers/scsi/sr.c | if(i >= sr_template.dev_max) panic ("scsi_devices corrupt (sr)"); |
sr_template | 960 | drivers/scsi/sr.c | sr_template.nr_dev++; |
sr_template | 961 | drivers/scsi/sr.c | if(sr_template.nr_dev > sr_template.dev_max) |
sr_template | 1062 | drivers/scsi/sr.c | if(sr_template.dev_noticed == 0) return 0; |
sr_template | 1074 | drivers/scsi/sr.c | sr_template.dev_max = sr_template.dev_noticed + SR_EXTRA_DEVS; |
sr_template | 1075 | drivers/scsi/sr.c | scsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD), GFP_ATOMIC); |
sr_template | 1076 | drivers/scsi/sr.c | memset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD)); |
sr_template | 1078 | drivers/scsi/sr.c | sr_sizes = (int *) scsi_init_malloc(sr_template.dev_max * sizeof(int), GFP_ATOMIC); |
sr_template | 1079 | drivers/scsi/sr.c | memset(sr_sizes, 0, sr_template.dev_max * sizeof(int)); |
sr_template | 1081 | drivers/scsi/sr.c | sr_blocksizes = (int *) scsi_init_malloc(sr_template.dev_max * |
sr_template | 1083 | drivers/scsi/sr.c | for(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048; |
sr_template | 1095 | drivers/scsi/sr.c | for (i = 0; i < sr_template.nr_dev; ++i) |
sr_template | 1132 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
sr_template | 1150 | drivers/scsi/sr.c | sr_template.nr_dev--; |
sr_template | 1151 | drivers/scsi/sr.c | sr_template.dev_noticed--; |
sr_template | 1162 | drivers/scsi/sr.c | sr_template.usage_count = &mod_use_count_; |
sr_template | 1163 | drivers/scsi/sr.c | return scsi_register_module(MODULE_SCSI_DEV, &sr_template); |
sr_template | 1168 | drivers/scsi/sr.c | scsi_unregister_module(MODULE_SCSI_DEV, &sr_template); |
sr_template | 1173 | drivers/scsi/sr.c | (sr_template.dev_noticed + SR_EXTRA_DEVS) |
sr_template | 1176 | drivers/scsi/sr.c | scsi_init_free((char *) sr_sizes, sr_template.dev_max * sizeof(int)); |
sr_template | 1177 | drivers/scsi/sr.c | scsi_init_free((char *) sr_blocksizes, sr_template.dev_max * sizeof(int)); |
sr_template | 1185 | drivers/scsi/sr.c | sr_template.dev_max = 0; |
sr_template | 100 | drivers/scsi/sr_ioctl.c | if (target >= sr_template.nr_dev || |