Lines Matching full:array
11 #include <linux/dma-fence-array.h>
17 /* Internal helper to start new array iteration, don't use directly */
21 cursor->array = dma_fence_chain_contained(cursor->chain); in __dma_fence_unwrap_array()
23 return dma_fence_array_first(cursor->array); in __dma_fence_unwrap_array()
54 tmp = dma_fence_array_next(cursor->array, cursor->index); in dma_fence_unwrap_next()
88 struct dma_fence *tmp, **array; in __dma_fence_unwrap_merge() local
114 array = kmalloc_array(count, sizeof(*array), GFP_KERNEL); in __dma_fence_unwrap_merge()
115 if (!array) in __dma_fence_unwrap_merge()
122 array[count++] = dma_fence_get(tmp); in __dma_fence_unwrap_merge()
135 sort(array, count, sizeof(*array), fence_cmp, NULL); in __dma_fence_unwrap_merge()
142 if (array[i]->context == array[j]->context) in __dma_fence_unwrap_merge()
143 dma_fence_put(array[i]); in __dma_fence_unwrap_merge()
145 array[++j] = array[i]; in __dma_fence_unwrap_merge()
150 result = dma_fence_array_create(count, array, in __dma_fence_unwrap_merge()
155 dma_fence_put(array[i]); in __dma_fence_unwrap_merge()
166 tmp = array[0]; in __dma_fence_unwrap_merge()
169 kfree(array); in __dma_fence_unwrap_merge()