Lines Matching defs:pass

52 	int             pass;
167 * Bus pass implementation
187 * @brief Register the pass level of a new driver attachment
189 * Register a new driver attachment's pass level. If no driver
190 * attachment with the same pass level has been added, then @p new
200 /* We only consider pass numbers during boot. */
205 * Walk the passes list. If we already know about this pass
210 if (dl->pass < new->pass)
212 if (dl->pass == new->pass)
221 * @brief Raise the current bus pass
223 * Raise the current bus pass level to @p pass. Call the BUS_NEW_PASS()
225 * new pass level that has at least one driver.
228 bus_set_pass(int pass)
232 if (bus_current_pass > pass)
233 panic("Attempt to lower bus pass level");
236 /* Skip pass values below the current pass level. */
237 if (dl->pass <= bus_current_pass)
241 * Bail once we hit a driver with a pass level that is
244 if (dl->pass > pass)
248 * Raise the pass level to the next level and rescan
251 bus_current_pass = dl->pass;
256 * If there isn't a driver registered for the requested pass,
257 * then bus_current_pass might still be less than 'pass'. Set
258 * it to 'pass' in that case.
260 if (bus_current_pass < pass)
261 bus_current_pass = pass;
262 KASSERT(bus_current_pass == pass, ("Failed to update bus pass level"));
427 devclass_add_driver(devclass_t dc, driver_t *driver, int pass, devclass_t *dcp)
434 /* Don't allow invalid pass values. */
435 if (pass <= BUS_PASS_ROOT)
466 dl->pass = pass;
1824 * If this driver's pass is too high, then ignore it.
1825 * For most drivers in the default pass, this will
1826 * never be true. For early-pass drivers they will
1830 * on early-pass busses during BUS_NEW_PASS().
1832 if (dl->pass > bus_current_pass)
2105 * routines for any drivers that probe at the current pass. Then it
2120 if (dl->pass == bus_current_pass)
2448 /* If this driver's pass is too high, then ignore it. */
2449 if (dl->pass > bus_current_pass)
2825 int error, pass;
2843 pass = dmd->dmd_pass;
2845 PDEBUG(("Loading module: driver %s on bus %s (pass %d)",
2846 DRIVERNAME(driver), dmd->dmd_busname, pass));
2847 error = devclass_add_driver(bus_devclass, driver, pass,