Lines Matching defs:shared_max
57 * @shared_max: number of fences we need space for
60 * shared_max.
62 static struct dma_resv_list *dma_resv_list_alloc(unsigned int shared_max)
66 list = kmalloc(offsetof(typeof(*list), shared[shared_max]), GFP_KERNEL);
70 list->shared_max = (ksize(list) - offsetof(typeof(*list), shared)) /
196 if (old && old->shared_max) {
197 if ((old->shared_count + num_fences) <= old->shared_max)
201 old->shared_max * 2);
287 BUG_ON(fobj->shared_count >= fobj->shared_max);
458 sz += sizeof(*shared) * fobj->shared_max;