Searched refs:max_fences (Results 1 – 1 of 1) sorted by relevance
65 u32 num_fences, max_fences; member98 static struct dma_resv_list *dma_resv_list_alloc(unsigned int max_fences) in dma_resv_list_alloc() argument102 list = kmalloc(struct_size(list, table, max_fences), GFP_KERNEL); in dma_resv_list_alloc()106 list->max_fences = (ksize(list) - offsetof(typeof(*list), table)) / in dma_resv_list_alloc()185 if (old && old->max_fences) { in dma_resv_reserve_fences()186 if ((old->num_fences + num_fences) <= old->max_fences) in dma_resv_reserve_fences()188 max = max(old->num_fences + num_fences, old->max_fences * 2); in dma_resv_reserve_fences()259 fences->max_fences = fences->num_fences; in dma_resv_reset_max_fences()307 BUG_ON(fobj->num_fences >= fobj->max_fences); in dma_resv_add_fence()