Home
last modified time | relevance | path

Searched refs:MAPLE_ALLOC_SLOTS (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/include/linux/
H A Dmaple_tree.h32 #define MAPLE_ALLOC_SLOTS (MAPLE_NODE_SLOTS - 1) macro
38 #define MAPLE_ALLOC_SLOTS (MAPLE_NODE_SLOTS - 2) macro
136 struct maple_alloc *slot[MAPLE_ALLOC_SLOTS];
/openbmc/linux/tools/testing/radix-tree/
H A Dmaple.c81 mas_node_count_gfp(mas, MAPLE_ALLOC_SLOTS + 1, GFP_KERNEL); in check_mas_alloc_node_count()
82 mas_node_count_gfp(mas, MAPLE_ALLOC_SLOTS + 3, GFP_KERNEL); in check_mas_alloc_node_count()
288 for (j = 0; j < MAPLE_ALLOC_SLOTS; j++) { in check_new_node()
342 mas_node_count(&mas, MAPLE_ALLOC_SLOTS + 1); /* Request */ in check_new_node()
346 MT_BUG_ON(mt, mas.alloc->node_count != MAPLE_ALLOC_SLOTS); in check_new_node()
351 MT_BUG_ON(mt, mas_allocated(&mas) != MAPLE_ALLOC_SLOTS); in check_new_node()
356 MT_BUG_ON(mt, mas.alloc->node_count != MAPLE_ALLOC_SLOTS); in check_new_node()
359 mas_node_count(&mas, MAPLE_ALLOC_SLOTS + 2); /* Request */ in check_new_node()
369 MT_BUG_ON(mt, mas.alloc->node_count != MAPLE_ALLOC_SLOTS); in check_new_node()
377 for (i = 1; i <= MAPLE_ALLOC_SLOTS + 1; i++) { in check_new_node()
[all …]
/openbmc/linux/lib/
H A Dmaple_tree.c1221 if (count && (head->node_count < MAPLE_ALLOC_SLOTS)) { in mas_push_node()
1264 if (!allocated || mas->alloc->node_count == MAPLE_ALLOC_SLOTS) { in mas_alloc_nodes()
1284 max_req = MAPLE_ALLOC_SLOTS - node->node_count; in mas_alloc_nodes()