Lines Matching full:thread
19 static int cpu_mask_mod(k_tid_t thread, uint32_t enable_mask, uint32_t disable_mask) in cpu_mask_mod() argument
24 __ASSERT(z_is_thread_prevented_from_running(thread), in cpu_mask_mod()
29 if (z_is_thread_prevented_from_running(thread)) { in cpu_mask_mod()
30 thread->base.cpu_mask |= enable_mask; in cpu_mask_mod()
31 thread->base.cpu_mask &= ~disable_mask; in cpu_mask_mod()
38 int m = thread->base.cpu_mask; in cpu_mask_mod()
47 int k_thread_cpu_mask_clear(k_tid_t thread) in k_thread_cpu_mask_clear() argument
49 return cpu_mask_mod(thread, 0, 0xffffffff); in k_thread_cpu_mask_clear()
52 int k_thread_cpu_mask_enable_all(k_tid_t thread) in k_thread_cpu_mask_enable_all() argument
54 return cpu_mask_mod(thread, 0xffffffff, 0); in k_thread_cpu_mask_enable_all()
57 int k_thread_cpu_mask_enable(k_tid_t thread, int cpu) in k_thread_cpu_mask_enable() argument
59 return cpu_mask_mod(thread, BIT(cpu), 0); in k_thread_cpu_mask_enable()
62 int k_thread_cpu_mask_disable(k_tid_t thread, int cpu) in k_thread_cpu_mask_disable() argument
64 return cpu_mask_mod(thread, 0, BIT(cpu)); in k_thread_cpu_mask_disable()
67 int k_thread_cpu_pin(k_tid_t thread, int cpu) in k_thread_cpu_pin() argument
71 ret = k_thread_cpu_mask_clear(thread); in k_thread_cpu_pin()
73 return k_thread_cpu_mask_enable(thread, cpu); in k_thread_cpu_pin()