Lines Matching refs:index
537 static void unref_check(struct k_object *ko, uintptr_t index) in unref_check() argument
541 sys_bitfield_clear_bit((mem_addr_t)&ko->perms, index); in unref_check()
616 int index = thread_index_get(thread); in k_thread_perms_set() local
618 if (index != -1) { in k_thread_perms_set()
619 sys_bitfield_set_bit((mem_addr_t)&ko->perms, index); in k_thread_perms_set()
625 int index = thread_index_get(thread); in k_thread_perms_clear() local
627 if (index != -1) { in k_thread_perms_clear()
628 sys_bitfield_clear_bit((mem_addr_t)&ko->perms, index); in k_thread_perms_clear()
629 unref_check(ko, index); in k_thread_perms_clear()
642 uintptr_t index = thread_index_get(thread); in k_thread_perms_all_clear() local
644 if ((int)index != -1) { in k_thread_perms_all_clear()
645 k_object_wordlist_foreach(clear_perms_cb, (void *)index); in k_thread_perms_all_clear()
651 int index; in thread_perms_test() local
657 index = thread_index_get(arch_current_thread()); in thread_perms_test()
658 if (index != -1) { in thread_perms_test()
659 return sys_bitfield_test_bit((mem_addr_t)&ko->perms, index); in thread_perms_test()
666 int index = thread_index_get(arch_current_thread()); in dump_permission_error() local
668 arch_current_thread(), index, in dump_permission_error()