tag | line | file | source code |
sg_template | 397 | drivers/scsi/hosts.c | scsi_register_device(&sg_template); |
sg_template | 375 | drivers/scsi/hosts.h | extern struct Scsi_Device_Template sg_template; |
sg_template | 40 | drivers/scsi/sg.c | struct Scsi_Device_Template sg_template = {NULL, NULL, "sg", NULL, 0xff, |
sg_template | 75 | drivers/scsi/sg.c | if ((dev<0) || (dev>=sg_template.dev_max)) |
sg_template | 96 | drivers/scsi/sg.c | if (dev>=sg_template.dev_max || !scsi_generics[dev].device) |
sg_template | 149 | drivers/scsi/sg.c | if(sg_template.usage_count) (*sg_template.usage_count)++; |
sg_template | 160 | drivers/scsi/sg.c | if(sg_template.usage_count) (*sg_template.usage_count)--; |
sg_template | 505 | drivers/scsi/sg.c | ++sg_template.dev_noticed; |
sg_template | 514 | drivers/scsi/sg.c | if (sg_template.dev_noticed == 0) return 0; |
sg_template | 538 | drivers/scsi/sg.c | scsi_init_malloc((sg_template.dev_noticed + SG_EXTRA_DEVS) |
sg_template | 540 | drivers/scsi/sg.c | memset(scsi_generics, 0, (sg_template.dev_noticed + SG_EXTRA_DEVS) |
sg_template | 543 | drivers/scsi/sg.c | sg_template.dev_max = sg_template.dev_noticed + SG_EXTRA_DEVS; |
sg_template | 552 | drivers/scsi/sg.c | if(sg_template.nr_dev >= sg_template.dev_max) |
sg_template | 558 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
sg_template | 561 | drivers/scsi/sg.c | if(i >= sg_template.dev_max) panic ("scsi_devices corrupt (sg)"); |
sg_template | 572 | drivers/scsi/sg.c | sg_template.nr_dev++; |
sg_template | 583 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
sg_template | 587 | drivers/scsi/sg.c | sg_template.nr_dev--; |
sg_template | 597 | drivers/scsi/sg.c | sg_template.usage_count = &mod_use_count_; |
sg_template | 598 | drivers/scsi/sg.c | return scsi_register_module(MODULE_SCSI_DEV, &sg_template); |
sg_template | 607 | drivers/scsi/sg.c | scsi_unregister_module(MODULE_SCSI_DEV, &sg_template); |
sg_template | 612 | drivers/scsi/sg.c | (sg_template.dev_noticed + SG_EXTRA_DEVS) |
sg_template | 615 | drivers/scsi/sg.c | sg_template.dev_max = 0; |