Searched refs:tidx (Results 1 – 2 of 2) sorted by relevance
268 static bool thread_idx_alloc(uintptr_t *tidx) in thread_idx_alloc() argument279 *tidx = base + (idx - 1); in thread_idx_alloc()288 (void *)*tidx); in thread_idx_alloc()309 static void thread_idx_free(uintptr_t tidx) in thread_idx_free() argument312 k_object_wordlist_foreach(clear_perms_cb, (void *)tidx); in thread_idx_free()315 int base = tidx / NUM_BITS(_thread_idx_map[0]); in thread_idx_free()316 int offset = tidx % NUM_BITS(_thread_idx_map[0]); in thread_idx_free()399 uintptr_t tidx = 0; in z_object_alloc() local408 if (!thread_idx_alloc(&tidx)) { in z_object_alloc()428 thread_idx_free(tidx); in z_object_alloc()[all …]
36 int tidx = POINTER_TO_INT(p1); in worker() local41 zassert_true(tidx >= 0 && tidx < NUM_THREADS, ""); in worker()44 exec_order[n_exec++] = tidx; in worker()