Searched refs:shared_max (Results 1 – 3 of 3) sorted by relevance
62 static struct dma_resv_list *dma_resv_list_alloc(unsigned int shared_max) in dma_resv_list_alloc() argument66 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()
59 u32 shared_count, shared_max; member223 fence->shared_max = fence->shared_count; in dma_resv_unlock()
236 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()