Lines Matching refs:p_hdr
257 BUFFER_HDR_T* p_hdr;
299 p_hdr = Q->p_first;
300 Q->p_first = p_hdr->p_next;
308 p_hdr->task_id = GKI_get_taskid();
310 p_hdr->status = BUF_STATUS_UNLINKED;
311 p_hdr->p_next = NULL;
312 p_hdr->Type = 0;
313 return ((void*)((uint8_t*)p_hdr + BUFFER_HDR_SIZE));
342 BUFFER_HDR_T* p_hdr;
360 p_hdr = Q->p_first;
361 Q->p_first = p_hdr->p_next;
369 p_hdr->task_id = GKI_get_taskid();
371 p_hdr->status = BUF_STATUS_UNLINKED;
372 p_hdr->p_next = NULL;
373 p_hdr->Type = 0;
375 return ((void*)((uint8_t*)p_hdr + BUFFER_HDR_SIZE));
399 BUFFER_HDR_T* p_hdr;
408 p_hdr = (BUFFER_HDR_T*)((uint8_t*)p_buf - BUFFER_HDR_SIZE);
410 if (p_hdr->status != BUF_STATUS_UNLINKED) {
415 if (p_hdr->q_id >= GKI_NUM_TOTAL_BUF_POOLS) {
425 Q = &gki_cb.com.freeq[p_hdr->q_id];
427 Q->p_last->p_next = p_hdr;
429 Q->p_first = p_hdr;
431 Q->p_last = p_hdr;
432 p_hdr->p_next = NULL;
433 p_hdr->status = BUF_STATUS_FREE;
434 p_hdr->task_id = GKI_INVALID_TASK;
454 BUFFER_HDR_T* p_hdr;
456 p_hdr = (BUFFER_HDR_T*)((uint8_t*)p_buf - BUFFER_HDR_SIZE);
458 if ((uintptr_t)p_hdr & 1) return (0);
460 if (p_hdr->q_id < GKI_NUM_TOTAL_BUF_POOLS) {
461 return (gki_cb.com.freeq[p_hdr->q_id].size);
505 BUFFER_HDR_T* p_hdr;
523 p_hdr = (BUFFER_HDR_T*)((uint8_t*)msg - BUFFER_HDR_SIZE);
525 if (p_hdr->status != BUF_STATUS_UNLINKED) {
533 p_cb->OSTaskQLast[task_id][mbox]->p_next = p_hdr;
535 p_cb->OSTaskQFirst[task_id][mbox] = p_hdr;
537 p_cb->OSTaskQLast[task_id][mbox] = p_hdr;
539 p_hdr->p_next = NULL;
540 p_hdr->status = BUF_STATUS_QUEUED;
541 p_hdr->task_id = task_id;
565 BUFFER_HDR_T* p_hdr;
572 p_hdr = gki_cb.com.OSTaskQFirst[task_id][mbox];
573 gki_cb.com.OSTaskQFirst[task_id][mbox] = p_hdr->p_next;
575 p_hdr->p_next = NULL;
576 p_hdr->status = BUF_STATUS_UNLINKED;
578 p_buf = (uint8_t*)p_hdr + BUFFER_HDR_SIZE;
599 BUFFER_HDR_T* p_hdr;
608 p_hdr = (BUFFER_HDR_T*)((uint8_t*)p_buf - BUFFER_HDR_SIZE);
610 if (p_hdr->status != BUF_STATUS_UNLINKED) {
622 p_last_hdr->p_next = p_hdr;
629 p_hdr->p_next = NULL;
630 p_hdr->status = BUF_STATUS_QUEUED;
650 BUFFER_HDR_T* p_hdr;
659 p_hdr = (BUFFER_HDR_T*)((uint8_t*)p_buf - BUFFER_HDR_SIZE);
661 if (p_hdr->status != BUF_STATUS_UNLINKED) {
670 p_hdr->p_next = (BUFFER_HDR_T*)((uint8_t*)p_q->p_first - BUFFER_HDR_SIZE);
675 p_hdr->p_next = NULL;
679 p_hdr->status = BUF_STATUS_QUEUED;
698 BUFFER_HDR_T* p_hdr;
707 p_hdr = (BUFFER_HDR_T*)((uint8_t*)p_q->p_first - BUFFER_HDR_SIZE);
711 if (p_hdr->p_next)
712 p_q->p_first = ((uint8_t*)p_hdr->p_next + BUFFER_HDR_SIZE);
720 p_hdr->p_next = NULL;
721 p_hdr->status = BUF_STATUS_UNLINKED;
725 return ((uint8_t*)p_hdr + BUFFER_HDR_SIZE);
818 BUFFER_HDR_T* p_hdr;
820 p_hdr = (BUFFER_HDR_T*)((uint8_t*)p_buf - BUFFER_HDR_SIZE);
822 if (p_hdr->p_next)
823 return ((uint8_t*)p_hdr->p_next + BUFFER_HDR_SIZE);
1030 BUFFER_HDR_T* p_hdr = (BUFFER_HDR_T*)((uint8_t*)p_buf - BUFFER_HDR_SIZE);
1032 p_hdr->task_id = task_id;
1048 BUFFER_HDR_T* p_hdr;
1073 p_hdr = (BUFFER_HDR_T*)((uint8_t*)msg - BUFFER_HDR_SIZE);
1075 if (p_hdr->status != BUF_STATUS_UNLINKED) {
1081 p_cb->OSTaskQLast[task_id][mbox]->p_next = p_hdr;
1083 p_cb->OSTaskQFirst[task_id][mbox] = p_hdr;
1085 p_cb->OSTaskQLast[task_id][mbox] = p_hdr;
1087 p_hdr->p_next = NULL;
1088 p_hdr->status = BUF_STATUS_QUEUED;
1089 p_hdr->task_id = task_id;