Lines Matching defs:allocated

577  * mas_allocated() - Get the number of nodes allocated in a maple state.
581 * allocated node or to the number of requested nodes to allocate. If bit 0 is
583 * allocated node, then the total allocated nodes is in that node.
585 * Return: The total number of nodes allocated
600 * The requested number of allocations is either in the first allocated node,
602 * no allocated node. Set the request either in the node or do the necessary
623 * @mas->alloc->request_count if there is at least one node allocated. Decode
1158 * mas_pop_node() - Get a previously allocated maple node from the maple state.
1207 * Stores the maple node back into @mas->alloc for reuse. Updates allocated and
1248 unsigned long allocated = mas_allocated(mas);
1259 if (allocated)
1261 WARN_ON(!allocated);
1264 if (!allocated || mas->alloc->node_count == MAPLE_ALLOC_SLOTS) {
1269 if (allocated) {
1277 node->total = ++allocated;
1297 allocated += count;
1301 mas->alloc->total = allocated;
1310 mas->alloc->total = allocated;
1333 * mas_node_count() - Check if enough nodes are allocated and request more if
1341 unsigned long allocated = mas_allocated(mas);
1343 if (allocated < count) {
1344 mas_set_alloc_req(mas, count - allocated);
1350 * mas_node_count() - Check if enough nodes are allocated and request more if
4294 * to be allocated and replace an existing node to ensure RCU safety,
4295 * when in RCU mode. The exception to requiring a newly allocated node
5388 * Note: The @mas should have pre-allocated entries to ensure there is memory to
5428 * be allocated.
5472 * Return: 0 on success, -ENOMEM if memory could not be allocated.
5550 * the right if necessary. Frees any allocated nodes associated with this maple
5605 * Return: 0 on success, -ENOMEM if memory could not be allocated.
6279 * be allocated.
6316 * be allocated.
6334 * request, -ENOMEM if memory could not be allocated.
6369 * request, -ENOMEM if memory could not be allocated.
6399 * mas_nomem() may release the lock, causing the allocated area
6437 * mas_nomem() may release the lock, causing the allocated area