Lines Matching refs:list
56 * dma_resv_list_alloc - allocate fence list
64 struct dma_resv_list *list;
66 list = kmalloc(offsetof(typeof(*list), shared[shared_max]), GFP_KERNEL);
67 if (!list)
70 list->shared_max = (ksize(list) - offsetof(typeof(*list), shared)) /
71 sizeof(*list->shared);
73 return list;
77 * dma_resv_list_free - free fence list
78 * @list: list to free
82 static void dma_resv_list_free(struct dma_resv_list *list)
86 if (!list)
89 for (i = 0; i < list->shared_count; ++i)
90 dma_fence_put(rcu_dereference_protected(list->shared[i], true));
92 kfree_rcu(list, rcu);