tag | line | file | source code |
dev_max | 352 | 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 | 1260 | drivers/scsi/sd.c | sd_template.dev_max = sd_template.dev_noticed + SD_EXTRA_DEVS; |
dev_max | 1263 | drivers/scsi/sd.c | scsi_init_malloc(sd_template.dev_max * sizeof(Scsi_Disk), GFP_ATOMIC); |
dev_max | 1264 | drivers/scsi/sd.c | memset(rscsi_disks, 0, sd_template.dev_max * sizeof(Scsi_Disk)); |
dev_max | 1266 | drivers/scsi/sd.c | sd_sizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1268 | drivers/scsi/sd.c | memset(sd_sizes, 0, (sd_template.dev_max << 4) * sizeof(int)); |
dev_max | 1270 | drivers/scsi/sd.c | sd_blocksizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1273 | drivers/scsi/sd.c | sd_hardsizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1276 | drivers/scsi/sd.c | for(i=0;i<(sd_template.dev_max << 4);i++){ |
dev_max | 1282 | drivers/scsi/sd.c | sd = (struct hd_struct *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1287 | drivers/scsi/sd.c | sd_gendisk.max_nr = sd_template.dev_max; |
dev_max | 1303 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
dev_max | 1346 | drivers/scsi/sd.c | if(sd_template.nr_dev >= sd_template.dev_max) { |
dev_max | 1351 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
dev_max | 1354 | drivers/scsi/sd.c | if(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)"); |
dev_max | 1439 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
dev_max | 1491 | drivers/scsi/sd.c | scsi_init_free((char *) sd_sizes, sd_template.dev_max * sizeof(int)); |
dev_max | 1492 | drivers/scsi/sd.c | scsi_init_free((char *) sd_blocksizes, sd_template.dev_max * sizeof(int)); |
dev_max | 1493 | drivers/scsi/sd.c | scsi_init_free((char *) sd_hardsizes, sd_template.dev_max * sizeof(int)); |
dev_max | 1495 | drivers/scsi/sd.c | (sd_template.dev_max << 4) * sizeof(struct hd_struct)); |
dev_max | 1522 | 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 | 551 | drivers/scsi/sg.c | sg_template.dev_max = sg_template.dev_noticed + SG_EXTRA_DEVS; |
dev_max | 560 | drivers/scsi/sg.c | if(sg_template.nr_dev >= sg_template.dev_max) |
dev_max | 566 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
dev_max | 569 | drivers/scsi/sg.c | if(i >= sg_template.dev_max) panic ("scsi_devices corrupt (sg)"); |
dev_max | 591 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
dev_max | 618 | 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 | 1059 | drivers/scsi/sr.c | sr_template.dev_max = sr_template.dev_noticed + SR_EXTRA_DEVS; |
dev_max | 1060 | drivers/scsi/sr.c | scsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD), GFP_ATOMIC); |
dev_max | 1061 | drivers/scsi/sr.c | memset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD)); |
dev_max | 1063 | drivers/scsi/sr.c | sr_sizes = (int *) scsi_init_malloc(sr_template.dev_max * sizeof(int), GFP_ATOMIC); |
dev_max | 1064 | drivers/scsi/sr.c | memset(sr_sizes, 0, sr_template.dev_max * sizeof(int)); |
dev_max | 1066 | drivers/scsi/sr.c | sr_blocksizes = (int *) scsi_init_malloc(sr_template.dev_max * |
dev_max | 1068 | drivers/scsi/sr.c | for(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048; |
dev_max | 1117 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
dev_max | 1161 | drivers/scsi/sr.c | scsi_init_free((char *) sr_sizes, sr_template.dev_max * sizeof(int)); |
dev_max | 1162 | drivers/scsi/sr.c | scsi_init_free((char *) sr_blocksizes, sr_template.dev_max * sizeof(int)); |
dev_max | 1170 | drivers/scsi/sr.c | sr_template.dev_max = 0; |
dev_max | 462 | drivers/scsi/st.c | if (dev >= st_template.dev_max || !scsi_tapes[dev].device) |
dev_max | 1976 | drivers/scsi/st.c | if (st_nbr_buffers >= st_template.dev_max) |
dev_max | 2102 | drivers/scsi/st.c | if(st_template.nr_dev >= st_template.dev_max) |
dev_max | 2108 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
dev_max | 2111 | drivers/scsi/st.c | if(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)"); |
dev_max | 2175 | drivers/scsi/st.c | st_template.dev_max = st_template.dev_noticed + ST_EXTRA_DEVS; |
dev_max | 2176 | drivers/scsi/st.c | if (st_template.dev_max < ST_MAX_TAPES) |
dev_max | 2177 | drivers/scsi/st.c | st_template.dev_max = ST_MAX_TAPES; |
dev_max | 2179 | drivers/scsi/st.c | (Scsi_Tape *) scsi_init_malloc(st_template.dev_max * sizeof(Scsi_Tape), |
dev_max | 2192 | drivers/scsi/st.c | for (i=0; i < st_template.dev_max; ++i) { |
dev_max | 2221 | drivers/scsi/st.c | (ST_buffer **) scsi_init_malloc(st_template.dev_max * sizeof(ST_buffer *), |
dev_max | 2227 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
dev_max | 2246 | drivers/scsi/st.c | st_template.dev_max * sizeof(ST_buffer *)); |
dev_max | 2248 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
dev_max | 2264 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
dev_max | 2292 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
dev_max | 2303 | drivers/scsi/st.c | st_template.dev_max * sizeof(ST_buffer *)); |
dev_max | 2306 | drivers/scsi/st.c | st_template.dev_max = 0; |