Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/dma-buf/
Ddma-resv.c62 static struct dma_resv_list *dma_resv_list_alloc(unsigned int shared_max) in dma_resv_list_alloc() argument
66 list = kmalloc(offsetof(typeof(*list), shared[shared_max]), GFP_KERNEL); in dma_resv_list_alloc()
70 list->shared_max = (ksize(list) - offsetof(typeof(*list), shared)) / in dma_resv_list_alloc()
196 if (old && old->shared_max) { in dma_resv_reserve_shared()
197 if ((old->shared_count + num_fences) <= old->shared_max) in dma_resv_reserve_shared()
201 old->shared_max * 2); in dma_resv_reserve_shared()
287 BUG_ON(fobj->shared_count >= fobj->shared_max); in dma_resv_add_shared_fence()
458 sz += sizeof(*shared) * fobj->shared_max; in dma_resv_get_fences_rcu()
/kernel/linux/linux-5.10/include/linux/
Ddma-resv.h59 u32 shared_count, shared_max; member
223 fence->shared_max = fence->shared_count; in dma_resv_unlock()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c236 new = kmalloc(offsetof(typeof(*new), shared[old->shared_max]), in amdgpu_amdkfd_remove_eviction_fence()
255 new->shared_max = old->shared_max; in amdgpu_amdkfd_remove_eviction_fence()