Searched refs:shared_max (Results 1 – 3 of 3) sorted by relevance
65 static struct dma_resv_list *dma_resv_list_alloc(unsigned int shared_max) in dma_resv_list_alloc() argument69 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()
61 u32 shared_count, shared_max; member225 fence->shared_max = fence->shared_count; in dma_resv_unlock()
232 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()