Lines Matching refs:pool_id

26 static void gki_add_to_pool_list(UINT8 pool_id);
27 static void gki_remove_from_pool_list(UINT8 pool_id);
502 void *GKI_getpoolbuf_debug (UINT8 pool_id, const char * _function_, int _line_) in GKI_getpoolbuf_debug() argument
504 void *GKI_getpoolbuf (UINT8 pool_id) in GKI_getpoolbuf_debug()
511 if (pool_id >= GKI_NUM_TOTAL_BUF_POOLS) in GKI_getpoolbuf_debug()
515 LOGD("GKI_getpoolbuf() requesting from %d func:%s(line=%d)", pool_id, _function_, _line_); in GKI_getpoolbuf_debug()
520 Q = &p_cb->freeq[pool_id]; in GKI_getpoolbuf_debug()
524 if(Q->p_first == 0 && gki_alloc_free_queue(pool_id) != TRUE) in GKI_getpoolbuf_debug()
554 …ed) %d", (UINT8*)p_hdr + BUFFER_HDR_SIZE, p_hdr, Q->cur_cnt, Q->total, p_cb->freeq[pool_id].total); in GKI_getpoolbuf_debug()
568 return (GKI_getbuf_debug(p_cb->freeq[pool_id].size, _function_, _line_)); in GKI_getpoolbuf_debug()
571 return (GKI_getbuf(p_cb->freeq[pool_id].size)); in GKI_getpoolbuf_debug()
1146 UINT8 GKI_set_pool_permission(UINT8 pool_id, UINT8 permission) in GKI_set_pool_permission() argument
1150 if (pool_id < GKI_NUM_TOTAL_BUF_POOLS) in GKI_set_pool_permission()
1153 p_cb->pool_access_mask = (UINT16)(p_cb->pool_access_mask | (1 << pool_id)); in GKI_set_pool_permission()
1156 p_cb->pool_access_mask = (UINT16)(p_cb->pool_access_mask & ~(1 << pool_id)); in GKI_set_pool_permission()
1174 static void gki_add_to_pool_list(UINT8 pool_id) in gki_add_to_pool_list() argument
1184 if(p_cb->freeq[pool_id].size <= p_cb->freeq[ p_cb->pool_list[i] ].size) in gki_add_to_pool_list()
1194 p_cb->pool_list[i] = pool_id; in gki_add_to_pool_list()
1208 static void gki_remove_from_pool_list(UINT8 pool_id) in gki_remove_from_pool_list() argument
1215 if(pool_id == p_cb->pool_list[i]) in gki_remove_from_pool_list()
1240 void *GKI_igetpoolbuf (UINT8 pool_id) in GKI_igetpoolbuf() argument
1245 if (pool_id >= GKI_NUM_TOTAL_BUF_POOLS) in GKI_igetpoolbuf()
1249 Q = &gki_cb.com.freeq[pool_id]; in GKI_igetpoolbuf()
1285 UINT16 GKI_poolcount (UINT8 pool_id) in GKI_poolcount() argument
1287 if (pool_id >= GKI_NUM_TOTAL_BUF_POOLS) in GKI_poolcount()
1290 return (gki_cb.com.freeq[pool_id].total); in GKI_poolcount()
1305 UINT16 GKI_poolfreecount (UINT8 pool_id) in GKI_poolfreecount() argument
1309 if (pool_id >= GKI_NUM_TOTAL_BUF_POOLS) in GKI_poolfreecount()
1312 Q = &gki_cb.com.freeq[pool_id]; in GKI_poolfreecount()
1475 void GKI_delete_pool (UINT8 pool_id) in GKI_delete_pool() argument
1480 if ((pool_id >= GKI_NUM_TOTAL_BUF_POOLS) || (!p_cb->pool_start[pool_id])) in GKI_delete_pool()
1484 Q = &p_cb->freeq[pool_id]; in GKI_delete_pool()
1495 GKI_os_free (p_cb->pool_start[pool_id]); in GKI_delete_pool()
1497 p_cb->pool_start[pool_id] = NULL; in GKI_delete_pool()
1498 p_cb->pool_end[pool_id] = NULL; in GKI_delete_pool()
1499 p_cb->pool_size[pool_id] = 0; in GKI_delete_pool()
1501 gki_remove_from_pool_list(pool_id); in GKI_delete_pool()
1525 UINT16 GKI_get_pool_bufsize (UINT8 pool_id) in GKI_get_pool_bufsize() argument
1527 if (pool_id < GKI_NUM_TOTAL_BUF_POOLS) in GKI_get_pool_bufsize()
1528 return (gki_cb.com.freeq[pool_id].size); in GKI_get_pool_bufsize()
1545 UINT16 GKI_poolutilization (UINT8 pool_id) in GKI_poolutilization() argument
1549 if (pool_id >= GKI_NUM_TOTAL_BUF_POOLS) in GKI_poolutilization()
1552 Q = &gki_cb.com.freeq[pool_id]; in GKI_poolutilization()