Searched refs:p_q (Results 1 - 10 of 10) sorted by relevance

/external/bluetooth/bluedroid/hci/src/
H A Dutils.c79 void utils_queue_init (BUFFER_Q *p_q) argument
81 p_q->p_first = p_q->p_last = NULL;
82 p_q->count = 0;
94 void utils_enqueue (BUFFER_Q *p_q, void *p_buf) argument
102 if (p_q->p_last)
105 (HC_BUFFER_HDR_T *)((uint8_t *)p_q->p_last - BT_HC_BUFFER_HDR_SIZE);
110 p_q->p_first = p_buf;
112 p_q->p_last = p_buf;
113 p_q
128 utils_dequeue(BUFFER_Q *p_q) argument
145 utils_dequeue_unlocked(BUFFER_Q *p_q) argument
203 utils_remove_from_queue(BUFFER_Q *p_q, void *p_buf) argument
219 utils_remove_from_queue_unlocked(BUFFER_Q *p_q, void *p_buf) argument
[all...]
/external/bluetooth/bluedroid/hci/include/
H A Dutils.h88 void utils_queue_init (BUFFER_Q *p_q);
99 void utils_enqueue (BUFFER_Q *p_q, void *p_buf);
110 void *utils_dequeue (BUFFER_Q *p_q);
121 void *utils_dequeue_unlocked (BUFFER_Q *p_q);
144 void *utils_remove_from_queue (BUFFER_Q *p_q, void *p_buf);
155 void *utils_remove_from_queue_unlocked (BUFFER_Q *p_q, void *p_buf);
/external/bluetooth/bluedroid/gki/common/
H A Dgki_buffer.c343 void GKI_init_q (BUFFER_Q *p_q) argument
345 p_q->p_first = p_q->p_last = NULL;
346 p_q->count = 0;
737 ** Parameters: p_q - (input) pointer to a queue.
743 void GKI_enqueue (BUFFER_Q *p_q, void *p_buf) argument
766 if (p_q->p_last)
768 BUFFER_HDR_T *p_last_hdr = (BUFFER_HDR_T *)((UINT8 *)p_q->p_last - BUFFER_HDR_SIZE);
772 p_q->p_first = p_buf;
774 p_q
798 GKI_enqueue_head(BUFFER_Q *p_q, void *p_buf) argument
852 GKI_dequeue(BUFFER_Q *p_q) argument
899 GKI_remove_from_queue(BUFFER_Q *p_q, void *p_buf) argument
953 GKI_getfirst(BUFFER_Q *p_q) argument
970 GKI_getlast(BUFFER_Q *p_q) argument
1011 GKI_queue_is_empty(BUFFER_Q *p_q) argument
[all...]
H A Dgki.h351 #define GKI_IS_QUEUE_EMPTY(p_q) ((p_q)->count == 0)
/external/libnfc-nci/halimpl/bcm2079x/gki/common/
H A Dgki_buffer.c331 void GKI_init_q (BUFFER_Q *p_q) argument
333 p_q->p_first = p_q->p_last = NULL;
334 p_q->count = 0;
806 ** Parameters: p_q - (input) pointer to a queue.
812 void GKI_enqueue (BUFFER_Q *p_q, void *p_buf) argument
835 if (p_q->p_first)
837 BUFFER_HDR_T *p_last_hdr = (BUFFER_HDR_T *)((UINT8 *)p_q->p_last - BUFFER_HDR_SIZE);
841 p_q->p_first = p_buf;
843 p_q
867 GKI_enqueue_head(BUFFER_Q *p_q, void *p_buf) argument
921 GKI_dequeue(BUFFER_Q *p_q) argument
968 GKI_remove_from_queue(BUFFER_Q *p_q, void *p_buf) argument
1022 GKI_getfirst(BUFFER_Q *p_q) argument
1038 GKI_getlast(BUFFER_Q *p_q) argument
1079 GKI_queue_is_empty(BUFFER_Q *p_q) argument
[all...]
H A Dgki.h366 #define GKI_IS_QUEUE_EMPTY(p_q) ((p_q)->count == 0)
/external/libnfc-nci/src/gki/common/
H A Dgki_buffer.c331 void GKI_init_q (BUFFER_Q *p_q) argument
333 p_q->p_first = p_q->p_last = NULL;
334 p_q->count = 0;
806 ** Parameters: p_q - (input) pointer to a queue.
812 void GKI_enqueue (BUFFER_Q *p_q, void *p_buf) argument
835 if (p_q->p_first)
837 BUFFER_HDR_T *p_last_hdr = (BUFFER_HDR_T *)((UINT8 *)p_q->p_last - BUFFER_HDR_SIZE);
841 p_q->p_first = p_buf;
843 p_q
867 GKI_enqueue_head(BUFFER_Q *p_q, void *p_buf) argument
921 GKI_dequeue(BUFFER_Q *p_q) argument
968 GKI_remove_from_queue(BUFFER_Q *p_q, void *p_buf) argument
1022 GKI_getfirst(BUFFER_Q *p_q) argument
1038 GKI_getlast(BUFFER_Q *p_q) argument
1079 GKI_queue_is_empty(BUFFER_Q *p_q) argument
[all...]
H A Dgki.h369 #define GKI_IS_QUEUE_EMPTY(p_q) ((p_q)->count == 0)
/external/bluetooth/bluedroid/stack/l2cap/
H A Dl2c_utils.c1136 tL2C_CCB_Q *p_q = NULL; local
1141 p_q = &p_ccb->p_lcb->ccb_queue;
1143 if ( (!p_ccb->in_use) || (p_q == NULL) )
1154 if (!p_q->p_first_ccb)
1156 p_q->p_first_ccb = p_q->p_last_ccb = p_ccb;
1161 p_ccb1 = p_q->p_first_ccb;
1169 if (p_ccb1 == p_q->p_first_ccb)
1170 p_q->p_first_ccb = p_ccb;
1187 p_q
1227 tL2C_CCB_Q *p_q = NULL; local
[all...]
/external/bluetooth/bluedroid/btif/src/
H A Dbtif_media_task.c1203 static void btif_media_flush_q(BUFFER_Q *p_q) argument
1205 while (GKI_IS_QUEUE_EMPTY(p_q) == FALSE)
1207 GKI_freebuf(GKI_dequeue(p_q));

Completed in 199 milliseconds