Lines Matching full:chunks
39 * struct panthor_heap_chunk - Structure used to keep track of allocated heap chunks.
42 /** @node: Used to insert the heap chunk in panthor_heap::chunks. */
53 /** @chunks: List containing all heap chunks allocated so far. */
54 struct list_head chunks; member
56 /** @lock: Lock protecting insertion in the chunks list. */
62 /** @max_chunks: Maximum number of chunks. */
67 * we'd let the FW wait for fragment job to finish instead of allocating new chunks.
71 /** @chunk_count: Number of heap chunks currently allocated. */
163 if (initial_chunk && !list_empty(&heap->chunks)) { in panthor_alloc_heap_chunk()
167 prev_chunk = list_first_entry(&heap->chunks, in panthor_alloc_heap_chunk()
179 list_add(&chunk->node, &heap->chunks); in panthor_alloc_heap_chunk()
199 list_for_each_entry_safe(chunk, tmp, &heap->chunks, node) in panthor_free_heap_chunks()
258 * @max_chunks: Maximum number of chunks that can be allocated.
306 INIT_LIST_HEAD(&heap->chunks); in panthor_heap_create()
316 first_chunk = list_first_entry(&heap->chunks, in panthor_heap_create()
387 list_for_each_entry_safe(chunk, tmp, &heap->chunks, node) { in panthor_heap_return_chunk()
420 * - -ENOMEM if the tiler context reached the maximum number of chunks
448 * reached the maximum number of chunks, let the FW figure another way to in panthor_heap_grow()
473 chunk = list_first_entry(&heap->chunks, in panthor_heap_grow()