Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/dma-buf/
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(offsetof(typeof(*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()
157 if (old && old->shared_max) { in dma_resv_reserve_shared()
158 if ((old->shared_count + num_fences) <= old->shared_max) in dma_resv_reserve_shared()
162 old->shared_max * 2); in dma_resv_reserve_shared()
249 BUG_ON(fobj->shared_count >= fobj->shared_max); in dma_resv_add_shared_fence()
425 sz += sizeof(*shared) * fobj->shared_max; in dma_resv_get_fences_rcu()
/Linux-v5.4/include/linux/
Ddma-resv.h61 u32 shared_count, shared_max; member
225 fence->shared_max = fence->shared_count; in dma_resv_unlock()
/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c232 new = kmalloc(offsetof(typeof(*new), shared[old->shared_max]), in amdgpu_amdkfd_remove_eviction_fence()
251 new->shared_max = old->shared_max; in amdgpu_amdkfd_remove_eviction_fence()