Lines Matching defs:pass

87 	int		pass;
842 * is safe to pass to snprintf to construct, for example pnp info strings.
869 * Bus pass implementation
877 * @brief Register the pass level of a new driver attachment
879 * Register a new driver attachment's pass level. If no driver
880 * attachment with the same pass level has been added, then @p new
890 /* We only consider pass numbers during boot. */
895 * Walk the passes list. If we already know about this pass
900 if (dl->pass < new->pass)
902 if (dl->pass == new->pass)
911 * @brief Raise the current bus pass
913 * Raise the current bus pass level to @p pass. Call the BUS_NEW_PASS()
915 * new pass level that has at least one driver.
918 bus_set_pass(int pass)
922 if (bus_current_pass > pass)
923 panic("Attempt to lower bus pass level");
926 /* Skip pass values below the current pass level. */
927 if (dl->pass <= bus_current_pass)
931 * Bail once we hit a driver with a pass level that is
934 if (dl->pass > pass)
938 * Raise the pass level to the next level and rescan
941 bus_current_pass = dl->pass;
946 * If there isn't a driver registered for the requested pass,
947 * then bus_current_pass might still be less than 'pass'. Set
948 * it to 'pass' in that case.
950 if (bus_current_pass < pass)
951 bus_current_pass = pass;
952 KASSERT(bus_current_pass == pass, ("Failed to update bus pass level"));
1110 devclass_add_driver(devclass_t dc, driver_t *driver, int pass, devclass_t *dcp)
1117 /* Don't allow invalid pass values. */
1118 if (pass <= BUS_PASS_ROOT)
1149 dl->pass = pass;
2098 /* If this driver's pass is too high, then ignore it. */
2099 if (dl->pass > bus_current_pass)
3341 * @param start hint at the start of the resource range - pass
3343 * @param end hint at the end of the resource range - pass
3345 * @param count hint at the size of range required - pass @c 1
3398 * @param start hint at the start of the resource range - pass
3400 * @param end hint at the end of the resource range - pass
3402 * @param count hint at the size of range required - pass @c 1
3692 * If this driver's pass is too high, then ignore it.
3693 * For most drivers in the default pass, this will
3694 * never be true. For early-pass drivers they will
3698 * on early-pass buses during BUS_NEW_PASS().
3700 if (dl->pass > bus_current_pass)
4103 * routines for any drivers that probe at the current pass. Then it
4118 if (dl->pass == bus_current_pass)
5227 int error, pass;
5238 pass = dmd->dmd_pass;
5240 PDEBUG(("Loading module: driver %s on bus %s (pass %d)",
5241 DRIVERNAME(driver), dmd->dmd_busname, pass));
5242 error = devclass_add_driver(bus_devclass, driver, pass,