Lines Matching refs:nthreads

1025 	unsigned int nthreads;  member
1032 init_synch_test_common(struct synch_test_common *info, unsigned int nthreads) in init_synch_test_common() argument
1034 info->nthreads = nthreads; in init_synch_test_common()
1035 info->threads = kalloc_type(thread_t, nthreads, Z_WAITOK); in init_synch_test_common()
1046 kfree_type(thread_t, info->nthreads, info->threads); in destroy_synch_test_common()
1059 for (i = 0; i < info->nthreads; i++) { in start_threads()
1063 info->max_pri = priority + (info->nthreads - 1) * 5; in start_threads()
1068 for (i = 0; i < info->nthreads; i++) { in start_threads()
1090 wait_threads(&info->test_done, info->nthreads); in wait_all_thread()
1105 for (i = 0; i < info->nthreads; i++) { in wait_for_waiters()
1144 for (i = 0; i < info->nthreads; i++) { in exclude_current_waiter()
2331 info->synch_value = info->head.nthreads; in test_cache_reflock()
2333 info->value = info->head.nthreads; in test_cache_reflock()
2352 info->synch_value = info->head.nthreads; in test_refcount_reflock()
2368 info->synch_value = info->head.nthreads; in test_force_reflock()
2382 info->synch_value = info->head.nthreads; in test_lock_reflock()
2397 info->synch_value = info->head.nthreads; in test_sleep_with_wake_all()
2411 info->synch_value = info->head.nthreads; in test_sleep_with_wake_one()
2419 T_ASSERT(info->value == (int)info->head.nthreads, "value protected by sleep"); in test_sleep_with_wake_one()
2431 info->synch_value = info->head.nthreads; in test_change_sleep_inheritor()
2442 info->synch_value = info->head.nthreads; in test_no_inheritor()
2445 info->value = info->head.nthreads; in test_no_inheritor()
2455 info->value = info->head.nthreads; in test_rw_lock()
2457 info->synch_value = info->head.nthreads; in test_rw_lock()
2467 info->value = info->head.nthreads; in test_mtx_lock()
2469 info->synch_value = info->head.nthreads; in test_mtx_lock()
2937 while (os_atomic_load(&info->head.threads[info->head.nthreads - 1], acquire) == NULL) { in thread_sleep_gate_chain_work()
2943 for (i = 0; i < info->head.nthreads; i = i + 2) { in thread_sleep_gate_chain_work()
2968 for (i = 0; i < info->head.nthreads; i++) { in thread_sleep_gate_chain_work()
2987 T_ASSERT(i != (info->head.nthreads - 1), "thread id"); in thread_sleep_gate_chain_work()
2990 T_ASSERT(i == (info->head.nthreads - 1), "thread id"); in thread_sleep_gate_chain_work()
3029 while (os_atomic_load(&info->head.threads[info->head.nthreads - 1], acquire) == NULL) { in thread_gate_chain_work()
3035 for (i = 0; i < info->head.nthreads; i++) { in thread_gate_chain_work()
3043 assert(i != info->head.nthreads); in thread_gate_chain_work()
3095 while (os_atomic_load(&info->head.threads[info->head.nthreads - 1], acquire) == NULL) { in thread_sleep_chain_work()
3118 for (i = 0; i < info->head.nthreads; i++) { in thread_sleep_chain_work()
3137 T_ASSERT(i != (info->head.nthreads - 1), "thread id"); in thread_sleep_chain_work()
3140 T_ASSERT(i == (info->head.nthreads - 1), "thread id"); in thread_sleep_chain_work()
3158 info->synch_value = info->head.nthreads; in test_sleep_chain()
3169 info->synch_value = info->head.nthreads; in test_gate_chain()
3180 info->synch_value = info->head.nthreads; in test_sleep_gate_chain()