Lines Matching refs:mbox
597 void GKI_send_msg(uint8_t task_id, uint8_t mbox, void* msg) { in GKI_send_msg() argument
602 if ((task_id >= GKI_MAX_TASKS) || (mbox >= NUM_TASK_MBOX) || in GKI_send_msg()
625 if (p_cb->OSTaskQFirst[task_id][mbox]) in GKI_send_msg()
626 p_cb->OSTaskQLast[task_id][mbox]->p_next = p_hdr; in GKI_send_msg()
628 p_cb->OSTaskQFirst[task_id][mbox] = p_hdr; in GKI_send_msg()
630 p_cb->OSTaskQLast[task_id][mbox] = p_hdr; in GKI_send_msg()
638 GKI_send_event(task_id, (uint16_t)EVENT_MASK(mbox)); in GKI_send_msg()
655 void* GKI_read_mbox(uint8_t mbox) { in GKI_read_mbox() argument
660 if ((task_id >= GKI_MAX_TASKS) || (mbox >= NUM_TASK_MBOX)) return (nullptr); in GKI_read_mbox()
664 if (gki_cb.com.OSTaskQFirst[task_id][mbox]) { in GKI_read_mbox()
665 p_hdr = gki_cb.com.OSTaskQFirst[task_id][mbox]; in GKI_read_mbox()
666 gki_cb.com.OSTaskQFirst[task_id][mbox] = p_hdr->p_next; in GKI_read_mbox()
1139 void GKI_isend_msg(uint8_t task_id, uint8_t mbox, void* msg) { in GKI_isend_msg() argument
1144 if ((task_id >= GKI_MAX_TASKS) || (mbox >= NUM_TASK_MBOX) || in GKI_isend_msg()
1172 if (p_cb->OSTaskQFirst[task_id][mbox]) in GKI_isend_msg()
1173 p_cb->OSTaskQLast[task_id][mbox]->p_next = p_hdr; in GKI_isend_msg()
1175 p_cb->OSTaskQFirst[task_id][mbox] = p_hdr; in GKI_isend_msg()
1177 p_cb->OSTaskQLast[task_id][mbox] = p_hdr; in GKI_isend_msg()
1183 GKI_isend_event(task_id, (uint16_t)EVENT_MASK(mbox)); in GKI_isend_msg()