Searched defs:heap (Results 1 - 17 of 17) sorted by relevance

/drivers/gpu/drm/nouveau/core/subdev/instmem/
H A Dnv04.h16 struct nouveau_mm heap; member in struct:nv04_instmem_priv
/drivers/gpu/drm/nouveau/core/include/core/
H A Dgpuobj.h20 struct nouveau_mm heap; member in struct:nouveau_gpuobj
H A Dmm.h10 u8 heap; member in struct:nouveau_mm_node
34 int nouveau_mm_head(struct nouveau_mm *, u8 heap, u8 type, u32 size_max,
36 int nouveau_mm_tail(struct nouveau_mm *, u8 heap, u8 type, u32 size_max,
/drivers/staging/android/ion/
H A Dion_carveout_heap.c29 struct ion_heap heap; member in struct:ion_carveout_heap
34 ion_phys_addr_t ion_carveout_allocate(struct ion_heap *heap, argument
39 container_of(heap, struct ion_carveout_heap, heap);
48 void ion_carveout_free(struct ion_heap *heap, ion_phys_addr_t addr, argument
52 container_of(heap, struct ion_carveout_heap, heap);
59 static int ion_carveout_heap_phys(struct ion_heap *heap, argument
72 static int ion_carveout_heap_allocate(struct ion_heap *heap, argument
91 paddr = ion_carveout_allocate(heap, siz
111 struct ion_heap *heap = buffer->heap; local
127 ion_carveout_heap_map_dma(struct ion_heap *heap, struct ion_buffer *buffer) argument
133 ion_carveout_heap_unmap_dma(struct ion_heap *heap, struct ion_buffer *buffer) argument
185 ion_carveout_heap_destroy(struct ion_heap *heap) argument
[all...]
H A Dion_chunk_heap.c28 struct ion_heap heap; member in struct:ion_chunk_heap
36 static int ion_chunk_heap_allocate(struct ion_heap *heap, argument
42 container_of(heap, struct ion_chunk_heap, heap);
95 struct ion_heap *heap = buffer->heap; local
97 container_of(heap, struct ion_chunk_heap, heap);
120 static struct sg_table *ion_chunk_heap_map_dma(struct ion_heap *heap, argument
126 static void ion_chunk_heap_unmap_dma(struct ion_heap *heap, argument
186 ion_chunk_heap_destroy(struct ion_heap *heap) argument
[all...]
H A Dion_cma_heap.c30 struct ion_heap heap; member in struct:ion_cma_heap
34 #define to_cma_heap(x) container_of(x, struct ion_cma_heap, heap)
61 /* ION CMA heap operations functions */
62 static int ion_cma_allocate(struct ion_heap *heap, struct ion_buffer *buffer, argument
66 struct ion_cma_heap *cma_heap = to_cma_heap(heap);
113 struct ion_cma_heap *cma_heap = to_cma_heap(buffer->heap);
127 static int ion_cma_phys(struct ion_heap *heap, struct ion_buffer *buffer, argument
130 struct ion_cma_heap *cma_heap = to_cma_heap(buffer->heap);
143 static struct sg_table *ion_cma_heap_map_dma(struct ion_heap *heap, argument
151 static void ion_cma_heap_unmap_dma(struct ion_heap *heap, argument
167 ion_cma_map_kernel(struct ion_heap *heap, struct ion_buffer *buffer) argument
175 ion_cma_unmap_kernel(struct ion_heap *heap, struct ion_buffer *buffer) argument
208 ion_cma_heap_destroy(struct ion_heap *heap) argument
[all...]
H A Dion_heap.c28 void *ion_heap_map_kernel(struct ion_heap *heap, argument
65 void ion_heap_unmap_kernel(struct ion_heap *heap, argument
71 int ion_heap_map_user(struct ion_heap *heap, struct ion_buffer *buffer, argument
163 void ion_heap_freelist_add(struct ion_heap *heap, struct ion_buffer *buffer) argument
165 spin_lock(&heap->free_lock);
166 list_add(&buffer->list, &heap->free_list);
167 heap->free_list_size += buffer->size;
168 spin_unlock(&heap->free_lock);
169 wake_up(&heap->waitqueue);
172 size_t ion_heap_freelist_size(struct ion_heap *heap) argument
183 _ion_heap_freelist_drain(struct ion_heap *heap, size_t size, bool skip_pools) argument
215 ion_heap_freelist_drain(struct ion_heap *heap, size_t size) argument
220 ion_heap_freelist_shrink(struct ion_heap *heap, size_t size) argument
227 struct ion_heap *heap = data; local
251 ion_heap_init_deferred_free(struct ion_heap *heap) argument
273 struct ion_heap *heap = container_of(shrinker, struct ion_heap, local
286 struct ion_heap *heap = container_of(shrinker, struct ion_heap, local
311 ion_heap_init_shrinker(struct ion_heap *heap) argument
322 struct ion_heap *heap = NULL; local
358 ion_heap_destroy(struct ion_heap *heap) argument
[all...]
H A Dion_priv.h42 * @heap: back pointer to the heap the buffer came from
71 struct ion_heap *heap; member in struct:ion_buffer
94 * struct ion_heap_ops - ops to operate on a given heap
113 int (*allocate)(struct ion_heap *heap,
117 int (*phys)(struct ion_heap *heap, struct ion_buffer *buffer,
119 struct sg_table * (*map_dma)(struct ion_heap *heap,
121 void (*unmap_dma)(struct ion_heap *heap, struct ion_buffer *buffer);
122 void * (*map_kernel)(struct ion_heap *heap, struct ion_buffer *buffer);
123 void (*unmap_kernel)(struct ion_heap *heap, struc
[all...]
H A Dion_system_heap.c51 struct ion_heap heap; member in struct:ion_system_heap
55 static struct page *alloc_buffer_page(struct ion_system_heap *heap, argument
60 struct ion_page_pool *pool = heap->pools[order_to_index(order)];
80 static void free_buffer_page(struct ion_system_heap *heap, argument
87 struct ion_page_pool *pool = heap->pools[order_to_index(order)];
98 static struct page *alloc_largest_available(struct ion_system_heap *heap, argument
112 page = alloc_buffer_page(heap, buffer, orders[i]);
122 static int ion_system_heap_allocate(struct ion_heap *heap, argument
127 struct ion_system_heap *sys_heap = container_of(heap,
129 heap);
201 ion_system_heap_map_dma(struct ion_heap *heap, struct ion_buffer *buffer) argument
207 ion_system_heap_unmap_dma(struct ion_heap *heap, struct ion_buffer *buffer) argument
212 ion_system_heap_shrink(struct ion_heap *heap, gfp_t gfp_mask, int nr_to_scan) argument
241 ion_system_heap_debug_show(struct ion_heap *heap, struct seq_file *s, void *unused) argument
265 struct ion_system_heap *heap; local
299 ion_system_heap_destroy(struct ion_heap *heap) argument
311 ion_system_contig_heap_allocate(struct ion_heap *heap, struct ion_buffer *buffer, unsigned long len, unsigned long align, unsigned long flags) argument
376 ion_system_contig_heap_phys(struct ion_heap *heap, struct ion_buffer *buffer, ion_phys_addr_t *addr, size_t *len) argument
387 ion_system_contig_heap_map_dma(struct ion_heap *heap, struct ion_buffer *buffer) argument
393 ion_system_contig_heap_unmap_dma(struct ion_heap *heap, struct ion_buffer *buffer) argument
411 struct ion_heap *heap; local
421 ion_system_contig_heap_destroy(struct ion_heap *heap) argument
[all...]
H A Dion.c176 static struct ion_buffer *ion_buffer_create(struct ion_heap *heap, argument
191 buffer->heap = heap;
195 ret = heap->ops->allocate(heap, buffer, len, align, flags);
198 if (!(heap->flags & ION_HEAP_FLAG_DEFER_FREE))
201 ion_heap_freelist_drain(heap, 0);
202 ret = heap->ops->allocate(heap, buffer, len, align,
211 table = heap
287 struct ion_heap *heap = buffer->heap; local
481 struct ion_heap *heap; local
1394 struct ion_heap *heap = s->private; local
1469 struct ion_heap *heap = data; local
1488 struct ion_heap *heap = data; local
1504 ion_device_add_heap(struct ion_device *dev, struct ion_heap *heap) argument
[all...]
/drivers/gpu/drm/nouveau/core/core/
H A Dmm.c101 b->heap = a->heap;
112 nouveau_mm_head(struct nouveau_mm *mm, u8 heap, u8 type, u32 size_max, argument
123 if (unlikely(heap != NVKM_MM_HEAP_ANY)) {
124 if (this->heap != heap)
175 b->heap = a->heap;
185 nouveau_mm_tail(struct nouveau_mm *mm, u8 heap, u8 type, u32 size_max, argument
197 if (unlikely(heap !
[all...]
H A Dgpuobj.c43 nouveau_mm_free(&nv_gpuobj(gpuobj->parent)->heap,
47 if (gpuobj->heap.block_size)
48 nouveau_mm_fini(&gpuobj->heap);
64 struct nouveau_mm *heap = NULL; local
72 if (nv_gpuobj(pargpu)->heap.block_size)
78 nv_error(parent, "no gpuobj heap\n");
83 heap = &nv_gpuobj(pargpu)->heap;
117 if (heap) {
118 ret = nouveau_mm_head(heap,
[all...]
/drivers/gpu/drm/nouveau/core/subdev/bar/
H A Dnv50.c112 struct nouveau_object *heap; local
125 heap = nv_object(priv->mem);
129 ret = nouveau_gpuobj_new(nv_object(priv), heap,
135 ret = nouveau_gpuobj_new(nv_object(priv), heap, 0x4000, 0,
150 ret = nouveau_gpuobj_new(nv_object(priv), heap,
162 ret = nouveau_gpuobj_new(nv_object(priv), heap, 24, 16, 0, &priv->bar3);
189 ret = nouveau_gpuobj_new(nv_object(priv), heap, 24, 16, 0, &priv->bar1);
/drivers/gpu/drm/radeon/
H A Dradeon_mem.c84 static struct mem_block *alloc_block(struct mem_block *heap, int size, argument
90 list_for_each(p, heap) {
99 static struct mem_block *find_block(struct mem_block *heap, int start) argument
103 list_for_each(p, heap)
115 * 'heap' to stop it being subsumed.
134 /* Initialize. How to check for an uninitialized heap?
136 static int init_heap(struct mem_block **heap, int start, int size) argument
143 *heap = kzalloc(sizeof(**heap), GFP_KERNEL);
144 if (!*heap) {
161 radeon_mem_release(struct drm_file *file_priv, struct mem_block *heap) argument
189 radeon_mem_takedown(struct mem_block **heap) argument
224 struct mem_block *block, **heap; local
259 struct mem_block *block, **heap; local
285 struct mem_block **heap; local
[all...]
/drivers/gpu/drm/nouveau/
H A Dnouveau_abi16.h27 struct nouveau_mm heap; member in struct:nouveau_abi16_chan
/drivers/gpu/drm/nouveau/core/subdev/fb/
H A Dramnv50.c261 struct nouveau_mm *heap = &pfb->vram; local
299 ret = nouveau_mm_tail(heap, 0, type, max, min, align, &r);
301 ret = nouveau_mm_head(heap, 0, type, max, min, align, &r);
/drivers/gpu/drm/ttm/
H A Dttm_bo.c1010 const struct ttm_place *heap = &placement->placement[i]; local
1012 (mem->start < heap->fpfn ||
1013 (heap->lpfn != 0 && (mem->start + mem->num_pages) > heap->lpfn)))
1016 *new_flags = heap->flags;
1023 const struct ttm_place *heap = &placement->busy_placement[i]; local
1025 (mem->start < heap->fpfn ||
1026 (heap->lpfn != 0 && (mem->start + mem->num_pages) > heap->lpfn)))
1029 *new_flags = heap
[all...]

Completed in 2398 milliseconds