Home | History | Annotate | Download | only in common

Lines Matching refs:total

46 static void gki_init_free_queue (UINT8 id, UINT16 size, UINT16 total, void *p_mem)
64 p_cb->pool_end[id] = (UINT8 *)p_mem + (act_size * total);
70 p_cb->freeq[id].total = total;
75 LOGD("gki_init_free_queue() init pool=%d, size=%d (aligned=%d) total=%d start=%p", id, size, tempsize, total, p_mem);
83 for (i = 0; i < total; i++)
113 void* p_mem = GKI_os_malloc((Q->size + BUFFER_PADDING_SIZE) * Q->total);
118 ALOGD("\ngki_alloc_free_queue calling gki_init_free_queue, id:%d size:%d, totol:%d\n", id, Q->size, Q->total);
120 gki_init_free_queue(id, Q->size, Q->total, p_mem);
122 ALOGD("\ngki_alloc_free_queue ret OK, id:%d size:%d, totol:%d\n", id, Q->size, Q->total);
169 p_cb->freeq[tt].total = 0;
404 if(Q->cur_cnt < Q->total)
438 LOGD("GKI_getbuf() allocated, %x, %x (%d of %d used) %d", (UINT8*)p_hdr + BUFFER_HDR_SIZE, p_hdr, Q->cur_cnt, Q->total, p_cb->freeq[i].total);
455 LOGD("Dumping total of %d buffer pools", p_cb->curr_total_no_of_pools);
461 LOGD("pool %d has a total of %d buffers (start=%p)", i, p_cb->freeq[i].total, p_hdr);
463 for (x=0; p_hdr && x < p_cb->freeq[i].total; x++)
519 if(Q->cur_cnt < Q->total)
552 LOGD("GKI_getpoolbuf() allocated, %x, %x (%d of %d used) %d", (UINT8*)p_hdr + BUFFER_HDR_SIZE, p_hdr, Q->cur_cnt, Q->total, p_cb->freeq[pool_id].total);
1248 if(Q->cur_cnt < Q->total)
1275 ** Description Called by an application to get the total number of buffers
1280 ** Returns the total number of buffers in the pool
1288 return (gki_cb.com.freeq[pool_id].total);
1312 return ((UINT16)(Q->total - Q->cur_cnt));
1487 Q->total = 0;
1552 if (Q->total == 0)
1555 return ((Q->cur_cnt * 100) / Q->total);