Searched refs:parman (Results 1 – 9 of 9) sorted by relevance
/openbmc/linux/lib/ |
H A D | parman.c | 59 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 …]
|
H A 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()
|
H A D | Makefile | 367 obj-$(CONFIG_PARMAN) += parman.o
|
H A D | Kconfig | 721 tristate "parman" if COMPILE_TEST
|
/openbmc/linux/include/linux/ |
H A D | parman.h | 64 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,
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum1_mr_tcam.c | 15 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()
|
H A D | spectrum_acl_ctcam.c | 164 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()
|
H A D | spectrum_acl_tcam.h | 91 struct parman *parman; member
|
/openbmc/linux/ |
H A D | MAINTAINERS | 16271 F: include/linux/parman.h 16272 F: lib/parman.c
|