Home
last modified time | relevance | path

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

/linux-6.3-rc2/lib/
A Dparman.c59 static int parman_enlarge(struct parman *parman) in parman_enlarge() argument
65 err = parman->ops->resize(parman->priv, new_count); in parman_enlarge()
72 static int parman_shrink(struct parman *parman) in parman_shrink() argument
80 err = parman->ops->resize(parman->priv, new_count); in parman_shrink()
189 if (parman->count + 1 > parman->limit_count) { in parman_lsort_item_add()
215 if (parman->limit_count - parman->count >= parman->ops->resize_step) in parman_lsort_item_remove()
269 struct parman *parman; in parman_create() local
271 parman = kzalloc(sizeof(*parman), GFP_KERNEL); in parman_create()
289 void parman_destroy(struct parman *parman) in parman_destroy() argument
354 return parman->algo->item_add(parman, prio, item); in parman_item_add()
[all …]
A 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()
A DMakefile358 obj-$(CONFIG_PARMAN) += parman.o
A DKconfig722 tristate "parman" if COMPILE_TEST
/linux-6.3-rc2/include/linux/
A 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.3-rc2/drivers/net/ethernet/mellanox/mlxsw/
A 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()
A 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()
A Dspectrum_acl_tcam.h90 struct parman *parman; member
/linux-6.3-rc2/
A DMAINTAINERS15859 F: include/linux/parman.h
15860 F: lib/parman.c

Completed in 31 milliseconds