Lines Matching refs:prio
130 __weak enum env_location env_get_location(enum env_operation op, int prio) in env_get_location() argument
132 if (prio >= ARRAY_SIZE(env_locations)) in env_get_location()
135 return env_locations[prio]; in env_get_location()
151 static struct env_driver *env_driver_lookup(enum env_operation op, int prio) in env_driver_lookup() argument
153 enum env_location loc = env_get_location(op, prio); in env_driver_lookup()
186 int prio; in env_load() local
188 for (prio = 0; (drv = env_driver_lookup(ENVOP_LOAD, prio)); prio++) { in env_load()
203 gd->env_load_prio = prio; in env_load()
211 best_prio = prio; in env_load()
328 int prio; in env_init() local
330 for (prio = 0; (drv = env_driver_lookup(ENVOP_INIT, prio)); prio++) { in env_init()
340 if (!prio) in env_init()
358 int prio; in env_select() local
378 for (prio = 0; (drv = env_driver_lookup(ENVOP_INIT, prio)); prio++) { in env_select()
379 if (entry->location == env_get_location(ENVOP_LOAD, prio)) { in env_select()
381 if (gd->env_load_prio != prio) { in env_select()
382 gd->env_load_prio = prio; in env_select()