Home | History | Annotate | Download | only in common

Lines Matching defs:p_hdr

372     BUFFER_HDR_T  *p_hdr;
414 p_hdr = Q->p_first;
415 Q->p_first = p_hdr->p_next;
425 p_hdr->task_id = GKI_get_taskid();
427 p_hdr->status = BUF_STATUS_UNLINKED;
428 p_hdr->p_next = NULL;
429 p_hdr->Type = 0;
431 return ((void *) ((UINT8 *)p_hdr + BUFFER_HDR_SIZE));
460 BUFFER_HDR_T *p_hdr;
481 p_hdr = Q->p_first;
482 Q->p_first = p_hdr->p_next;
493 p_hdr->task_id = GKI_get_taskid();
495 p_hdr->status = BUF_STATUS_UNLINKED;
496 p_hdr->p_next = NULL;
497 p_hdr->Type = 0;
499 return ((void *) ((UINT8 *)p_hdr + BUFFER_HDR_SIZE));
524 BUFFER_HDR_T *p_hdr;
534 p_hdr = (BUFFER_HDR_T *) ((UINT8 *)p_buf - BUFFER_HDR_SIZE);
536 if (p_hdr->status != BUF_STATUS_UNLINKED)
542 if (p_hdr->q_id >= GKI_NUM_TOTAL_BUF_POOLS)
553 Q = &gki_cb.com.freeq[p_hdr->q_id];
555 Q->p_last->p_next = p_hdr;
557 Q->p_first = p_hdr;
559 Q->p_last = p_hdr;
560 p_hdr->p_next = NULL;
561 p_hdr->status = BUF_STATUS_FREE;
562 p_hdr->task_id = GKI_INVALID_TASK;
585 BUFFER_HDR_T *p_hdr;
587 p_hdr = (BUFFER_HDR_T *)((UINT8 *) p_buf - BUFFER_HDR_SIZE);
589 if ((UINT32)p_hdr & 1)
592 if (p_hdr->q_id < GKI_NUM_TOTAL_BUF_POOLS)
594 return (gki_cb.com.freeq[p_hdr->q_id].size);
642 BUFFER_HDR_T *p_hdr;
661 p_hdr = (BUFFER_HDR_T *) ((UINT8 *) msg - BUFFER_HDR_SIZE);
663 if (p_hdr->status != BUF_STATUS_UNLINKED)
672 p_cb->OSTaskQLast[task_id][mbox]->p_next = p_hdr;
674 p_cb->OSTaskQFirst[task_id][mbox] = p_hdr;
676 p_cb->OSTaskQLast[task_id][mbox] = p_hdr;
678 p_hdr->p_next = NULL;
679 p_hdr->status = BUF_STATUS_QUEUED;
680 p_hdr->task_id = task_id;
706 BUFFER_HDR_T *p_hdr;
715 p_hdr = gki_cb.com.OSTaskQFirst[task_id][mbox];
716 gki_cb.com.OSTaskQFirst[task_id][mbox] = p_hdr->p_next;
718 p_hdr->p_next = NULL;
719 p_hdr->status = BUF_STATUS_UNLINKED;
721 p_buf = (UINT8 *)p_hdr + BUFFER_HDR_SIZE;
745 BUFFER_HDR_T *p_hdr;
755 p_hdr = (BUFFER_HDR_T *) ((UINT8 *) p_buf - BUFFER_HDR_SIZE);
757 if (p_hdr->status != BUF_STATUS_UNLINKED)
769 p_last_hdr->p_next = p_hdr;
777 p_hdr->p_next = NULL;
778 p_hdr->status = BUF_STATUS_QUEUED;
800 BUFFER_HDR_T *p_hdr;
810 p_hdr = (BUFFER_HDR_T *) ((UINT8 *) p_buf - BUFFER_HDR_SIZE);
812 if (p_hdr->status != BUF_STATUS_UNLINKED)
822 p_hdr->p_next = (BUFFER_HDR_T *)((UINT8 *)p_q->p_first - BUFFER_HDR_SIZE);
829 p_hdr->p_next = NULL;
833 p_hdr->status = BUF_STATUS_QUEUED;
854 BUFFER_HDR_T *p_hdr;
864 p_hdr = (BUFFER_HDR_T *)((UINT8 *)p_q->p_first - BUFFER_HDR_SIZE);
868 if (p_hdr->p_next)
869 p_q->p_first = ((UINT8 *)p_hdr->p_next + BUFFER_HDR_SIZE);
878 p_hdr->p_next = NULL;
879 p_hdr->status = BUF_STATUS_UNLINKED;
883 return ((UINT8 *)p_hdr + BUFFER_HDR_SIZE);
988 BUFFER_HDR_T *p_hdr;
990 p_hdr = (BUFFER_HDR_T *) ((UINT8 *) p_buf - BUFFER_HDR_SIZE);
992 if (p_hdr->p_next)
993 return ((UINT8 *)p_hdr->p_next + BUFFER_HDR_SIZE);
1170 BUFFER_HDR_T *p_hdr;
1179 p_hdr = Q->p_first;
1180 Q->p_first = p_hdr->p_next;
1188 p_hdr->task_id = GKI_get_taskid();
1190 p_hdr->status = BUF_STATUS_UNLINKED;
1191 p_hdr->p_next = NULL;
1192 p_hdr->Type = 0;
1194 return ((void *) ((UINT8 *)p_hdr + BUFFER_HDR_SIZE));
1258 BUFFER_HDR_T *p_hdr = (BUFFER_HDR_T *) ((UINT8 *) p_buf - BUFFER_HDR_SIZE);
1260 p_hdr->task_id = task_id;
1277 BUFFER_HDR_T *p_hdr;
1304 p_hdr = (BUFFER_HDR_T *) ((UINT8 *) msg - BUFFER_HDR_SIZE);
1306 if (p_hdr->status != BUF_STATUS_UNLINKED)
1313 p_cb->OSTaskQLast[task_id][mbox]->p_next = p_hdr;
1315 p_cb->OSTaskQFirst[task_id][mbox] = p_hdr;
1317 p_cb->OSTaskQLast[task_id][mbox] = p_hdr;
1319 p_hdr->p_next = NULL;
1320 p_hdr->status = BUF_STATUS_QUEUED;
1321 p_hdr->task_id = task_id;