tag | line | file | source code |
dev_max | 345 | drivers/scsi/hosts.h | unsigned char dev_max; /* Current size of arrays */ |
dev_max | 102 | drivers/scsi/sd.c | if(target >= sd_template.dev_max || !rscsi_disks[target].device) |
dev_max | 188 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
dev_max | 193 | drivers/scsi/sd.c | sd_gendisk.nr_real = sd_template.dev_max; |
dev_max | 485 | drivers/scsi/sd.c | if (dev >= (sd_template.dev_max << 4) || |
dev_max | 859 | drivers/scsi/sd.c | if (target >= sd_template.dev_max || |
dev_max | 1144 | drivers/scsi/sd.c | sd_template.dev_max = sd_template.dev_noticed + SD_EXTRA_DEVS; |
dev_max | 1147 | drivers/scsi/sd.c | scsi_init_malloc(sd_template.dev_max * sizeof(Scsi_Disk), GFP_ATOMIC); |
dev_max | 1148 | drivers/scsi/sd.c | memset(rscsi_disks, 0, sd_template.dev_max * sizeof(Scsi_Disk)); |
dev_max | 1150 | drivers/scsi/sd.c | sd_sizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1152 | drivers/scsi/sd.c | memset(sd_sizes, 0, (sd_template.dev_max << 4) * sizeof(int)); |
dev_max | 1154 | drivers/scsi/sd.c | sd_blocksizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1157 | drivers/scsi/sd.c | sd_hardsizes = (int *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1160 | drivers/scsi/sd.c | for(i=0;i<(sd_template.dev_max << 4);i++){ |
dev_max | 1166 | drivers/scsi/sd.c | sd = (struct hd_struct *) scsi_init_malloc((sd_template.dev_max << 4) * |
dev_max | 1171 | drivers/scsi/sd.c | sd_gendisk.max_nr = sd_template.dev_max; |
dev_max | 1187 | drivers/scsi/sd.c | for (i = 0; i < sd_template.dev_max; ++i) |
dev_max | 1228 | drivers/scsi/sd.c | if(sd_template.nr_dev >= sd_template.dev_max) { |
dev_max | 1233 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
dev_max | 1236 | drivers/scsi/sd.c | if(i >= sd_template.dev_max) panic ("scsi_devices corrupt (sd)"); |
dev_max | 1316 | drivers/scsi/sd.c | for(dpnt = rscsi_disks, i=0; i<sd_template.dev_max; i++, dpnt++) |
dev_max | 1374 | drivers/scsi/sd.c | scsi_init_free((char *) sd_sizes, sd_template.dev_max * sizeof(int)); |
dev_max | 1375 | drivers/scsi/sd.c | scsi_init_free((char *) sd_blocksizes, sd_template.dev_max * sizeof(int)); |
dev_max | 1376 | drivers/scsi/sd.c | scsi_init_free((char *) sd_hardsizes, sd_template.dev_max * sizeof(int)); |
dev_max | 1378 | drivers/scsi/sd.c | (sd_template.dev_max << 4) * sizeof(struct hd_struct)); |
dev_max | 1405 | drivers/scsi/sd.c | sd_template.dev_max = 0; |
dev_max | 75 | drivers/scsi/sg.c | if ((dev<0) || (dev>=sg_template.dev_max)) |
dev_max | 96 | drivers/scsi/sg.c | if (dev>=sg_template.dev_max || !scsi_generics[dev].device) |
dev_max | 516 | drivers/scsi/sg.c | sg_template.dev_max = sg_template.dev_noticed + SG_EXTRA_DEVS; |
dev_max | 524 | drivers/scsi/sg.c | if(sg_template.nr_dev >= sg_template.dev_max) |
dev_max | 530 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
dev_max | 533 | drivers/scsi/sg.c | if(i >= sg_template.dev_max) panic ("scsi_devices corrupt (sg)"); |
dev_max | 555 | drivers/scsi/sg.c | for(gpnt = scsi_generics, i=0; i<sg_template.dev_max; i++, gpnt++) |
dev_max | 587 | drivers/scsi/sg.c | sg_template.dev_max = 0; |
dev_max | 917 | drivers/scsi/sr.c | if (sr_template.nr_dev >= sr_template.dev_max) |
dev_max | 923 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
dev_max | 926 | drivers/scsi/sr.c | if(i >= sr_template.dev_max) panic ("scsi_devices corrupt (sr)"); |
dev_max | 931 | drivers/scsi/sr.c | if(sr_template.nr_dev > sr_template.dev_max) |
dev_max | 1036 | drivers/scsi/sr.c | sr_template.dev_max = sr_template.dev_noticed + SR_EXTRA_DEVS; |
dev_max | 1037 | drivers/scsi/sr.c | scsi_CDs = (Scsi_CD *) scsi_init_malloc(sr_template.dev_max * sizeof(Scsi_CD), GFP_ATOMIC); |
dev_max | 1038 | drivers/scsi/sr.c | memset(scsi_CDs, 0, sr_template.dev_max * sizeof(Scsi_CD)); |
dev_max | 1040 | drivers/scsi/sr.c | sr_sizes = (int *) scsi_init_malloc(sr_template.dev_max * sizeof(int), GFP_ATOMIC); |
dev_max | 1041 | drivers/scsi/sr.c | memset(sr_sizes, 0, sr_template.dev_max * sizeof(int)); |
dev_max | 1043 | drivers/scsi/sr.c | sr_blocksizes = (int *) scsi_init_malloc(sr_template.dev_max * |
dev_max | 1045 | drivers/scsi/sr.c | for(i=0;i<sr_template.dev_max;i++) sr_blocksizes[i] = 2048; |
dev_max | 1096 | drivers/scsi/sr.c | for(cpnt = scsi_CDs, i=0; i<sr_template.dev_max; i++, cpnt++) |
dev_max | 1147 | drivers/scsi/sr.c | scsi_init_free((char *) sr_sizes, sr_template.dev_max * sizeof(int)); |
dev_max | 1148 | drivers/scsi/sr.c | scsi_init_free((char *) sr_blocksizes, sr_template.dev_max * sizeof(int)); |
dev_max | 1156 | drivers/scsi/sr.c | sr_template.dev_max = 0; |
dev_max | 432 | drivers/scsi/st.c | if (dev >= st_template.dev_max || !scsi_tapes[dev].device) |
dev_max | 1957 | drivers/scsi/st.c | if(st_template.nr_dev >= st_template.dev_max) |
dev_max | 1963 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
dev_max | 1966 | drivers/scsi/st.c | if(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)"); |
dev_max | 2010 | drivers/scsi/st.c | st_template.dev_max = st_template.dev_noticed + ST_EXTRA_DEVS; |
dev_max | 2017 | drivers/scsi/st.c | for (i=0; i < st_template.dev_max; ++i) { |
dev_max | 2070 | drivers/scsi/st.c | for(tpnt = scsi_tapes, i=0; i<st_template.dev_max; i++, tpnt++) |
dev_max | 2112 | drivers/scsi/st.c | st_template.dev_max = 0; |