Lines Matching refs:setup_count
2969 static int setup_count; variable
3125 if ( setup_count ) { in aha152x_init()
3128 for (i = 0; i<setup_count; i++) { in aha152x_init()
3138 if (setup_count < ARRAY_SIZE(setup)) { in aha152x_init()
3141 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3153 setup[setup_count++] = override; in aha152x_init()
3159 if (setup_count < ARRAY_SIZE(setup)) { in aha152x_init()
3162 if (setup_count == 0 || (override.io_port != setup[0].io_port)) { in aha152x_init()
3174 setup[setup_count++] = override; in aha152x_init()
3180 if (setup_count<ARRAY_SIZE(setup) && (aha152x[0]!=0 || io[0]!=0 || irq[0]!=0)) { in aha152x_init()
3182 setup[setup_count].conf = ""; in aha152x_init()
3183 setup[setup_count].io_port = aha152x[0]; in aha152x_init()
3184 setup[setup_count].irq = aha152x[1]; in aha152x_init()
3185 setup[setup_count].scsiid = aha152x[2]; in aha152x_init()
3186 setup[setup_count].reconnect = aha152x[3]; in aha152x_init()
3187 setup[setup_count].parity = aha152x[4]; in aha152x_init()
3188 setup[setup_count].synchronous = aha152x[5]; in aha152x_init()
3189 setup[setup_count].delay = aha152x[6]; in aha152x_init()
3190 setup[setup_count].ext_trans = aha152x[7]; in aha152x_init()
3192 if(io[0]!=0) setup[setup_count].io_port = io[0]; in aha152x_init()
3193 if(irq[0]!=0) setup[setup_count].irq = irq[0]; in aha152x_init()
3195 setup[setup_count].scsiid = scsiid[0]; in aha152x_init()
3196 setup[setup_count].reconnect = reconnect[0]; in aha152x_init()
3197 setup[setup_count].parity = parity[0]; in aha152x_init()
3198 setup[setup_count].synchronous = sync[0]; in aha152x_init()
3199 setup[setup_count].delay = delay[0]; in aha152x_init()
3200 setup[setup_count].ext_trans = exttrans[0]; in aha152x_init()
3203 if (checksetup(&setup[setup_count])) in aha152x_init()
3204 setup_count++; in aha152x_init()
3207 setup[setup_count].io_port, in aha152x_init()
3208 setup[setup_count].irq, in aha152x_init()
3209 setup[setup_count].scsiid, in aha152x_init()
3210 setup[setup_count].reconnect, in aha152x_init()
3211 setup[setup_count].parity, in aha152x_init()
3212 setup[setup_count].synchronous, in aha152x_init()
3213 setup[setup_count].delay, in aha152x_init()
3214 setup[setup_count].ext_trans); in aha152x_init()
3217 if (setup_count<ARRAY_SIZE(setup) && (aha152x1[0]!=0 || io[1]!=0 || irq[1]!=0)) { in aha152x_init()
3219 setup[setup_count].conf = ""; in aha152x_init()
3220 setup[setup_count].io_port = aha152x1[0]; in aha152x_init()
3221 setup[setup_count].irq = aha152x1[1]; in aha152x_init()
3222 setup[setup_count].scsiid = aha152x1[2]; in aha152x_init()
3223 setup[setup_count].reconnect = aha152x1[3]; in aha152x_init()
3224 setup[setup_count].parity = aha152x1[4]; in aha152x_init()
3225 setup[setup_count].synchronous = aha152x1[5]; in aha152x_init()
3226 setup[setup_count].delay = aha152x1[6]; in aha152x_init()
3227 setup[setup_count].ext_trans = aha152x1[7]; in aha152x_init()
3229 if(io[1]!=0) setup[setup_count].io_port = io[1]; in aha152x_init()
3230 if(irq[1]!=0) setup[setup_count].irq = irq[1]; in aha152x_init()
3232 setup[setup_count].scsiid = scsiid[1]; in aha152x_init()
3233 setup[setup_count].reconnect = reconnect[1]; in aha152x_init()
3234 setup[setup_count].parity = parity[1]; in aha152x_init()
3235 setup[setup_count].synchronous = sync[1]; in aha152x_init()
3236 setup[setup_count].delay = delay[1]; in aha152x_init()
3237 setup[setup_count].ext_trans = exttrans[1]; in aha152x_init()
3239 if (checksetup(&setup[setup_count])) in aha152x_init()
3240 setup_count++; in aha152x_init()
3243 setup[setup_count].io_port, in aha152x_init()
3244 setup[setup_count].irq, in aha152x_init()
3245 setup[setup_count].scsiid, in aha152x_init()
3246 setup[setup_count].reconnect, in aha152x_init()
3247 setup[setup_count].parity, in aha152x_init()
3248 setup[setup_count].synchronous, in aha152x_init()
3249 setup[setup_count].delay, in aha152x_init()
3250 setup[setup_count].ext_trans); in aha152x_init()
3255 for(i=0; setup_count<ARRAY_SIZE(setup) && id_table[i].vendor; i++) { in aha152x_init()
3256 while ( setup_count<ARRAY_SIZE(setup) && in aha152x_init()
3271 if (setup_count==1 && pnp_port_start(dev, 0)==setup[0].io_port) { in aha152x_init()
3276 setup[setup_count].io_port = pnp_port_start(dev, 0); in aha152x_init()
3277 setup[setup_count].irq = pnp_irq(dev, 0); in aha152x_init()
3278 setup[setup_count].scsiid = 7; in aha152x_init()
3279 setup[setup_count].reconnect = 1; in aha152x_init()
3280 setup[setup_count].parity = 1; in aha152x_init()
3281 setup[setup_count].synchronous = 1; in aha152x_init()
3282 setup[setup_count].delay = DELAY_DEFAULT; in aha152x_init()
3283 setup[setup_count].ext_trans = 0; in aha152x_init()
3285 pnpdev[setup_count] = dev; in aha152x_init()
3289 setup[setup_count].io_port, setup[setup_count].irq); in aha152x_init()
3290 setup_count++; in aha152x_init()
3296 if (setup_count<ARRAY_SIZE(setup)) { in aha152x_init()
3308 if (!ok && setup_count == 0) in aha152x_init()
3317 for (i = 0; i < ARRAY_SIZE(ports) && setup_count < 2; i++) { in aha152x_init()
3318 if ((setup_count == 1) && (setup[0].io_port == ports[i])) in aha152x_init()
3327 setup[setup_count].tc1550 = 0; in aha152x_init()
3332 setup[setup_count].tc1550 = 1; in aha152x_init()
3344 setup[setup_count].io_port = ports[i]; in aha152x_init()
3345 setup[setup_count].irq = IRQ_MIN + conf.cf_irq; in aha152x_init()
3346 setup[setup_count].scsiid = conf.cf_id; in aha152x_init()
3347 setup[setup_count].reconnect = conf.cf_tardisc; in aha152x_init()
3348 setup[setup_count].parity = !conf.cf_parity; in aha152x_init()
3349 setup[setup_count].synchronous = conf.cf_syncneg; in aha152x_init()
3350 setup[setup_count].delay = DELAY_DEFAULT; in aha152x_init()
3351 setup[setup_count].ext_trans = 0; in aha152x_init()
3352 setup_count++; in aha152x_init()
3361 printk("%d controller(s) configured\n", setup_count); in aha152x_init()
3363 for (i=0; i<setup_count; i++) { in aha152x_init()
3409 if(setup_count>=ARRAY_SIZE(setup)) { in aha152x_setup()
3414 setup[setup_count].conf = str; in aha152x_setup()
3415 setup[setup_count].io_port = ints[0] >= 1 ? ints[1] : 0x340; in aha152x_setup()
3416 setup[setup_count].irq = ints[0] >= 2 ? ints[2] : 11; in aha152x_setup()
3417 setup[setup_count].scsiid = ints[0] >= 3 ? ints[3] : 7; in aha152x_setup()
3418 setup[setup_count].reconnect = ints[0] >= 4 ? ints[4] : 1; in aha152x_setup()
3419 setup[setup_count].parity = ints[0] >= 5 ? ints[5] : 1; in aha152x_setup()
3420 setup[setup_count].synchronous = ints[0] >= 6 ? ints[6] : 1; in aha152x_setup()
3421 setup[setup_count].delay = ints[0] >= 7 ? ints[7] : DELAY_DEFAULT; in aha152x_setup()
3422 setup[setup_count].ext_trans = ints[0] >= 8 ? ints[8] : 0; in aha152x_setup()
3427 setup_count++; in aha152x_setup()