Lines Matching refs:thread

260 			     k_tid_t thread)  in add_thread_locked()  argument
265 __ASSERT_NO_MSG(thread != NULL); in add_thread_locked()
267 LOG_DBG("add thread %p to domain %p\n", thread, domain); in add_thread_locked()
269 &thread->mem_domain_info.mem_domain_q_node); in add_thread_locked()
270 thread->mem_domain_info.mem_domain = domain; in add_thread_locked()
273 ret = arch_mem_domain_thread_add(thread); in add_thread_locked()
279 static int remove_thread_locked(struct k_thread *thread) in remove_thread_locked() argument
283 __ASSERT_NO_MSG(thread != NULL); in remove_thread_locked()
285 thread, thread->mem_domain_info.mem_domain); in remove_thread_locked()
286 sys_dlist_remove(&thread->mem_domain_info.mem_domain_q_node); in remove_thread_locked()
289 ret = arch_mem_domain_thread_remove(thread); in remove_thread_locked()
296 void z_mem_domain_init_thread(struct k_thread *thread) in z_mem_domain_init_thread() argument
302 ret = add_thread_locked(_current->mem_domain_info.mem_domain, thread); in z_mem_domain_init_thread()
310 void z_mem_domain_exit_thread(struct k_thread *thread) in z_mem_domain_exit_thread() argument
316 ret = remove_thread_locked(thread); in z_mem_domain_exit_thread()
323 int k_mem_domain_add_thread(struct k_mem_domain *domain, k_tid_t thread) in k_mem_domain_add_thread() argument
329 if (thread->mem_domain_info.mem_domain != domain) { in k_mem_domain_add_thread()
330 ret = remove_thread_locked(thread); in k_mem_domain_add_thread()
333 ret = add_thread_locked(domain, thread); in k_mem_domain_add_thread()