• Home
  • Raw
  • Download

Lines Matching refs:Q

101     FREE_QUEUE_T  *Q;  in gki_alloc_free_queue()  local
105 Q = &p_cb->freeq[p_cb->pool_list[id]]; in gki_alloc_free_queue()
107 if(Q->p_first == 0) in gki_alloc_free_queue()
109 void* p_mem = GKI_os_malloc((Q->size + BUFFER_PADDING_SIZE) * Q->total); in gki_alloc_free_queue()
113 …alloc_free_queue calling gki_init_free_queue, id:%d size:%d, totol:%d\n", id, Q->size, Q->total); in gki_alloc_free_queue()
114 gki_init_free_queue(id, Q->size, Q->total, p_mem); in gki_alloc_free_queue()
115 … printf("\ngki_alloc_free_queue ret OK, id:%d size:%d, totol:%d\n", id, Q->size, Q->total); in gki_alloc_free_queue()
353 FREE_QUEUE_T *Q; in GKI_getbuf_debug() local
393 Q = &p_cb->freeq[p_cb->pool_list[i]]; in GKI_getbuf_debug()
394 if(Q->cur_cnt < Q->total) in GKI_getbuf_debug()
397 if(Q->p_first == 0 && gki_alloc_free_queue(i) != TRUE) in GKI_getbuf_debug()
403 p_hdr = Q->p_first; in GKI_getbuf_debug()
404 Q->p_first = p_hdr->p_next; in GKI_getbuf_debug()
406 if (!Q->p_first) in GKI_getbuf_debug()
407 Q->p_last = NULL; in GKI_getbuf_debug()
409 if(++Q->cur_cnt > Q->max_cnt) in GKI_getbuf_debug()
410 Q->max_cnt = Q->cur_cnt; in GKI_getbuf_debug()
420 …, %x, %x (%d of %d used) %d", (UINT8*)p_hdr + BUFFER_HDR_SIZE, p_hdr, Q->cur_cnt, Q->total, p_cb->… in GKI_getbuf_debug()
487 FREE_QUEUE_T *Q; in GKI_getpoolbuf_debug() local
500 Q = &p_cb->freeq[pool_id]; in GKI_getpoolbuf_debug()
501 if(Q->cur_cnt < Q->total) in GKI_getpoolbuf_debug()
504 if(Q->p_first == 0 && gki_alloc_free_queue(pool_id) != TRUE) in GKI_getpoolbuf_debug()
507 p_hdr = Q->p_first; in GKI_getpoolbuf_debug()
508 Q->p_first = p_hdr->p_next; in GKI_getpoolbuf_debug()
510 if (!Q->p_first) in GKI_getpoolbuf_debug()
511 Q->p_last = NULL; in GKI_getpoolbuf_debug()
513 if(++Q->cur_cnt > Q->max_cnt) in GKI_getpoolbuf_debug()
514 Q->max_cnt = Q->cur_cnt; in GKI_getpoolbuf_debug()
526 …, %x, %x (%d of %d used) %d", (UINT8*)p_hdr + BUFFER_HDR_SIZE, p_hdr, Q->cur_cnt, Q->total, p_cb->… in GKI_getpoolbuf_debug()
560 FREE_QUEUE_T *Q; in GKI_freebuf() local
594 Q = &gki_cb.com.freeq[p_hdr->q_id]; in GKI_freebuf()
595 if (Q->p_last) in GKI_freebuf()
596 Q->p_last->p_next = p_hdr; in GKI_freebuf()
598 Q->p_first = p_hdr; in GKI_freebuf()
600 Q->p_last = p_hdr; in GKI_freebuf()
604 if (Q->cur_cnt > 0) in GKI_freebuf()
605 Q->cur_cnt--; in GKI_freebuf()
1214 FREE_QUEUE_T *Q; in GKI_igetpoolbuf() local
1221 Q = &gki_cb.com.freeq[pool_id]; in GKI_igetpoolbuf()
1222 if(Q->cur_cnt < Q->total) in GKI_igetpoolbuf()
1224 p_hdr = Q->p_first; in GKI_igetpoolbuf()
1225 Q->p_first = p_hdr->p_next; in GKI_igetpoolbuf()
1227 if (!Q->p_first) in GKI_igetpoolbuf()
1228 Q->p_last = NULL; in GKI_igetpoolbuf()
1230 if(++Q->cur_cnt > Q->max_cnt) in GKI_igetpoolbuf()
1231 Q->max_cnt = Q->cur_cnt; in GKI_igetpoolbuf()
1279 FREE_QUEUE_T *Q; in GKI_poolfreecount() local
1284 Q = &gki_cb.com.freeq[pool_id]; in GKI_poolfreecount()
1286 return ((UINT16)(Q->total - Q->cur_cnt)); in GKI_poolfreecount()
1449 FREE_QUEUE_T *Q; in GKI_delete_pool() local
1456 Q = &p_cb->freeq[pool_id]; in GKI_delete_pool()
1458 if (!Q->cur_cnt) in GKI_delete_pool()
1460 Q->size = 0; in GKI_delete_pool()
1461 Q->total = 0; in GKI_delete_pool()
1462 Q->cur_cnt = 0; in GKI_delete_pool()
1463 Q->max_cnt = 0; in GKI_delete_pool()
1464 Q->p_first = NULL; in GKI_delete_pool()
1465 Q->p_last = NULL; in GKI_delete_pool()
1519 FREE_QUEUE_T *Q; in GKI_poolutilization() local
1524 Q = &gki_cb.com.freeq[pool_id]; in GKI_poolutilization()
1526 if (Q->total == 0) in GKI_poolutilization()
1529 return ((Q->cur_cnt * 100) / Q->total); in GKI_poolutilization()