Lines Matching refs:old
189 struct dma_resv_list *old, *new;
194 old = dma_resv_get_list(obj);
196 if (old && old->shared_max) {
197 if ((old->shared_count + num_fences) <= old->shared_max)
200 max = max(old->shared_count + num_fences,
201 old->shared_max * 2);
213 * references from the old struct are carried over to
216 for (i = 0, j = 0, k = max; i < (old ? old->shared_count : 0); ++i) {
219 fence = rcu_dereference_protected(old->shared[i],
233 * old array are protected by RCU and so will not vanish under
238 if (!old)
249 kfree_rcu(old, rcu);
266 struct dma_fence *old;
280 old = rcu_dereference_protected(fobj->shared[i],
282 if (old->context == fence->context ||
283 dma_fence_is_signaled(old))
288 old = NULL;
297 dma_fence_put(old);
311 struct dma_resv_list *old;
316 old = dma_resv_get_list(obj);
317 if (old)
318 i = old->shared_count;
326 if (old)
327 old->shared_count = 0;
332 dma_fence_put(rcu_dereference_protected(old->shared[i],
349 struct dma_fence *old, *new;
404 old = dma_resv_get_excl(dst);
413 dma_fence_put(old);