• Home
  • Raw
  • Download

Lines Matching refs:shared_count

90 	for (i = 0; i < list->shared_count; ++i)  in dma_resv_list_free()
154 if ((old->shared_count + num_fences) <= old->shared_max) in dma_resv_reserve_shared()
156 max = max(old->shared_count + num_fences, old->shared_max * 2); in dma_resv_reserve_shared()
171 for (i = 0, j = 0, k = max; i < (old ? old->shared_count : 0); ++i) { in dma_resv_reserve_shared()
181 new->shared_count = j; in dma_resv_reserve_shared()
227 fences->shared_max = fences->shared_count; in dma_resv_reset_shared_max()
251 count = fobj->shared_count; in dma_resv_add_shared_fence()
264 BUG_ON(fobj->shared_count >= fobj->shared_max); in dma_resv_add_shared_fence()
271 smp_store_mb(fobj->shared_count, count); in dma_resv_add_shared_fence()
295 i = old->shared_count; in dma_resv_add_excl_fence()
304 old->shared_count = 0; in dma_resv_add_excl_fence()
336 unsigned int shared_count = src_list->shared_count; in dma_resv_copy_fences() local
340 dst_list = dma_resv_list_alloc(shared_count); in dma_resv_copy_fences()
346 if (!src_list || src_list->shared_count > shared_count) { in dma_resv_copy_fences()
351 dst_list->shared_count = 0; in dma_resv_copy_fences()
352 for (i = 0; i < src_list->shared_count; ++i) { in dma_resv_copy_fences()
372 dst = &dst_list->shared[dst_list->shared_count++]; in dma_resv_copy_fences()
417 unsigned int shared_count; in dma_resv_get_fences() local
425 shared_count = i = 0; in dma_resv_get_fences()
462 shared_count = fobj ? fobj->shared_count : 0; in dma_resv_get_fences()
463 for (i = 0; i < shared_count; ++i) { in dma_resv_get_fences()
470 if (i != shared_count || read_seqcount_retry(&obj->seq, seq)) { in dma_resv_get_fences()
485 shared[shared_count++] = fence_excl; in dma_resv_get_fences()
487 if (!shared_count) { in dma_resv_get_fences()
492 *pshared_count = shared_count; in dma_resv_get_fences()
516 unsigned int seq, shared_count; in dma_resv_wait_timeout() local
521 shared_count = 0; in dma_resv_wait_timeout()
544 shared_count = fobj->shared_count; in dma_resv_wait_timeout()
546 for (i = 0; !fence && i < shared_count; ++i) { in dma_resv_wait_timeout()
576 if (ret > 0 && wait_all && (i + 1 < shared_count)) in dma_resv_wait_timeout()
629 unsigned int i, shared_count; in dma_resv_test_signaled() local
631 shared_count = fobj ? fobj->shared_count : 0; in dma_resv_test_signaled()
632 for (i = 0; i < shared_count; ++i) { in dma_resv_test_signaled()