taglinefilesource code
st_template466drivers/scsi/hosts.cscsi_register_device(&st_template);
st_template359drivers/scsi/hosts.hextern struct Scsi_Device_Template st_template;
st_template103drivers/scsi/st.cstruct Scsi_Device_Template st_template = {NULL, "tape", "st", NULL, TYPE_TAPE, 
st_template201drivers/scsi/st.cif ((st_nbr = TAPE_NR(SCpnt->request.rq_dev)) < st_template.nr_dev) {
st_template516drivers/scsi/st.cif (dev >= st_template.dev_max || !scsi_tapes[dev].device)
st_template624drivers/scsi/st.cif(st_template.usage_count) (*st_template.usage_count)++;
st_template769drivers/scsi/st.cif(st_template.usage_count) (*st_template.usage_count)++;
st_template862drivers/scsi/st.cif(st_template.usage_count) (*st_template.usage_count)--;
st_template2693drivers/scsi/st.cif (st_nbr_buffers >= st_template.dev_max)
st_template2828drivers/scsi/st.cif(st_template.nr_dev >= st_template.dev_max) 
st_template2834drivers/scsi/st.cfor(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) 
st_template2837drivers/scsi/st.cif(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)");
st_template2893drivers/scsi/st.cst_template.nr_dev++;
st_template2903drivers/scsi/st.cst_template.dev_noticed++,
st_template2920drivers/scsi/st.cif (st_template.dev_noticed == 0) return 0;
st_template2931drivers/scsi/st.cst_template.dev_max = st_template.dev_noticed + ST_EXTRA_DEVS;
st_template2932drivers/scsi/st.cif (st_template.dev_max < ST_MAX_TAPES)
st_template2933drivers/scsi/st.cst_template.dev_max = ST_MAX_TAPES;
st_template2934drivers/scsi/st.cif (st_template.dev_max > 128 / ST_NBR_MODES)
st_template2937drivers/scsi/st.c(Scsi_Tape *) scsi_init_malloc(st_template.dev_max * sizeof(Scsi_Tape),
st_template2950drivers/scsi/st.cmemset(scsi_tapes, 0, st_template.dev_max * sizeof(Scsi_Tape));
st_template2951drivers/scsi/st.cfor (i=0; i < st_template.dev_max; ++i) {
st_template2962drivers/scsi/st.c(ST_buffer **) scsi_init_malloc(st_template.dev_max * sizeof(ST_buffer *),
st_template2968drivers/scsi/st.cst_template.dev_max * sizeof(Scsi_Tape));
st_template2975drivers/scsi/st.ctarget_nbr = st_template.dev_noticed;
st_template2988drivers/scsi/st.cst_template.dev_max * sizeof(ST_buffer *));
st_template2990drivers/scsi/st.cst_template.dev_max * sizeof(Scsi_Tape));
st_template3010drivers/scsi/st.cfor(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) 
st_template3014drivers/scsi/st.cst_template.nr_dev--;
st_template3015drivers/scsi/st.cst_template.dev_noticed--;
st_template3025drivers/scsi/st.cst_template.usage_count = &mod_use_count_;
st_template3026drivers/scsi/st.creturn scsi_register_module(MODULE_SCSI_DEV, &st_template);
st_template3033drivers/scsi/st.cscsi_unregister_module(MODULE_SCSI_DEV, &st_template);
st_template3038drivers/scsi/st.cst_template.dev_max * sizeof(Scsi_Tape));
st_template3049drivers/scsi/st.cst_template.dev_max * sizeof(ST_buffer *));
st_template3052drivers/scsi/st.cst_template.dev_max = 0;