Lines Matching refs:completion

40 void rt_completion_init(struct rt_completion *completion)  in rt_completion_init()  argument
42 RT_ASSERT(completion != RT_NULL); in rt_completion_init()
44 completion->susp_thread_n_flag = RT_COMPLETION_NEW_STAT(RT_NULL, RT_UNCOMPLETED); in rt_completion_init()
65 rt_err_t rt_completion_wait_flags(struct rt_completion *completion, in rt_completion_wait_flags() argument
71 RT_ASSERT(completion != RT_NULL); in rt_completion_wait_flags()
82 if (RT_COMPLETION_FLAG(completion) != RT_COMPLETED) in rt_completion_wait_flags()
85 RT_ASSERT(RT_COMPLETION_THREAD(completion) == RT_NULL); in rt_completion_wait_flags()
103 completion->susp_thread_n_flag = waiting_stat; in rt_completion_wait_flags()
125 if (completion->susp_thread_n_flag != waiting_stat) in rt_completion_wait_flags()
143 completion->susp_thread_n_flag = RT_COMPLETION_NEW_STAT(RT_NULL, RT_UNCOMPLETED); in rt_completion_wait_flags()
167 rt_err_t rt_completion_wait_flags_noisr(struct rt_completion *completion, in rt_completion_wait_flags_noisr() argument
170 return rt_completion_wait_flags(completion, timeout, suspend_flag); in rt_completion_wait_flags_noisr()
183 rt_err_t rt_completion_wakeup_by_errno(struct rt_completion *completion, in rt_completion_wakeup_by_errno() argument
189 RT_ASSERT(completion != RT_NULL); in rt_completion_wakeup_by_errno()
192 if (RT_COMPLETION_FLAG(completion) == RT_COMPLETED) in rt_completion_wakeup_by_errno()
198 suspend_thread = RT_COMPLETION_THREAD(completion); in rt_completion_wakeup_by_errno()
221 completion->susp_thread_n_flag = RT_COMPLETION_NEW_STAT(RT_NULL, RT_COMPLETED); in rt_completion_wakeup_by_errno()