• Home
  • Raw
  • Download

Lines Matching refs:Q

96     FREE_QUEUE_T  *Q;  in gki_alloc_free_queue()  local
100 Q = &p_cb->freeq[p_cb->pool_list[id]]; in gki_alloc_free_queue()
102 if(Q->p_first == 0) in gki_alloc_free_queue()
104 void* p_mem = GKI_os_malloc((Q->size + BUFFER_PADDING_SIZE) * Q->total); in gki_alloc_free_queue()
108 …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()
109 gki_init_free_queue(id, Q->size, Q->total, p_mem); in gki_alloc_free_queue()
110 … GKI_TRACE("\ngki_alloc_free_queue ret OK, id:%d size:%d, totol:%d\n", id, Q->size, Q->total); in gki_alloc_free_queue()
371 FREE_QUEUE_T *Q; in GKI_getbuf() local
405 Q = &p_cb->freeq[p_cb->pool_list[i]]; in GKI_getbuf()
409 if(Q->cur_cnt < Q->total) in GKI_getbuf()
413 if(Q->p_first == 0 && gki_alloc_free_queue(i) != TRUE) in GKI_getbuf()
420 p_hdr = Q->p_first; in GKI_getbuf()
421 Q->p_first = p_hdr->p_next; in GKI_getbuf()
423 if (!Q->p_first) in GKI_getbuf()
424 Q->p_last = NULL; in GKI_getbuf()
426 if(++Q->cur_cnt > Q->max_cnt) in GKI_getbuf()
427 Q->max_cnt = Q->cur_cnt; in GKI_getbuf()
465 FREE_QUEUE_T *Q; in GKI_getpoolbuf() local
478 Q = &p_cb->freeq[pool_id]; in GKI_getpoolbuf()
479 if(Q->cur_cnt < Q->total) in GKI_getpoolbuf()
483 if(Q->p_first == 0 && gki_alloc_free_queue(pool_id) != TRUE) in GKI_getpoolbuf()
490 p_hdr = Q->p_first; in GKI_getpoolbuf()
491 Q->p_first = p_hdr->p_next; in GKI_getpoolbuf()
493 if (!Q->p_first) in GKI_getpoolbuf()
494 Q->p_last = NULL; in GKI_getpoolbuf()
496 if(++Q->cur_cnt > Q->max_cnt) in GKI_getpoolbuf()
497 Q->max_cnt = Q->cur_cnt; in GKI_getpoolbuf()
532 FREE_QUEUE_T *Q; in GKI_freebuf() local
562 Q = &gki_cb.com.freeq[p_hdr->q_id]; in GKI_freebuf()
563 if (Q->p_last) in GKI_freebuf()
564 Q->p_last->p_next = p_hdr; in GKI_freebuf()
566 Q->p_first = p_hdr; in GKI_freebuf()
568 Q->p_last = p_hdr; in GKI_freebuf()
572 if (Q->cur_cnt > 0) in GKI_freebuf()
573 Q->cur_cnt--; in GKI_freebuf()
1103 FREE_QUEUE_T *Q; in GKI_igetpoolbuf() local
1110 Q = &gki_cb.com.freeq[pool_id]; in GKI_igetpoolbuf()
1111 if(Q->cur_cnt < Q->total) in GKI_igetpoolbuf()
1113 p_hdr = Q->p_first; in GKI_igetpoolbuf()
1114 Q->p_first = p_hdr->p_next; in GKI_igetpoolbuf()
1116 if (!Q->p_first) in GKI_igetpoolbuf()
1117 Q->p_last = NULL; in GKI_igetpoolbuf()
1119 if(++Q->cur_cnt > Q->max_cnt) in GKI_igetpoolbuf()
1120 Q->max_cnt = Q->cur_cnt; in GKI_igetpoolbuf()
1168 FREE_QUEUE_T *Q; in GKI_poolfreecount() local
1173 Q = &gki_cb.com.freeq[pool_id]; in GKI_poolfreecount()
1175 return ((UINT16)(Q->total - Q->cur_cnt)); in GKI_poolfreecount()
1211 FREE_QUEUE_T *Q; in GKI_poolutilization() local
1216 Q = &gki_cb.com.freeq[pool_id]; in GKI_poolutilization()
1218 if (Q->total == 0) in GKI_poolutilization()
1221 return ((Q->cur_cnt * 100) / Q->total); in GKI_poolutilization()