• Home
  • Raw
  • Download

Lines Matching refs:p_first

73     p_cb->freeq[id].p_first = hdr;  in gki_init_free_queue()
97 if (Q->p_first == nullptr) { in gki_alloc_free_queue()
137 p_cb->freeq[tt].p_first = nullptr; in gki_buffer_init()
232 p_q->p_first = p_q->p_last = nullptr; in GKI_init_q()
314 if (Q->p_first == nullptr && gki_alloc_free_queue(i) != true) { in GKI_getbuf()
320 if (Q->p_first == nullptr) { in GKI_getbuf()
327 p_hdr = Q->p_first; in GKI_getbuf()
328 Q->p_first = p_hdr->p_next; in GKI_getbuf()
330 if (!Q->p_first) Q->p_last = nullptr; in GKI_getbuf()
403 if (Q->p_first == nullptr && gki_alloc_free_queue(pool_id) != true) return nullptr; in GKI_getpoolbuf()
405 if (Q->p_first == nullptr) { in GKI_getpoolbuf()
411 p_hdr = Q->p_first; in GKI_getpoolbuf()
412 Q->p_first = p_hdr->p_next; in GKI_getpoolbuf()
414 if (!Q->p_first) Q->p_last = nullptr; in GKI_getpoolbuf()
497 Q->p_first = p_hdr; in GKI_freebuf()
690 if (p_q->p_first) { in GKI_enqueue()
695 p_q->p_first = p_buf; in GKI_enqueue()
740 if (p_q->p_first) { in GKI_enqueue_head()
741 p_hdr->p_next = (BUFFER_HDR_T*)((uint8_t*)p_q->p_first - BUFFER_HDR_SIZE); in GKI_enqueue_head()
742 p_q->p_first = p_buf; in GKI_enqueue_head()
744 p_q->p_first = p_buf; in GKI_enqueue_head()
778 p_hdr = (BUFFER_HDR_T*)((uint8_t*)p_q->p_first - BUFFER_HDR_SIZE); in GKI_dequeue()
783 p_q->p_first = ((uint8_t*)p_hdr->p_next + BUFFER_HDR_SIZE); in GKI_dequeue()
785 p_q->p_first = nullptr; in GKI_dequeue()
817 if (p_buf == p_q->p_first) { in GKI_remove_from_queue()
823 p_prev = (BUFFER_HDR_T*)((uint8_t*)p_q->p_first - BUFFER_HDR_SIZE); in GKI_remove_from_queue()
860 void* GKI_getfirst(BUFFER_Q* p_q) { return (p_q->p_first); } in GKI_getfirst()
1252 Q->p_first = nullptr; in GKI_delete_pool()