Lines Matching refs:p_buf
94 void utils_enqueue (BUFFER_Q *p_q, void *p_buf)
98 p_hdr = (HC_BUFFER_HDR_T *) ((uint8_t *) p_buf - BT_HC_BUFFER_HDR_SIZE);
110 p_q->p_first = p_buf;
112 p_q->p_last = p_buf;
131 void* p_buf = utils_dequeue_unlocked(p_q);
133 return p_buf;
182 void *utils_getnext (void *p_buf)
186 p_hdr = (HC_BUFFER_HDR_T *) ((uint8_t *) p_buf - BT_HC_BUFFER_HDR_SIZE);
203 void *utils_remove_from_queue (BUFFER_Q *p_q, void *p_buf)
206 p_buf = utils_remove_from_queue_unlocked(p_q, p_buf);
208 return p_buf;
219 void *utils_remove_from_queue_unlocked (BUFFER_Q *p_q, void *p_buf)
225 if (p_buf == p_q->p_first)
230 p_buf_hdr = (HC_BUFFER_HDR_T *)((uint8_t *)p_buf - BT_HC_BUFFER_HDR_SIZE);
241 if (p_buf == p_q->p_last)
250 return (p_buf);