Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/dma-buf/
Ddma-resv.c63 static struct dma_resv_list *dma_resv_list_alloc(unsigned int shared_max) in dma_resv_list_alloc() argument
67 list = kmalloc(struct_size(list, shared, shared_max), GFP_KERNEL); in dma_resv_list_alloc()
71 list->shared_max = (ksize(list) - offsetof(typeof(*list), shared)) / in dma_resv_list_alloc()
153 if (old && old->shared_max) { in dma_resv_reserve_shared()
154 if ((old->shared_count + num_fences) <= old->shared_max) in dma_resv_reserve_shared()
156 max = max(old->shared_count + num_fences, old->shared_max * 2); in dma_resv_reserve_shared()
227 fences->shared_max = fences->shared_count; in dma_resv_reset_shared_max()
264 BUG_ON(fobj->shared_count >= fobj->shared_max); in dma_resv_add_shared_fence()
436 sz += sizeof(*shared) * fobj->shared_max; in dma_resv_get_fences()
/Linux-v5.15/include/linux/
Ddma-resv.h59 u32 shared_count, shared_max; member
/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c248 new = kmalloc(struct_size(new, shared, old->shared_max), GFP_KERNEL); in amdgpu_amdkfd_remove_eviction_fence()
266 new->shared_max = old->shared_max; in amdgpu_amdkfd_remove_eviction_fence()