Home
last modified time | relevance | path

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

/linux/drivers/dma-buf/
A Ddma-resv.c65 static struct dma_resv_list *dma_resv_list_alloc(unsigned int shared_max) in dma_resv_list_alloc() argument
69 list = kmalloc(struct_size(list, shared, shared_max), GFP_KERNEL); in dma_resv_list_alloc()
73 list->shared_max = (ksize(list) - offsetof(typeof(*list), shared)) / in dma_resv_list_alloc()
159 if (old && old->shared_max) { in dma_resv_reserve_shared()
160 if ((old->shared_count + num_fences) <= old->shared_max) in dma_resv_reserve_shared()
162 max = max(old->shared_count + num_fences, old->shared_max * 2); in dma_resv_reserve_shared()
233 fences->shared_max = fences->shared_count; in dma_resv_reset_shared_max()
272 BUG_ON(fobj->shared_count >= fobj->shared_max); in dma_resv_add_shared_fence()
/linux/include/linux/
A Ddma-resv.h59 u32 shared_count, shared_max; member
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_amdkfd_gpuvm.c250 new = kmalloc(struct_size(new, shared, old->shared_max), GFP_KERNEL); in amdgpu_amdkfd_remove_eviction_fence()
268 new->shared_max = old->shared_max; in amdgpu_amdkfd_remove_eviction_fence()

Completed in 8 milliseconds