tag | line | file | source code |
dev_max | 348 | 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 | 904 | drivers/scsi/sd.c | if (target >= sd_template.dev_max || |
dev_max | 1266 | drivers/scsi/sd.c | sd_template.dev_max = sd_template.dev_noticed + SD_EXTRA_DEVS; |
dev_max | 1269 | drivers/scsi/sd.c | scsi_init_malloc(sd_template.dev_max * sizeof(Scsi_Disk), GFP_ATOMIC); |
dev_max | 1270 | drivers/scsi/sd.c | memset(rscsi_disks, 0, sd_template.dev_max * sizeof(Scsi_Disk)); |
dev_max | 1272 | drivers/scsi/sd.c | sd_sizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1274 | drivers/scsi/sd.c | memset(sd_sizes, 0, (sd_template.dev_max << 4) * sizeof(int)); |
dev_max | 1276 | drivers/scsi/sd.c | sd_blocksizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1279 | drivers/scsi/sd.c | sd_hardsizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1282 | drivers/scsi/sd.c | for(i=0;i<(sd_template.dev_max << 4);i++){ |
dev_max | 1288 | drivers/scsi/sd.c | sd = (struct hd_struct *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1293 | drivers/scsi/sd.c | sd_gendisk.max_nr = sd_template.dev_max; |
dev_max | 1309 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
dev_max | 1352 | drivers/scsi/sd.c | if(sd_template.nr_dev >= sd_template.dev_max) { |
dev_max | 1357 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
dev_max | 1360 | drivers/scsi/sd.c | if(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)"); |
dev_max | 1445 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
dev_max | 1497 | drivers/scsi/sd.c | scsi_init_free((char *) sd_sizes, sd_template.dev_max * sizeof(int)); |
dev_max | 1498 | drivers/scsi/sd.c | scsi_init_free((char *) sd_blocksizes, sd_template.dev_max * sizeof(int)); |
dev_max | 1499 | drivers/scsi/sd.c | scsi_init_free((char *) sd_hardsizes, sd_template.dev_max * sizeof(int)); |
dev_max | 1501 | drivers/scsi/sd.c | (sd_template.dev_max << 4) * sizeof(struct hd_struct)); |
dev_max | 1528 | 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 | 947 | drivers/scsi/sr.c | if (sr_template.nr_dev >= sr_template.dev_max) |
dev_max | 953 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
dev_max | 956 | drivers/scsi/sr.c | if(i >= sr_template.dev_max) panic ("scsi_devices corrupt (sr)"); |
dev_max | 961 | drivers/scsi/sr.c | if(sr_template.nr_dev > sr_template.dev_max) |
dev_max | 1074 | drivers/scsi/sr.c | sr_template.dev_max = sr_template.dev_noticed + SR_EXTRA_DEVS; |
dev_max | 1075 | drivers/scsi/sr.c | scsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD), GFP_ATOMIC); |
dev_max | 1076 | drivers/scsi/sr.c | memset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD)); |
dev_max | 1078 | drivers/scsi/sr.c | sr_sizes = (int *) scsi_init_malloc(sr_template.dev_max * sizeof(int), GFP_ATOMIC); |
dev_max | 1079 | drivers/scsi/sr.c | memset(sr_sizes, 0, sr_template.dev_max * sizeof(int)); |
dev_max | 1081 | drivers/scsi/sr.c | sr_blocksizes = (int *) scsi_init_malloc(sr_template.dev_max * |
dev_max | 1083 | drivers/scsi/sr.c | for(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048; |
dev_max | 1132 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
dev_max | 1176 | drivers/scsi/sr.c | scsi_init_free((char *) sr_sizes, sr_template.dev_max * sizeof(int)); |
dev_max | 1177 | drivers/scsi/sr.c | scsi_init_free((char *) sr_blocksizes, sr_template.dev_max * sizeof(int)); |
dev_max | 1185 | drivers/scsi/sr.c | sr_template.dev_max = 0; |
dev_max | 516 | drivers/scsi/st.c | if (dev >= st_template.dev_max || !scsi_tapes[dev].device) |
dev_max | 2693 | drivers/scsi/st.c | if (st_nbr_buffers >= st_template.dev_max) |
dev_max | 2828 | drivers/scsi/st.c | if(st_template.nr_dev >= st_template.dev_max) |
dev_max | 2834 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
dev_max | 2837 | drivers/scsi/st.c | if(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)"); |
dev_max | 2931 | drivers/scsi/st.c | st_template.dev_max = st_template.dev_noticed + ST_EXTRA_DEVS; |
dev_max | 2932 | drivers/scsi/st.c | if (st_template.dev_max < ST_MAX_TAPES) |
dev_max | 2933 | drivers/scsi/st.c | st_template.dev_max = ST_MAX_TAPES; |
dev_max | 2934 | drivers/scsi/st.c | if (st_template.dev_max > 128 / ST_NBR_MODES) |
dev_max | 2937 | drivers/scsi/st.c | (Scsi_Tape *) scsi_init_malloc(st_template.dev_max * sizeof(Scsi_Tape), |
dev_max | 2950 | drivers/scsi/st.c | memset(scsi_tapes, 0, st_template.dev_max * sizeof(Scsi_Tape)); |
dev_max | 2951 | drivers/scsi/st.c | for (i=0; i < st_template.dev_max; ++i) { |
dev_max | 2962 | drivers/scsi/st.c | (ST_buffer **) scsi_init_malloc(st_template.dev_max * sizeof(ST_buffer *), |
dev_max | 2968 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
dev_max | 2988 | drivers/scsi/st.c | st_template.dev_max * sizeof(ST_buffer *)); |
dev_max | 2990 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
dev_max | 3010 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
dev_max | 3038 | drivers/scsi/st.c | st_template.dev_max * sizeof(Scsi_Tape)); |
dev_max | 3049 | drivers/scsi/st.c | st_template.dev_max * sizeof(ST_buffer *)); |
dev_max | 3052 | drivers/scsi/st.c | st_template.dev_max = 0; |