Searched refs:prio (Results 1 – 3 of 3) sorted by relevance
44 int (*item_add)(struct parman *parman, struct parman_prio *prio,46 void (*item_remove)(struct parman *parman, struct parman_prio *prio,87 static bool parman_prio_used(struct parman_prio *prio) in parman_prio_used() argument90 return !list_empty(&prio->item_list); in parman_prio_used()93 static struct parman_item *parman_prio_first_item(struct parman_prio *prio) in parman_prio_first_item() argument95 return list_first_entry(&prio->item_list, in parman_prio_first_item()99 static unsigned long parman_prio_first_index(struct parman_prio *prio) in parman_prio_first_index() argument101 return parman_prio_first_item(prio)->index; in parman_prio_first_index()104 static struct parman_item *parman_prio_last_item(struct parman_prio *prio) in parman_prio_last_item() argument106 return list_last_entry(&prio->item_list, in parman_prio_last_item()[all …]
88 if (node->prio < iter->prio) { in plist_add()98 if (!prev || prev->prio != node->prio) in plist_add()159 if (node->prio != iter->prio) in plist_requeue()165 if (node->prio != iter->prio) { in plist_requeue()198 if (node_pos->prio == prio_pos->prio) { in plist_test_check()203 BUG_ON(prio_pos->prio > node_pos->prio); in plist_test_check()217 BUG_ON(node->prio == plist_next(node)->prio); in plist_test_requeue()235 test_node[i].prio = r % 99; in plist_test()
73 struct test_parman_prio *prio; member153 struct test_parman_prio *prio = &test_parman->prios[i]; in test_parman_priority_gen() local155 if (prio->priority == 0) in test_parman_priority_gen()157 if (prio->priority == priority) in test_parman_priority_gen()168 struct test_parman_prio *prio = &test_parman->prios[i]; in test_parman_prios_init() local171 prio->priority = test_parman_priority_gen(test_parman); in test_parman_prios_init()172 parman_prio_init(test_parman->parman, &prio->parman_prio, in test_parman_prios_init()173 prio->priority); in test_parman_prios_init()182 struct test_parman_prio *prio = &test_parman->prios[i]; in test_parman_prios_fini() local184 parman_prio_fini(&prio->parman_prio); in test_parman_prios_fini()[all …]