Home
last modified time | relevance | path

Searched refs:pool (Results 1 – 25 of 54) sorted by relevance

123

/AliOS-Things-master/kernel/rhino/
A Dk_mm_blk.c14 NULL_PARA_CHK(pool); in krhino_mblk_pool_init()
33 pool->pool_name = name; in krhino_mblk_pool_init()
36 pool->slice_cnt = 0; in krhino_mblk_pool_init()
38 memset(pool->slice_type, 0, sizeof(pool->slice_type)); in krhino_mblk_pool_init()
57 if (pool == NULL) { in krhino_mblk_alloc_nolock()
84 pool->slice_type[pool->slice_cnt] = blk_type; in krhino_mblk_alloc_nolock()
109 NULL_PARA_CHK(pool); in krhino_mblk_free_nolock()
140 NULL_PARA_CHK(pool); in krhino_mblk_info_nolock()
155 info->pool_size = pool->pool_end - pool->pool_start; in krhino_mblk_info_nolock()
168 if (pool == NULL) { in krhino_mblk_alloc()
[all …]
/AliOS-Things-master/components/py_engine/engine/py/
A Dqstr.c138 pool = pool->prev; in find_qstr()
140 return pool->qstrs[q - pool->total_prev_len]; in find_qstr()
155 if (pool == NULL) { in qstr_add()
162 pool->len = 0; in qstr_add()
179 for (qstr_pool_t *pool = MP_STATE_VM(last_pool); pool != NULL; pool = pool->prev) { in qstr_find_strn() local
180 for (const byte **q = pool->qstrs, **q_top = pool->qstrs + pool->len; q < q_top; q++) { in qstr_find_strn()
182 return pool->total_prev_len + (q - pool->qstrs); in qstr_find_strn()
286 …for (qstr_pool_t *pool = MP_STATE_VM(last_pool); pool != NULL && pool != &CONST_POOL; pool = pool-… in qstr_pool_info() local
289 for (const byte **q = pool->qstrs, **q_top = pool->qstrs + pool->len; q < q_top; q++) { in qstr_pool_info()
305 …for (qstr_pool_t *pool = MP_STATE_VM(last_pool); pool != NULL && pool != &CONST_POOL; pool = pool-… in qstr_dump_data() local
[all …]
A Dgc.c909 … for (qstr_pool_t *pool = MP_STATE_VM(last_pool); c == 'h' && pool != NULL; pool = pool->prev) { in gc_dump_alloc_table()
910 if ((qstr_pool_t *)ptr == pool) { in gc_dump_alloc_table()
914 … for (const byte **q = pool->qstrs, **q_top = pool->qstrs + pool->len; q < q_top; q++) { in gc_dump_alloc_table()
/AliOS-Things-master/kernel/rhino/include/
A Dk_mm_blk.h68 kstat_t krhino_mblk_pool_init(mblk_pool_t *pool, const name_t *name,
79 void *krhino_mblk_alloc(mblk_pool_t *pool, uint32_t size);
80 void *krhino_mblk_alloc_nolock(mblk_pool_t *pool, uint32_t size);
90 kstat_t krhino_mblk_free(mblk_pool_t *pool, void *blk);
91 kstat_t krhino_mblk_free_nolock(mblk_pool_t *pool, void *blk);
99 kstat_t krhino_mblk_info(mblk_pool_t *pool, mblk_info_t *info);
110 #define krhino_mblk_check(pool, blk) \ argument
111 ((pool) != NULL \
113 && ((uintptr_t)(blk) < ((mblk_pool_t*)(pool))->pool_end))
128 blk_type = pool->slice_type[slice_idx]; in krhino_mblk_get_size()
[all …]
A Dk_trace.h167 #define TRACE_MBLK_POOL_CREATE(task, pool) argument
170 #define TRACE_MM_POOL_CREATE(task, pool) argument
244 #define TRACE_MBLK_POOL_CREATE(task, pool)
247 #define TRACE_MM_POOL_CREATE(task, pool)
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/lwip/priv/
A Dtcpip_priv.h58 #define API_VAR_ALLOC(type, pool, name, errorval) do { \ argument
59 name = (type *)memp_malloc(pool); \
64 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) do { \ argument
65 name = (type *)LWIP_MEMPOOL_ALLOC(pool); \
70 #define API_VAR_FREE(pool, name) memp_free(pool, name) argument
71 #define API_VAR_FREE_POOL(pool, name) LWIP_MEMPOOL_FREE(pool, name) argument
84 #define API_VAR_ALLOC(type, pool, name, errorval) argument
85 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) argument
86 #define API_VAR_FREE(pool, name) argument
87 #define API_VAR_FREE_POOL(pool, name) argument
/AliOS-Things-master/components/lwip/lwip2.0.0/include/lwip/priv/
A Dtcpip_priv.h58 #define API_VAR_ALLOC(type, pool, name, errorval) do { \ argument
59 name = (type *)memp_malloc(pool); \
64 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) do { \ argument
65 name = (type *)LWIP_MEMPOOL_ALLOC(pool); \
70 #define API_VAR_FREE(pool, name) memp_free(pool, name) argument
71 #define API_VAR_FREE_POOL(pool, name) LWIP_MEMPOOL_FREE(pool, name) argument
84 #define API_VAR_ALLOC(type, pool, name, errorval) argument
85 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) argument
86 #define API_VAR_FREE(pool, name) argument
87 #define API_VAR_FREE_POOL(pool, name) argument
/AliOS-Things-master/components/ble_host/bt_host/port/core/
A Dbuf.c95 return (pool->buf_count == pool->uninit_count + k_lifo_num_get(&pool->free)); in net_buf_pool_is_free()
116 return buf - pool->__bufs; in net_buf_id()
124 buf = &pool->__bufs[pool->buf_count - uninit_count]; in pool_get_uninit()
327 __ASSERT_NO_MSG(pool); in net_buf_alloc_len_debug()
340 if (pool->uninit_count) { in net_buf_alloc_len_debug()
347 if (pool->uninit_count < pool->buf_count) { in net_buf_alloc_len_debug()
428 pool->avail_count--; in net_buf_alloc_len_debug()
648 pool->avail_count++; in net_buf_unref_debug()
649 __ASSERT_NO_MSG(pool->avail_count <= pool->buf_count); in net_buf_unref_debug()
652 if (pool->destroy) { in net_buf_unref_debug()
[all …]
A DKconfig68 bool "Network buffer pool usage tracking"
70 Enable network buffer pool tracking. This means that:
71 * amount of free buffers in the pool is remembered
72 * total size of the pool is calculated
73 * pool name is stored and can be shown in debugging prints
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/
A Djcomapi.c31 int pool; in jpeg_abort() local
40 for (pool = JPOOL_NUMPOOLS-1; pool > JPOOL_PERMANENT; pool--) { in jpeg_abort()
41 (*cinfo->mem->free_pool) (cinfo, pool); in jpeg_abort()
A Djmemmgr.c1005 int pool; in self_destruct() local
1011 for (pool = JPOOL_NUMPOOLS-1; pool >= JPOOL_PERMANENT; pool--) { in self_destruct()
1012 free_pool(cinfo, pool); in self_destruct()
1033 int pool; in jinit_memory_mgr() local
1086 for (pool = JPOOL_NUMPOOLS-1; pool >= JPOOL_PERMANENT; pool--) { in jinit_memory_mgr()
1087 mem->small_list[pool] = NULL; in jinit_memory_mgr()
1088 mem->large_list[pool] = NULL; in jinit_memory_mgr()
/AliOS-Things-master/components/SDL2/src/
A DSDL_dataqueue.c78 packet->next = queue->pool; in SDL_NewDataQueue()
79 queue->pool = packet; in SDL_NewDataQueue()
114 queue->tail->next = queue->pool; in SDL_ClearDataQueue()
116 packet = queue->pool; in SDL_ClearDataQueue()
123 queue->pool = packet; in SDL_ClearDataQueue()
134 queue->pool = NULL; in SDL_ClearDataQueue()
147 packet = queue->pool; in AllocateDataQueuePacket()
150 queue->pool = packet->next; in AllocateDataQueuePacket()
210 queue->pool = NULL; in SDL_WriteToDataQueue()
279 packet->next = queue->pool; in SDL_ReadFromDataQueue()
[all …]
/AliOS-Things-master/components/SDL2/test/
A Dtestnativecocoa.m19 NSAutoreleasePool *pool;
24 pool = [[NSAutoreleasePool alloc] init];
37 [pool release];
44 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
48 [pool release];
/AliOS-Things-master/components/py_engine/tests/perf_bench/
A Dbm_nqueens.py11 pool = tuple(iterable)
12 n = len(pool)
17 yield tuple(pool[i] for i in indices[:r])
27 yield tuple(pool[i] for i in indices[:r])
/AliOS-Things-master/components/ble_host/bt_host/host/
A Dhci_raw.c99 struct net_buf_pool *pool; in bt_buf_get_tx() local
104 pool = &hci_cmd_pool; in bt_buf_get_tx()
107 pool = &hci_acl_pool; in bt_buf_get_tx()
115 pool = &hci_cmd_pool; in bt_buf_get_tx()
119 pool = &hci_acl_pool; in bt_buf_get_tx()
137 buf = net_buf_alloc(pool, timeout); in bt_buf_get_tx()
/AliOS-Things-master/components/ble_host/include/net/
A Dbuf.h833 int net_buf_pool_init(struct net_buf_pool *pool);
1070 struct net_buf *net_buf_alloc_fixed_debug(struct net_buf_pool *pool,
1076 struct net_buf *net_buf_alloc_fixed(struct net_buf_pool *pool,
1085 #define net_buf_alloc(pool, timeout) net_buf_alloc_fixed(pool, timeout) argument
1103 struct net_buf *net_buf_alloc_len_debug(struct net_buf_pool *pool, size_t size,
1109 struct net_buf *net_buf_alloc_len(struct net_buf_pool *pool, size_t size,
1133 struct net_buf *net_buf_alloc_with_data_debug(struct net_buf_pool *pool,
1141 struct net_buf *net_buf_alloc_with_data(struct net_buf_pool *pool,
1176 struct net_buf_pool *pool = net_buf_pool_get(buf->pool_id); in net_buf_destroy() local
1178 k_lifo_put(&pool->free, buf); in net_buf_destroy()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/utils/
A Dhuffman_encode_utils.c136 const HuffmanTree* const pool, in SetBitDepths() argument
139 SetBitDepths(&pool[tree->pool_index_left_], pool, bit_depths, level + 1); in SetBitDepths()
140 SetBitDepths(&pool[tree->pool_index_right_], pool, bit_depths, level + 1); in SetBitDepths()
/AliOS-Things-master/components/SDL2/src/hidapi/testgui/
A Dmac_support_cocoa.m78 NSAutoreleasePool *pool = [NSAutoreleasePool new];
91 [pool release];
/AliOS-Things-master/components/mbedtls/library/
A Dhavege.c154 hs->pool[n % MBEDTLS_HAVEGE_COLLECT_SIZE] ^= RES[i];
229 val = hs->pool[hs->offset[0]++]; in mbedtls_havege_random()
230 val ^= hs->pool[hs->offset[1]++]; in mbedtls_havege_random()
/AliOS-Things-master/components/mbedtls/include/mbedtls/
A Dhavege.h41 int pool[MBEDTLS_HAVEGE_COLLECT_SIZE]; member
/AliOS-Things-master/components/trace/Config/
A DSYSVIEW_AliOSThings.txt13pool, 4=Wait for timeout, 12=Wait for event with timeout, 20=Wait for sema zero with timeout, 28=W…
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/libtests/
A Dpngvalid.c837 memset(pool, 0, sizeof *pool); in store_pool_init()
841 pool->max = pool->current = pool->limit = pool->total = 0; in store_pool_init()
842 pool->max_max = pool->max_limit = pool->max_total = 0; in store_pool_init()
1824 if (memory->pool != pool) in store_memory_free()
1879 if (pool->max > pool->max_max) pool->max_max = pool->max; in store_pool_delete()
1888 if (pool->limit > pool->max_limit) in store_pool_delete()
1889 pool->max_limit = pool->limit; in store_pool_delete()
1893 if (pool->total > pool->max_total) in store_pool_delete()
1894 pool->max_total = pool->total; in store_pool_delete()
1919 pool->limit = pool->current; in store_malloc()
[all …]
/AliOS-Things-master/hardware/chip/haas1000/drivers/rtos/rhino/cmsis/
A Dcmsis_os.h243 void *pool; ///< pointer to memory for pool member
252 void *pool; ///< memory array for messages member
262 void *pool; ///< memory array for mail
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/
A Dadv.h53 struct net_buf *bt_mesh_adv_create_from_pool(struct net_buf_pool *pool, bt_mesh_adv_alloc_t get_id,
/AliOS-Things-master/components/ble_host/bt_host/include/bluetooth/
A Drfcomm.h178 struct net_buf *bt_rfcomm_create_pdu(struct net_buf_pool *pool);

Completed in 52 milliseconds

123