tag | line | file | source code |
st_template | 466 | drivers/scsi/hosts.c | scsi_register_device(&st_template); |
st_template | 359 | drivers/scsi/hosts.h | extern struct Scsi_Device_Template st_template; |
st_template | 103 | drivers/scsi/st.c | struct Scsi_Device_Template st_template = {NULL, "tape", "st", NULL, TYPE_TAPE, |
st_template | 201 | drivers/scsi/st.c | if ((st_nbr = TAPE_NR(SCpnt->request.rq_dev)) < st_template.nr_dev) { |
st_template | 516 | drivers/scsi/st.c | if (dev >= st_template.dev_max || !scsi_tapes[dev].device) |
st_template | 624 | drivers/scsi/st.c | if(st_template.usage_count) (*st_template.usage_count)++; |
st_template | 769 | drivers/scsi/st.c | if(st_template.usage_count) (*st_template.usage_count)++; |
st_template | 862 | drivers/scsi/st.c | if(st_template.usage_count) (*st_template.usage_count)--; |
st_template | 2693 | drivers/scsi/st.c | if (st_nbr_buffers >= st_template.dev_max) |
st_template | 2828 | drivers/scsi/st.c | if(st_template.nr_dev >= st_template.dev_max) |
st_template | 2834 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
st_template | 2837 | drivers/scsi/st.c | if(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)"); |
st_template | 2893 | drivers/scsi/st.c | st_template.nr_dev++; |
st_template | 2903 | drivers/scsi/st.c | st_template.dev_noticed++, |
st_template | 2920 | drivers/scsi/st.c | if (st_template.dev_noticed == 0) return 0; |
st_template | 2931 | drivers/scsi/st.c | st_template.dev_max = st_template.dev_noticed + ST_EXTRA_DEVS; |
st_template | 2932 | drivers/scsi/st.c | if (st_template.dev_max < ST_MAX_TAPES) |
st_template | 2933 | drivers/scsi/st.c | st_template.dev_max = ST_MAX_TAPES; |
st_template | 2934 | drivers/scsi/st.c | if (st_template.dev_max > 128 / ST_NBR_MODES) |
st_template | 2937 | drivers/scsi/st.c | (Scsi_Tape *) scsi_init_malloc(st_template.dev_max * sizeof(Scsi_Tape), |
st_template | 2950 | drivers/scsi/st.c | memset(scsi_tapes, 0, st_template.dev_max * sizeof(Scsi_Tape)); |
st_template | 2951 | drivers/scsi/st.c | for (i=0; i < st_template.dev_max; ++i) { |
st_template | 2962 | drivers/scsi/st.c | (ST_buffer **) scsi_init_malloc(st_template.dev_max * sizeof(ST_buffer *), |
st_template | 2968 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
st_template | 2975 | drivers/scsi/st.c | target_nbr = st_template.dev_noticed; |
st_template | 2988 | drivers/scsi/st.c | st_template.dev_max * sizeof(ST_buffer *)); |
st_template | 2990 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
st_template | 3010 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
st_template | 3014 | drivers/scsi/st.c | st_template.nr_dev--; |
st_template | 3015 | drivers/scsi/st.c | st_template.dev_noticed--; |
st_template | 3025 | drivers/scsi/st.c | st_template.usage_count = &mod_use_count_; |
st_template | 3026 | drivers/scsi/st.c | return scsi_register_module(MODULE_SCSI_DEV, &st_template); |
st_template | 3033 | drivers/scsi/st.c | scsi_unregister_module(MODULE_SCSI_DEV, &st_template); |
st_template | 3038 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
st_template | 3049 | drivers/scsi/st.c | st_template.dev_max * sizeof(ST_buffer *)); |
st_template | 3052 | drivers/scsi/st.c | st_template.dev_max = 0; |