tag | line | file | source code |
sg_template | 469 | drivers/scsi/hosts.c | scsi_register_device(&sg_template); |
sg_template | 361 | drivers/scsi/hosts.h | extern struct Scsi_Device_Template sg_template; |
sg_template | 36 | drivers/scsi/sg.c | struct Scsi_Device_Template sg_template = {NULL, NULL, "sg", NULL, 0xff, |
sg_template | 71 | drivers/scsi/sg.c | if ((dev<0) || (dev>=sg_template.dev_max)) |
sg_template | 92 | drivers/scsi/sg.c | if (dev>=sg_template.dev_max || !scsi_generics[dev].device) |
sg_template | 145 | drivers/scsi/sg.c | if(sg_template.usage_count) (*sg_template.usage_count)++; |
sg_template | 156 | drivers/scsi/sg.c | if(sg_template.usage_count) (*sg_template.usage_count)--; |
sg_template | 510 | drivers/scsi/sg.c | 'a'+sg_template.dev_noticed, |
sg_template | 513 | drivers/scsi/sg.c | sg_template.dev_noticed++; |
sg_template | 522 | drivers/scsi/sg.c | if (sg_template.dev_noticed == 0) return 0; |
sg_template | 546 | drivers/scsi/sg.c | scsi_init_malloc((sg_template.dev_noticed + SG_EXTRA_DEVS) |
sg_template | 548 | drivers/scsi/sg.c | memset(scsi_generics, 0, (sg_template.dev_noticed + SG_EXTRA_DEVS) |
sg_template | 551 | drivers/scsi/sg.c | sg_template.dev_max = sg_template.dev_noticed + SG_EXTRA_DEVS; |
sg_template | 560 | drivers/scsi/sg.c | if(sg_template.nr_dev >= sg_template.dev_max) |
sg_template | 566 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
sg_template | 569 | drivers/scsi/sg.c | if(i >= sg_template.dev_max) panic ("scsi_devices corrupt (sg)"); |
sg_template | 580 | drivers/scsi/sg.c | sg_template.nr_dev++; |
sg_template | 591 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
sg_template | 595 | drivers/scsi/sg.c | sg_template.nr_dev--; |
sg_template | 604 | drivers/scsi/sg.c | sg_template.usage_count = &mod_use_count_; |
sg_template | 605 | drivers/scsi/sg.c | return scsi_register_module(MODULE_SCSI_DEV, &sg_template); |
sg_template | 610 | drivers/scsi/sg.c | scsi_unregister_module(MODULE_SCSI_DEV, &sg_template); |
sg_template | 615 | drivers/scsi/sg.c | (sg_template.dev_noticed + SG_EXTRA_DEVS) |
sg_template | 618 | drivers/scsi/sg.c | sg_template.dev_max = 0; |