Lines Matching refs:task_id
75 hdr->task_id = GKI_INVALID_TASK; in gki_init_free_queue()
308 p_hdr->task_id = GKI_get_taskid(); in GKI_getbuf()
369 p_hdr->task_id = GKI_get_taskid(); in GKI_getpoolbuf()
434 p_hdr->task_id = GKI_INVALID_TASK; in GKI_freebuf()
504 void GKI_send_msg(uint8_t task_id, uint8_t mbox, void* msg) { in GKI_send_msg() argument
509 if ((task_id >= GKI_MAX_TASKS) || (mbox >= NUM_TASK_MBOX) || in GKI_send_msg()
510 (p_cb->OSRdyTbl[task_id] == TASK_DEAD)) { in GKI_send_msg()
532 if (p_cb->OSTaskQFirst[task_id][mbox]) in GKI_send_msg()
533 p_cb->OSTaskQLast[task_id][mbox]->p_next = p_hdr; in GKI_send_msg()
535 p_cb->OSTaskQFirst[task_id][mbox] = p_hdr; in GKI_send_msg()
537 p_cb->OSTaskQLast[task_id][mbox] = p_hdr; in GKI_send_msg()
541 p_hdr->task_id = task_id; in GKI_send_msg()
545 GKI_send_event(task_id, (uint16_t)EVENT_MASK(mbox)); in GKI_send_msg()
563 uint8_t task_id = GKI_get_taskid(); in GKI_read_mbox() local
567 if ((task_id >= GKI_MAX_TASKS) || (mbox >= NUM_TASK_MBOX)) return (nullptr); in GKI_read_mbox()
571 if (gki_cb.com.OSTaskQFirst[task_id][mbox]) { in GKI_read_mbox()
572 p_hdr = gki_cb.com.OSTaskQFirst[task_id][mbox]; in GKI_read_mbox()
573 gki_cb.com.OSTaskQFirst[task_id][mbox] = p_hdr->p_next; in GKI_read_mbox()
1029 void GKI_change_buf_owner(void* p_buf, uint8_t task_id) { in GKI_change_buf_owner() argument
1032 p_hdr->task_id = task_id; in GKI_change_buf_owner()
1047 void GKI_isend_msg(uint8_t task_id, uint8_t mbox, void* msg) { in GKI_isend_msg() argument
1052 if ((task_id >= GKI_MAX_TASKS) || (mbox >= NUM_TASK_MBOX) || in GKI_isend_msg()
1053 (p_cb->OSRdyTbl[task_id] == TASK_DEAD)) { in GKI_isend_msg()
1080 if (p_cb->OSTaskQFirst[task_id][mbox]) in GKI_isend_msg()
1081 p_cb->OSTaskQLast[task_id][mbox]->p_next = p_hdr; in GKI_isend_msg()
1083 p_cb->OSTaskQFirst[task_id][mbox] = p_hdr; in GKI_isend_msg()
1085 p_cb->OSTaskQLast[task_id][mbox] = p_hdr; in GKI_isend_msg()
1089 p_hdr->task_id = task_id; in GKI_isend_msg()
1091 GKI_isend_event(task_id, (uint16_t)EVENT_MASK(mbox)); in GKI_isend_msg()