Lines Matching refs:ret
44 rt_err_t ret; in hal_mailbox_send() local
52 ret = rt_mb_send(mailbox, value); in hal_mailbox_send()
53 if (ret != RT_EOK) in hal_mailbox_send()
64 rt_err_t ret; in hal_mailbox_send_wait() local
72 ret = rt_mb_send_wait(mailbox, value, timeout); in hal_mailbox_send_wait()
73 if (ret != RT_EOK) in hal_mailbox_send_wait()
84 rt_err_t ret; in hal_mailbox_recv() local
92 ret = rt_mb_recv(mailbox, (rt_ubase_t *)value, timeout); in hal_mailbox_recv()
93 if (ret != RT_EOK) in hal_mailbox_recv()
104 rt_err_t ret = -1; in hal_is_mailbox_empty() local
113 ret = rt_mb_control(mailbox, RT_IPC_CMD_GET_STATE, &arg); in hal_is_mailbox_empty()
114 if (ret != RT_EOK) in hal_is_mailbox_empty()
127 int ret = 0; in hal_workqueue_dowork() local
128 ret = rt_workqueue_dowork(queue, work); in hal_workqueue_dowork()
129 return ret; in hal_workqueue_dowork()
152 rt_err_t ret; in hal_queue_send_wait() local
160 ret = rt_mq_send_wait(queue, buffer, queue->msg_size, timeout); in hal_queue_send_wait()
161 if (ret != RT_EOK) in hal_queue_send_wait()
176 rt_err_t ret; in hal_queue_recv() local
184 ret = rt_mq_recv(queue, buffer, queue->msg_size, timeout); in hal_queue_recv()
185 if (ret < 0) in hal_queue_recv()
196 rt_err_t ret = -1; in hal_is_queue_empty() local
205 ret = rt_mq_control(queue, RT_IPC_CMD_GET_STATE, &arg); in hal_is_queue_empty()
206 if (ret != RT_EOK) in hal_is_queue_empty()