Lines Matching defs:p_buf

581 ** Parameters       p_buf - (input) address of the beginning of a buffer.
586 void GKI_freebuf (void *p_buf)
592 if (!p_buf || gki_chk_buf_damage(p_buf))
599 p_hdr = (BUFFER_HDR_T *) ((UINT8 *)p_buf - BUFFER_HDR_SIZE);
602 LOGD("GKI_freebuf() freeing, %x, %x, func:%s(line=%d)", p_buf, p_hdr, p_hdr->_function, p_hdr->_line);
647 ** Parameters p_buf - (input) address of the beginning of a buffer.
652 UINT16 GKI_get_buf_size (void *p_buf)
656 p_hdr = (BUFFER_HDR_T *)((UINT8 *) p_buf - BUFFER_HDR_SIZE);
678 BOOLEAN gki_chk_buf_damage(void *p_buf)
683 magic = (UINT32 *)((UINT8 *) p_buf + GKI_get_buf_size(p_buf));
774 void *p_buf = NULL;
790 p_buf = (UINT8 *)p_hdr + BUFFER_HDR_SIZE;
795 return (p_buf);
807 ** p_buf - (input) address of the buffer to enqueue
812 void GKI_enqueue (BUFFER_Q *p_q, void *p_buf)
817 if (gki_chk_buf_damage(p_buf))
824 p_hdr = (BUFFER_HDR_T *) ((UINT8 *) p_buf - BUFFER_HDR_SIZE);
841 p_q->p_first = p_buf;
843 p_q->p_last = p_buf;
862 ** p_buf - (input) address of the buffer to enqueue
867 void GKI_enqueue_head (BUFFER_Q *p_q, void *p_buf)
872 if (gki_chk_buf_damage(p_buf))
879 p_hdr = (BUFFER_HDR_T *) ((UINT8 *) p_buf - BUFFER_HDR_SIZE);
892 p_q->p_first = p_buf;
896 p_q->p_first = p_buf;
897 p_q->p_last = p_buf;
963 ** p_buf - (input) address of the buffer to enqueue
968 void *GKI_remove_from_queue (BUFFER_Q *p_q, void *p_buf)
975 if (p_buf == p_q->p_first)
981 p_buf_hdr = (BUFFER_HDR_T *)((UINT8 *)p_buf - BUFFER_HDR_SIZE);
992 if (p_buf == p_q->p_last)
1003 return (p_buf);
1049 ** Parameters: p_buf - (input) pointer to the buffer to find the next one from.
1054 void *GKI_getnext (void *p_buf)
1058 p_hdr = (BUFFER_HDR_T *) ((UINT8 *) p_buf - BUFFER_HDR_SIZE);
1323 ** Parameters: p_buf - (input) pointer to the buffer
1329 void GKI_change_buf_owner (void *p_buf, UINT8 task_id)
1331 BUFFER_HDR_T *p_hdr = (BUFFER_HDR_T *) ((UINT8 *) p_buf - BUFFER_HDR_SIZE);