tag | line | file | source code |
st_template | 401 | drivers/scsi/hosts.c | scsi_register_device(&st_template); |
st_template | 371 | drivers/scsi/hosts.h | extern struct Scsi_Device_Template st_template; |
st_template | 91 | drivers/scsi/st.c | struct Scsi_Device_Template st_template = {NULL, "tape", "st", NULL, TYPE_TAPE, |
st_template | 180 | drivers/scsi/st.c | if ((st_nbr = TAPE_NR(SCpnt->request.rq_dev)) < st_template.nr_dev) { |
st_template | 449 | drivers/scsi/st.c | if (dev >= st_template.dev_max || !scsi_tapes[dev].device) |
st_template | 527 | drivers/scsi/st.c | if(st_template.usage_count) (*st_template.usage_count)++; |
st_template | 634 | drivers/scsi/st.c | if(st_template.usage_count) (*st_template.usage_count)++; |
st_template | 720 | drivers/scsi/st.c | if(st_template.usage_count) (*st_template.usage_count)--; |
st_template | 1942 | drivers/scsi/st.c | if (st_nbr_buffers >= st_template.dev_max) |
st_template | 2066 | drivers/scsi/st.c | if(st_template.nr_dev >= st_template.dev_max) |
st_template | 2072 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
st_template | 2075 | drivers/scsi/st.c | if(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)"); |
st_template | 2102 | drivers/scsi/st.c | st_template.nr_dev++; |
st_template | 2111 | drivers/scsi/st.c | st_template.dev_noticed++, |
st_template | 2128 | drivers/scsi/st.c | if (st_template.dev_noticed == 0) return 0; |
st_template | 2139 | drivers/scsi/st.c | st_template.dev_max = st_template.dev_noticed + ST_EXTRA_DEVS; |
st_template | 2140 | drivers/scsi/st.c | if (st_template.dev_max < ST_MAX_TAPES) |
st_template | 2141 | drivers/scsi/st.c | st_template.dev_max = ST_MAX_TAPES; |
st_template | 2143 | drivers/scsi/st.c | (Scsi_Tape *) scsi_init_malloc(st_template.dev_max * sizeof(Scsi_Tape), |
st_template | 2156 | drivers/scsi/st.c | for (i=0; i < st_template.dev_max; ++i) { |
st_template | 2185 | drivers/scsi/st.c | (ST_buffer **) scsi_init_malloc(st_template.dev_max * sizeof(ST_buffer *), |
st_template | 2191 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
st_template | 2198 | drivers/scsi/st.c | target_nbr = st_template.dev_noticed; |
st_template | 2210 | drivers/scsi/st.c | st_template.dev_max * sizeof(ST_buffer *)); |
st_template | 2212 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
st_template | 2228 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
st_template | 2232 | drivers/scsi/st.c | st_template.nr_dev--; |
st_template | 2233 | drivers/scsi/st.c | st_template.dev_noticed--; |
st_template | 2243 | drivers/scsi/st.c | st_template.usage_count = &mod_use_count_; |
st_template | 2244 | drivers/scsi/st.c | return scsi_register_module(MODULE_SCSI_DEV, &st_template); |
st_template | 2251 | drivers/scsi/st.c | scsi_unregister_module(MODULE_SCSI_DEV, &st_template); |
st_template | 2256 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
st_template | 2267 | drivers/scsi/st.c | st_template.dev_max * sizeof(ST_buffer *)); |
st_template | 2270 | drivers/scsi/st.c | st_template.dev_max = 0; |