tag | line | file | source code |
st_template | 400 | drivers/scsi/hosts.c | scsi_register_device(&st_template); |
st_template | 363 | drivers/scsi/hosts.h | extern struct Scsi_Device_Template st_template; |
st_template | 96 | drivers/scsi/st.c | struct Scsi_Device_Template st_template = {NULL, "tape", "st", NULL, TYPE_TAPE, |
st_template | 188 | drivers/scsi/st.c | if ((st_nbr = TAPE_NR(SCpnt->request.rq_dev)) < st_template.nr_dev) { |
st_template | 457 | drivers/scsi/st.c | if (dev >= st_template.dev_max || !scsi_tapes[dev].device) |
st_template | 538 | drivers/scsi/st.c | if(st_template.usage_count) (*st_template.usage_count)++; |
st_template | 646 | drivers/scsi/st.c | if(st_template.usage_count) (*st_template.usage_count)++; |
st_template | 731 | drivers/scsi/st.c | if(st_template.usage_count) (*st_template.usage_count)--; |
st_template | 1967 | drivers/scsi/st.c | if (st_nbr_buffers >= st_template.dev_max) |
st_template | 2093 | drivers/scsi/st.c | if(st_template.nr_dev >= st_template.dev_max) |
st_template | 2099 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
st_template | 2102 | drivers/scsi/st.c | if(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)"); |
st_template | 2129 | drivers/scsi/st.c | st_template.nr_dev++; |
st_template | 2138 | drivers/scsi/st.c | st_template.dev_noticed++, |
st_template | 2155 | drivers/scsi/st.c | if (st_template.dev_noticed == 0) return 0; |
st_template | 2166 | drivers/scsi/st.c | st_template.dev_max = st_template.dev_noticed + ST_EXTRA_DEVS; |
st_template | 2167 | drivers/scsi/st.c | if (st_template.dev_max < ST_MAX_TAPES) |
st_template | 2168 | drivers/scsi/st.c | st_template.dev_max = ST_MAX_TAPES; |
st_template | 2170 | drivers/scsi/st.c | (Scsi_Tape *) scsi_init_malloc(st_template.dev_max * sizeof(Scsi_Tape), |
st_template | 2183 | drivers/scsi/st.c | for (i=0; i < st_template.dev_max; ++i) { |
st_template | 2212 | drivers/scsi/st.c | (ST_buffer **) scsi_init_malloc(st_template.dev_max * sizeof(ST_buffer *), |
st_template | 2218 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
st_template | 2225 | drivers/scsi/st.c | target_nbr = st_template.dev_noticed; |
st_template | 2237 | drivers/scsi/st.c | st_template.dev_max * sizeof(ST_buffer *)); |
st_template | 2239 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
st_template | 2255 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
st_template | 2259 | drivers/scsi/st.c | st_template.nr_dev--; |
st_template | 2260 | drivers/scsi/st.c | st_template.dev_noticed--; |
st_template | 2270 | drivers/scsi/st.c | st_template.usage_count = &mod_use_count_; |
st_template | 2271 | drivers/scsi/st.c | return scsi_register_module(MODULE_SCSI_DEV, &st_template); |
st_template | 2278 | drivers/scsi/st.c | scsi_unregister_module(MODULE_SCSI_DEV, &st_template); |
st_template | 2283 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
st_template | 2294 | drivers/scsi/st.c | st_template.dev_max * sizeof(ST_buffer *)); |
st_template | 2297 | drivers/scsi/st.c | st_template.dev_max = 0; |