Searched refs:parman (Results 1 – 4 of 4) sorted by relevance
/lib/ |
D | parman.c | 44 int (*item_add)(struct parman *parman, struct parman_prio *prio, 46 void (*item_remove)(struct parman *parman, struct parman_prio *prio, 50 struct parman { struct 59 static int parman_enlarge(struct parman *parman) in parman_enlarge() argument 61 unsigned long new_count = parman->limit_count + in parman_enlarge() 62 parman->ops->resize_step; in parman_enlarge() 65 err = parman->ops->resize(parman->priv, new_count); in parman_enlarge() 68 parman->limit_count = new_count; in parman_enlarge() 72 static int parman_shrink(struct parman *parman) in parman_shrink() argument 74 unsigned long new_count = parman->limit_count - in parman_shrink() [all …]
|
D | test_parman.c | 78 struct parman *parman; member 172 parman_prio_init(test_parman->parman, &prio->parman_prio, in test_parman_prios_init() 211 parman_item_remove(test_parman->parman, in test_parman_items_fini() 228 test_parman->parman = parman_create(ops, test_parman); in test_parman_create() 229 if (!test_parman->parman) { in test_parman_create() 250 parman_destroy(test_parman->parman); in test_parman_destroy() 281 err = parman_item_add(test_parman->parman, in test_parman_run() 290 parman_item_remove(test_parman->parman, in test_parman_run()
|
D | Makefile | 283 obj-$(CONFIG_PARMAN) += parman.o
|
D | Kconfig | 630 tristate "parman" if COMPILE_TEST
|