Home
last modified time | relevance | path

Searched refs:parman (Results 1 – 9 of 9) sorted by relevance

/linux-6.1.9/lib/
Dparman.c44 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 …]
Dtest_parman.c78 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()
DMakefile356 obj-$(CONFIG_PARMAN) += parman.o
DKconfig714 tristate "parman" if COMPILE_TEST
/linux-6.1.9/include/linux/
Dparman.h64 struct parman;
66 struct parman *parman_create(const struct parman_ops *ops, void *priv);
67 void parman_destroy(struct parman *parman);
68 void parman_prio_init(struct parman *parman, struct parman_prio *prio,
71 int parman_item_add(struct parman *parman, struct parman_prio *prio,
73 void parman_item_remove(struct parman *parman, struct parman_prio *prio,
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum1_mr_tcam.c15 struct parman *parman; member
99 err = parman_item_add(tcam_region->parman, in mlxsw_sp1_mr_tcam_route_parman_item_add()
117 parman_item_remove(tcam_region->parman, in mlxsw_sp1_mr_tcam_route_parman_item_remove()
243 struct parman *parman; in mlxsw_sp1_mr_tcam_region_init() local
254 parman = parman_create(&mlxsw_sp1_mr_tcam_region_parman_ops, in mlxsw_sp1_mr_tcam_region_init()
256 if (!parman) { in mlxsw_sp1_mr_tcam_region_init()
260 mr_tcam_region->parman = parman; in mlxsw_sp1_mr_tcam_region_init()
271 parman_prio_init(mr_tcam_region->parman, in mlxsw_sp1_mr_tcam_region_init()
276 parman_destroy(parman); in mlxsw_sp1_mr_tcam_region_init()
290 parman_destroy(mr_tcam_region->parman); in mlxsw_sp1_mr_tcam_region_fini()
Dspectrum_acl_ctcam.c164 cregion->parman = parman_create(&mlxsw_sp_acl_ctcam_region_parman_ops, in mlxsw_sp_acl_ctcam_region_init()
166 if (!cregion->parman) in mlxsw_sp_acl_ctcam_region_init()
173 parman_destroy(cregion->parman); in mlxsw_sp_acl_ctcam_region_fini()
180 parman_prio_init(cregion->parman, &cchunk->parman_prio, priority); in mlxsw_sp_acl_ctcam_chunk_init()
197 err = parman_item_add(cregion->parman, &cchunk->parman_prio, in mlxsw_sp_acl_ctcam_entry_add()
209 parman_item_remove(cregion->parman, &cchunk->parman_prio, in mlxsw_sp_acl_ctcam_entry_add()
220 parman_item_remove(cregion->parman, &cchunk->parman_prio, in mlxsw_sp_acl_ctcam_entry_del()
Dspectrum_acl_tcam.h95 struct parman *parman; member
/linux-6.1.9/
DMAINTAINERS15650 F: include/linux/parman.h
15651 F: lib/parman.c