taglinefilesource code
st_template401drivers/scsi/hosts.cscsi_register_device(&st_template);
st_template371drivers/scsi/hosts.hextern struct Scsi_Device_Template st_template;
st_template91drivers/scsi/st.cstruct Scsi_Device_Template st_template = {NULL, "tape", "st", NULL, TYPE_TAPE, 
st_template180drivers/scsi/st.cif ((st_nbr = TAPE_NR(SCpnt->request.rq_dev)) < st_template.nr_dev) {
st_template449drivers/scsi/st.cif (dev >= st_template.dev_max || !scsi_tapes[dev].device)
st_template527drivers/scsi/st.cif(st_template.usage_count) (*st_template.usage_count)++;
st_template634drivers/scsi/st.cif(st_template.usage_count) (*st_template.usage_count)++;
st_template720drivers/scsi/st.cif(st_template.usage_count) (*st_template.usage_count)--;
st_template1942drivers/scsi/st.cif (st_nbr_buffers >= st_template.dev_max)
st_template2066drivers/scsi/st.cif(st_template.nr_dev >= st_template.dev_max) 
st_template2072drivers/scsi/st.cfor(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) 
st_template2075drivers/scsi/st.cif(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)");
st_template2102drivers/scsi/st.cst_template.nr_dev++;
st_template2111drivers/scsi/st.cst_template.dev_noticed++,
st_template2128drivers/scsi/st.cif (st_template.dev_noticed == 0) return 0;
st_template2139drivers/scsi/st.cst_template.dev_max = st_template.dev_noticed + ST_EXTRA_DEVS;
st_template2140drivers/scsi/st.cif (st_template.dev_max < ST_MAX_TAPES)
st_template2141drivers/scsi/st.cst_template.dev_max = ST_MAX_TAPES;
st_template2143drivers/scsi/st.c(Scsi_Tape *) scsi_init_malloc(st_template.dev_max * sizeof(Scsi_Tape),
st_template2156drivers/scsi/st.cfor (i=0; i < st_template.dev_max; ++i) {
st_template2185drivers/scsi/st.c(ST_buffer **) scsi_init_malloc(st_template.dev_max * sizeof(ST_buffer *),
st_template2191drivers/scsi/st.cst_template.dev_max * sizeof(Scsi_Tape));
st_template2198drivers/scsi/st.ctarget_nbr = st_template.dev_noticed;
st_template2210drivers/scsi/st.cst_template.dev_max * sizeof(ST_buffer *));
st_template2212drivers/scsi/st.cst_template.dev_max * sizeof(Scsi_Tape));
st_template2228drivers/scsi/st.cfor(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) 
st_template2232drivers/scsi/st.cst_template.nr_dev--;
st_template2233drivers/scsi/st.cst_template.dev_noticed--;
st_template2243drivers/scsi/st.cst_template.usage_count = &mod_use_count_;
st_template2244drivers/scsi/st.creturn scsi_register_module(MODULE_SCSI_DEV, &st_template);
st_template2251drivers/scsi/st.cscsi_unregister_module(MODULE_SCSI_DEV, &st_template);
st_template2256drivers/scsi/st.cst_template.dev_max * sizeof(Scsi_Tape));
st_template2267drivers/scsi/st.cst_template.dev_max * sizeof(ST_buffer *));
st_template2270drivers/scsi/st.cst_template.dev_max = 0;