Lines Matching refs:shared_count

77 		if (old->shared_count < old->shared_max) {  in reservation_object_reserve_shared()
115 for (i = 0; i < fobj->shared_count; ++i) { in reservation_object_add_shared_inplace()
144 BUG_ON(fobj->shared_count >= fobj->shared_max); in reservation_object_add_shared_inplace()
145 RCU_INIT_POINTER(fobj->shared[fobj->shared_count], fence); in reservation_object_add_shared_inplace()
146 fobj->shared_count++; in reservation_object_add_shared_inplace()
167 fobj->shared_count = 1; in reservation_object_add_shared_replace()
177 for (i = 0, j = 0, k = fobj->shared_max; i < old->shared_count; ++i) { in reservation_object_add_shared_replace()
189 fobj->shared_count = j; in reservation_object_add_shared_replace()
190 RCU_INIT_POINTER(fobj->shared[fobj->shared_count], fence); in reservation_object_add_shared_replace()
191 fobj->shared_count++; in reservation_object_add_shared_replace()
257 i = old->shared_count; in reservation_object_add_excl_fence()
267 old->shared_count = 0; in reservation_object_add_excl_fence()
300 unsigned shared_count = src_list->shared_count; in reservation_object_copy_fences() local
302 size = offsetof(typeof(*src_list), shared[shared_count]); in reservation_object_copy_fences()
311 if (!src_list || src_list->shared_count > shared_count) { in reservation_object_copy_fences()
316 dst_list->shared_count = 0; in reservation_object_copy_fences()
317 dst_list->shared_max = shared_count; in reservation_object_copy_fences()
318 for (i = 0; i < src_list->shared_count; ++i) { in reservation_object_copy_fences()
337 rcu_assign_pointer(dst_list->shared[dst_list->shared_count++], fence); in reservation_object_copy_fences()
388 unsigned int shared_count; in reservation_object_get_fences_rcu() local
396 shared_count = i = 0; in reservation_object_get_fences_rcu()
429 shared_count = fobj ? fobj->shared_count : 0; in reservation_object_get_fences_rcu()
430 for (i = 0; i < shared_count; ++i) { in reservation_object_get_fences_rcu()
440 ++shared_count; in reservation_object_get_fences_rcu()
444 if (i != shared_count || read_seqcount_retry(&obj->seq, seq)) { in reservation_object_get_fences_rcu()
456 if (!shared_count) { in reservation_object_get_fences_rcu()
461 *pshared_count = shared_count; in reservation_object_get_fences_rcu()
487 unsigned seq, shared_count; in reservation_object_wait_timeout_rcu() local
492 shared_count = 0; in reservation_object_wait_timeout_rcu()
516 shared_count = fobj->shared_count; in reservation_object_wait_timeout_rcu()
518 for (i = 0; !fence && i < shared_count; ++i) { in reservation_object_wait_timeout_rcu()
547 if (ret > 0 && wait_all && (i + 1 < shared_count)) in reservation_object_wait_timeout_rcu()
589 unsigned seq, shared_count; in reservation_object_test_signaled_rcu() local
595 shared_count = 0; in reservation_object_test_signaled_rcu()
605 shared_count = fobj->shared_count; in reservation_object_test_signaled_rcu()
607 for (i = 0; i < shared_count; ++i) { in reservation_object_test_signaled_rcu()
621 if (!shared_count) { in reservation_object_test_signaled_rcu()