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