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(struct_size(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()159 if (old && old->shared_max) { in dma_resv_reserve_shared()160 if ((old->shared_count + num_fences) <= old->shared_max) in dma_resv_reserve_shared()162 max = max(old->shared_count + num_fences, old->shared_max * 2); in dma_resv_reserve_shared()233 fences->shared_max = fences->shared_count; in dma_resv_reset_shared_max()272 BUG_ON(fobj->shared_count >= fobj->shared_max); in dma_resv_add_shared_fence()
59 u32 shared_count, shared_max; member
250 new = kmalloc(struct_size(new, shared, old->shared_max), GFP_KERNEL); in amdgpu_amdkfd_remove_eviction_fence()268 new->shared_max = old->shared_max; in amdgpu_amdkfd_remove_eviction_fence()
Completed in 9 milliseconds