Lines Matching refs:max_devs
146 int max_devs; in drive_init() local
162 max_devs = MAX_SCSI_DEVS; in drive_init()
166 max_devs = MAX_IDE_DEVS; in drive_init()
190 max_devs = MAX_IDE_DEVS; in drive_init()
193 max_devs = MAX_SCSI_DEVS; in drive_init()
196 max_devs = 0; in drive_init()
199 max_devs = 0; in drive_init()
202 max_devs = 0; in drive_init()
205 max_devs = 0; in drive_init()
208 max_devs = 0; in drive_init()
211 max_devs = 0; in drive_init()
214 max_devs = 0; in drive_init()
355 if (max_devs == 0) in drive_init()
360 unit_id = index % max_devs; in drive_init()
361 bus_id = index / max_devs; in drive_init()
373 if (max_devs && unit_id >= max_devs) { in drive_init()
374 unit_id -= max_devs; in drive_init()
382 if (max_devs && unit_id >= max_devs) { in drive_init()
384 unit_id, max_devs - 1); in drive_init()
407 if (max_devs) in drive_init()