Lines Matching refs:tidx
268 static bool thread_idx_alloc(uintptr_t *tidx) in thread_idx_alloc() argument
279 *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() argument
312 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() local
408 if (!thread_idx_alloc(&tidx)) { in z_object_alloc()
428 thread_idx_free(tidx); in z_object_alloc()
434 zo->data.thread_id = tidx; in z_object_alloc()