Lines Matching defs:priority
62 * priority-group.
111 * priority-group, set the active_ncp property and refresh the
192 * To activate new NCP, reset the active priority-group, set the
237 uint64_t priority;
244 priority = ncu->ncu_link.nwamd_link_priority_group;
246 if (priority >= cbarg->minpriority && priority < cbarg->currpriority) {
248 cbarg->currpriority = priority;
269 "next priority group >= %lld is %lld",
275 "no priority groups >= %lld exist", minpriority);
281 * Struct for walking NCUs in the selected priority group. We count
288 int64_t priority_group; /* interested priority-group for this walk */
304 * - it supports checking/activation of a particular priority group in
358 /* Only work with NCUs in the requested priority-group */
361 "skipping NCU %s in different priority-group", name);
435 * If we are activating or checking the priority group and
512 "invalid priority-mode");
520 nwamd_ncp_activate_priority_group(int64_t priority)
525 if (priority == INVALID_PRIORITY_GROUP)
529 if (priority == current_ncu_priority_group) {
536 "activating priority group %lld", priority);
539 wa.priority_group = priority;
560 priority_event = nwamd_event_init_priority_group_change(priority);
566 * Now we've activated a new priority group, enqueue an event
567 * to check up on the state of this priority group.
576 nwamd_ncp_deactivate_priority_group(int64_t priority)
580 if (priority == INVALID_PRIORITY_GROUP)
584 "deactivating priority group %lld", priority);
587 wa.priority_group = priority;
606 * This function deactivates all priority groups at level 'priority' and lower
607 * (which is, numerically, all priorities >= priority).
610 nwamd_ncp_deactivate_priority_group_all(int64_t priority)
612 if (priority == INVALID_PRIORITY_GROUP)
616 "deactivating priority group less than or equal to %lld", priority);
619 nwamd_ncp_deactivate_priority_group(priority);
620 } while (nwamd_ncp_find_next_priority_group(priority + 1, &priority));
624 * Returns 'true' if it found the highest priority group no higher then what
625 * is passed that should be activated and sets *priority to that.
628 nwamd_ncp_check_priority_group(int64_t *priority)
634 "checking priority group %lld", *priority);
636 if (*priority == INVALID_PRIORITY_GROUP) {
637 if (!nwamd_ncp_find_next_priority_group(0, priority))
644 wa.priority_group = *priority;
681 (wa.priority_group + 1, priority)) {