Lines Matching refs:mbox
709 void GKI_send_msg (UINT8 task_id, UINT8 mbox, void *msg)
715 if ((task_id >= GKI_MAX_TASKS) || (mbox >= NUM_TASK_MBOX) || (p_cb->OSRdyTbl[task_id] == TASK_DEAD))
740 if (p_cb->OSTaskQFirst[task_id][mbox])
741 p_cb->OSTaskQLast[task_id][mbox]->p_next = p_hdr;
743 p_cb->OSTaskQFirst[task_id][mbox] = p_hdr;
745 p_cb->OSTaskQLast[task_id][mbox] = p_hdr;
754 GKI_send_event(task_id, (UINT16)EVENT_MASK(mbox));
766 ** Parameters: mbox - (input) mailbox ID to read (0, 1, 2, or 3)
771 void *GKI_read_mbox (UINT8 mbox)
777 if ((task_id >= GKI_MAX_TASKS) || (mbox >= NUM_TASK_MBOX))
782 if (gki_cb.com.OSTaskQFirst[task_id][mbox])
784 p_hdr = gki_cb.com.OSTaskQFirst[task_id][mbox];
785 gki_cb.com.OSTaskQFirst[task_id][mbox] = p_hdr->p_next;
1348 void GKI_isend_msg (UINT8 task_id, UINT8 mbox, void *msg)
1354 if ((task_id >= GKI_MAX_TASKS) || (mbox >= NUM_TASK_MBOX) || (p_cb->OSRdyTbl[task_id] == TASK_DEAD))
1385 if (p_cb->OSTaskQFirst[task_id][mbox])
1386 p_cb->OSTaskQLast[task_id][mbox]->p_next = p_hdr;
1388 p_cb->OSTaskQFirst[task_id][mbox] = p_hdr;
1390 p_cb->OSTaskQLast[task_id][mbox] = p_hdr;
1396 GKI_isend_event(task_id, (UINT16)EVENT_MASK(mbox));