tag | line | file | source code |
dev_max | 360 | drivers/scsi/hosts.h | unsigned char dev_max; /* Current size of arrays */ |
dev_max | 99 | drivers/scsi/sd.c | if(target >= sd_template.dev_max || !rscsi_disks[target].device) |
dev_max | 201 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
dev_max | 206 | drivers/scsi/sd.c | sd_gendisk.nr_real = sd_template.dev_max; |
dev_max | 532 | drivers/scsi/sd.c | if (devm >= (sd_template.dev_max << 4) || |
dev_max | 905 | drivers/scsi/sd.c | if (target >= sd_template.dev_max || |
dev_max | 1254 | drivers/scsi/sd.c | sd_template.dev_max = sd_template.dev_noticed + SD_EXTRA_DEVS; |
dev_max | 1257 | drivers/scsi/sd.c | scsi_init_malloc(sd_template.dev_max * sizeof(Scsi_Disk), GFP_ATOMIC); |
dev_max | 1258 | drivers/scsi/sd.c | memset(rscsi_disks, 0, sd_template.dev_max * sizeof(Scsi_Disk)); |
dev_max | 1260 | drivers/scsi/sd.c | sd_sizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1262 | drivers/scsi/sd.c | memset(sd_sizes, 0, (sd_template.dev_max << 4) * sizeof(int)); |
dev_max | 1264 | drivers/scsi/sd.c | sd_blocksizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1267 | drivers/scsi/sd.c | sd_hardsizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1270 | drivers/scsi/sd.c | for(i=0;i<(sd_template.dev_max << 4);i++){ |
dev_max | 1276 | drivers/scsi/sd.c | sd = (struct hd_struct *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1281 | drivers/scsi/sd.c | sd_gendisk.max_nr = sd_template.dev_max; |
dev_max | 1297 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
dev_max | 1338 | drivers/scsi/sd.c | if(sd_template.nr_dev >= sd_template.dev_max) { |
dev_max | 1343 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
dev_max | 1346 | drivers/scsi/sd.c | if(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)"); |
dev_max | 1431 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
dev_max | 1483 | drivers/scsi/sd.c | scsi_init_free((char *) sd_sizes, sd_template.dev_max * sizeof(int)); |
dev_max | 1484 | drivers/scsi/sd.c | scsi_init_free((char *) sd_blocksizes, sd_template.dev_max * sizeof(int)); |
dev_max | 1485 | drivers/scsi/sd.c | scsi_init_free((char *) sd_hardsizes, sd_template.dev_max * sizeof(int)); |
dev_max | 1487 | drivers/scsi/sd.c | (sd_template.dev_max << 4) * sizeof(struct hd_struct)); |
dev_max | 1514 | drivers/scsi/sd.c | sd_template.dev_max = 0; |
dev_max | 71 | drivers/scsi/sg.c | if ((dev<0) || (dev>=sg_template.dev_max)) |
dev_max | 92 | drivers/scsi/sg.c | if (dev>=sg_template.dev_max || !scsi_generics[dev].device) |
dev_max | 550 | drivers/scsi/sg.c | sg_template.dev_max = sg_template.dev_noticed + SG_EXTRA_DEVS; |
dev_max | 559 | drivers/scsi/sg.c | if(sg_template.nr_dev >= sg_template.dev_max) |
dev_max | 565 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
dev_max | 568 | drivers/scsi/sg.c | if(i >= sg_template.dev_max) panic ("scsi_devices corrupt (sg)"); |
dev_max | 590 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
dev_max | 617 | drivers/scsi/sg.c | sg_template.dev_max = 0; |
dev_max | 943 | drivers/scsi/sr.c | if (sr_template.nr_dev >= sr_template.dev_max) |
dev_max | 949 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
dev_max | 952 | drivers/scsi/sr.c | if(i >= sr_template.dev_max) panic ("scsi_devices corrupt (sr)"); |
dev_max | 957 | drivers/scsi/sr.c | if(sr_template.nr_dev > sr_template.dev_max) |
dev_max | 1057 | drivers/scsi/sr.c | sr_template.dev_max = sr_template.dev_noticed + SR_EXTRA_DEVS; |
dev_max | 1058 | drivers/scsi/sr.c | scsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD), GFP_ATOMIC); |
dev_max | 1059 | drivers/scsi/sr.c | memset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD)); |
dev_max | 1061 | drivers/scsi/sr.c | sr_sizes = (int *) scsi_init_malloc(sr_template.dev_max * sizeof(int), GFP_ATOMIC); |
dev_max | 1062 | drivers/scsi/sr.c | memset(sr_sizes, 0, sr_template.dev_max * sizeof(int)); |
dev_max | 1064 | drivers/scsi/sr.c | sr_blocksizes = (int *) scsi_init_malloc(sr_template.dev_max * |
dev_max | 1066 | drivers/scsi/sr.c | for(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048; |
dev_max | 1115 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
dev_max | 1163 | drivers/scsi/sr.c | scsi_init_free((char *) sr_sizes, sr_template.dev_max * sizeof(int)); |
dev_max | 1164 | drivers/scsi/sr.c | scsi_init_free((char *) sr_blocksizes, sr_template.dev_max * sizeof(int)); |
dev_max | 1172 | drivers/scsi/sr.c | sr_template.dev_max = 0; |
dev_max | 449 | drivers/scsi/st.c | if (dev >= st_template.dev_max || !scsi_tapes[dev].device) |
dev_max | 1942 | drivers/scsi/st.c | if (st_nbr_buffers >= st_template.dev_max) |
dev_max | 2066 | drivers/scsi/st.c | if(st_template.nr_dev >= st_template.dev_max) |
dev_max | 2072 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
dev_max | 2075 | drivers/scsi/st.c | if(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)"); |
dev_max | 2139 | drivers/scsi/st.c | st_template.dev_max = st_template.dev_noticed + ST_EXTRA_DEVS; |
dev_max | 2140 | drivers/scsi/st.c | if (st_template.dev_max < ST_MAX_TAPES) |
dev_max | 2141 | drivers/scsi/st.c | st_template.dev_max = ST_MAX_TAPES; |
dev_max | 2143 | drivers/scsi/st.c | (Scsi_Tape *) scsi_init_malloc(st_template.dev_max * sizeof(Scsi_Tape), |
dev_max | 2156 | drivers/scsi/st.c | for (i=0; i < st_template.dev_max; ++i) { |
dev_max | 2185 | drivers/scsi/st.c | (ST_buffer **) scsi_init_malloc(st_template.dev_max * sizeof(ST_buffer *), |
dev_max | 2191 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
dev_max | 2210 | drivers/scsi/st.c | st_template.dev_max * sizeof(ST_buffer *)); |
dev_max | 2212 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
dev_max | 2228 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
dev_max | 2256 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
dev_max | 2267 | drivers/scsi/st.c | st_template.dev_max * sizeof(ST_buffer *)); |
dev_max | 2270 | drivers/scsi/st.c | st_template.dev_max = 0; |