Lines Matching full:p_buf
516 ** Parameters p_buf - (input) address of the beginning of a buffer.
521 void GKI_freebuf (void *p_buf)
527 if (!p_buf || gki_chk_buf_damage(p_buf))
534 p_hdr = (BUFFER_HDR_T *) ((UINT8 *)p_buf - BUFFER_HDR_SIZE);
578 ** Parameters p_buf - (input) address of the beginning of a buffer.
583 UINT16 GKI_get_buf_size (void *p_buf)
587 p_hdr = (BUFFER_HDR_T *)((UINT8 *) p_buf - BUFFER_HDR_SIZE);
609 BOOLEAN gki_chk_buf_damage(void *p_buf)
614 magic = (UINT32 *)((UINT8 *) p_buf + GKI_get_buf_size(p_buf));
705 void *p_buf = NULL;
721 p_buf = (UINT8 *)p_hdr + BUFFER_HDR_SIZE;
726 return (p_buf);
738 ** p_buf - (input) address of the buffer to enqueue
743 void GKI_enqueue (BUFFER_Q *p_q, void *p_buf)
748 if (gki_chk_buf_damage(p_buf))
755 p_hdr = (BUFFER_HDR_T *) ((UINT8 *) p_buf - BUFFER_HDR_SIZE);
772 p_q->p_first = p_buf;
774 p_q->p_last = p_buf;
793 ** p_buf - (input) address of the buffer to enqueue
798 void GKI_enqueue_head (BUFFER_Q *p_q, void *p_buf)
803 if (gki_chk_buf_damage(p_buf))
810 p_hdr = (BUFFER_HDR_T *) ((UINT8 *) p_buf - BUFFER_HDR_SIZE);
823 p_q->p_first = p_buf;
827 p_q->p_first = p_buf;
828 p_q->p_last = p_buf;
894 ** p_buf - (input) address of the buffer to enqueue
899 void *GKI_remove_from_queue (BUFFER_Q *p_q, void *p_buf)
906 if (p_buf == p_q->p_first)
912 p_buf_hdr = (BUFFER_HDR_T *)((UINT8 *)p_buf - BUFFER_HDR_SIZE);
923 if (p_buf == p_q->p_last)
934 return (p_buf);
981 ** Parameters: p_buf - (input) pointer to the buffer to find the next one from.
986 void *GKI_getnext (void *p_buf)
990 p_hdr = (BUFFER_HDR_T *) ((UINT8 *) p_buf - BUFFER_HDR_SIZE);
1250 ** Parameters: p_buf - (input) pointer to the buffer
1256 void GKI_change_buf_owner (void *p_buf, UINT8 task_id)
1258 BUFFER_HDR_T *p_hdr = (BUFFER_HDR_T *) ((UINT8 *) p_buf - BUFFER_HDR_SIZE);