Home
last modified time | relevance | path

Searched full:pool (Results 1 – 25 of 153) sorted by relevance

1234567

/nrf52832-nimble/rt-thread/components/dfs/filesystems/uffs/src/uffs/
H A Duffs_pool.c35 * \brief Fast fixed size memory pool management.
53 static uffs_Pool pool;
55 uffs_PoolInit(&pool, pool_mem, sizeof(pool_mem), BUF_SIZE, NUM_BUFS);
58 p = uffs_PoolGet(&pool);
60 uffs_PoolPut(p, &pool);
71 * \brief Initializes the memory pool.
72 * \param[in] pool memory pool
73 * \param[in] mem pool memory
74 * \param[in] mem_size size of pool memory
79 URET uffs_PoolInit(uffs_Pool *pool, in uffs_PoolInit() argument
[all …]
H A Duffs_tree.c73 uffs_Pool *pool; in uffs_TreeInit() local
79 pool = &(dev->mem.tree_pool); in uffs_TreeInit()
92 memset(pool, 0, sizeof(uffs_Pool)); in uffs_TreeInit()
97 uffs_PoolInit(pool, dev->mem.tree_nodes_pool_buf, in uffs_TreeInit()
128 uffs_Pool *pool; in uffs_TreeRelease() local
130 pool = &(dev->mem.tree_pool); in uffs_TreeRelease()
131 if (pool->mem && dev->mem.free) { in uffs_TreeRelease()
132 dev->mem.free(dev, pool->mem); in uffs_TreeRelease()
133 pool->mem = NULL; in uffs_TreeRelease()
136 uffs_PoolRelease(pool); in uffs_TreeRelease()
[all …]
/nrf52832-nimble/packages/NimBLE-latest/porting/nimble/include/os/
H A Dos_mempool.h49 /* XXX: Change this structure so that we keep the first address in the pool? */
55 * Memory pool
68 /** Address of memory buffer used by pool */
100 * released back to its pool.
116 * Information describing a memory pool, used to return OS information
120 /** Size of the memory blocks in the pool */
122 /** Number of memory blocks in the pool */
128 /** Name of the memory pool */
133 * Get information about the next system memory pool.
135 * @param mempool The current memory pool, or NULL if starting iteration.
[all …]
H A Dos_mbuf.h39 * A mbuf pool from which to allocate mbufs. This contains a pointer to the os
40 * mempool to allocate mbufs out of, the total number of elements in the pool,
41 * and the amount of "user" data in a non-packet header mbuf. The total pool
52 * The memory pool which to allocate mbufs out of
98 * The mbuf pool this mbuf was allocated out of
204 * @param __omp Is the mbuf pool (which contains packet header length.)
205 * @param __om Is the mbuf in that pool to get the leadingspace for
232 * @param __omp The mbuf pool for this mbuf
233 * @param __om Is the mbuf in that pool to get trailing space for
289 * os_msys_register() registers a mbuf pool with MSYS, and allows MSYS to
[all …]
/nrf52832-nimble/rt-thread/components/dfs/filesystems/uffs/src/inc/uffs/
H A Duffs_pool.h35 * \brief Fast fixed size memory pool management.
60 * \brief Memory pool.
63 u8 *mem; //!< memory pool
65 u32 num_bufs; //!< number of buffers in the pool
70 URET uffs_PoolInit(uffs_Pool *pool, void *mem, u32 mem_size, u32 buf_size, u32 num_bufs);
71 URET uffs_PoolRelease(uffs_Pool *pool);
73 UBOOL uffs_PoolVerify(uffs_Pool *pool, void *p);
75 void *uffs_PoolGet(uffs_Pool *pool);
76 void *uffs_PoolGetLocked(uffs_Pool *pool);
78 int uffs_PoolPut(uffs_Pool *pool, void *p);
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/include/lwip/priv/
H A Dtcpip_priv.h58 #define API_VAR_ALLOC_EXT(type, pool, name, errorblock) do { \ argument
59 name = (type *)memp_malloc(pool); \
64 #define API_VAR_ALLOC(type, pool, name, errorval) API_VAR_ALLOC_EXT(type, pool, name, return errorv… argument
65 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) do { \ argument
66 name = (type *)LWIP_MEMPOOL_ALLOC(pool); \
71 #define API_VAR_FREE(pool, name) memp_free(pool, name) argument
72 #define API_VAR_FREE_POOL(pool, name) LWIP_MEMPOOL_FREE(pool, name) argument
85 #define API_VAR_ALLOC_EXT(type, pool, name, errorblock) argument
86 #define API_VAR_ALLOC(type, pool, name, errorval) argument
87 #define API_VAR_ALLOC_POOL(type, pool, name, errorval) argument
[all …]
/nrf52832-nimble/rt-thread/src/
H A Dmempool.c8 * 2006-05-27 Bernard implement memory pool
36 * block is allocated from memory pool.
47 * block is released to memory pool.
66 * This function will initialize a memory pool object, normally which is used
69 * @param mp the memory pool object
70 * @param name the name of memory pool
71 * @param start the star address of memory pool
72 * @param size the total size of memory pool
92 /* initialize memory pool */ in rt_mp_init()
126 * This function will detach a memory pool from system object management.
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/include/lwip/priv/
H 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
H A Dmemp_std.h21 /* This treats "malloc pools" just like any other pool.
29 /* This treats "pbuf pools" just like any other pool.
39 * creates a pool name MEMP_pool_name. description is used in stats.c
122 * creates a pool name MEMP_pool_name. description is used in stats.c
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/core/
H A Dmemp.c3 * Dynamic pool memory manager
125 * @param desc the pool p comes from
130 mem_overflow_check_raw((u8_t *)p + MEMP_SIZE, desc->size, "pool ", desc->desc); in memp_overflow_check_element()
144 * Do an overflow check for all elements in every pool.
169 * Initialize custom memory pool.
172 * @param desc pool to initialize
186 /* force memset on pool memory */ in memp_init_pool()
221 * Carves out memp_memory into linked lists for each pool-type.
228 /* for every pool: */ in memp_init()
296 …LWIP_DEBUGF(MEMP_DEBUG | LWIP_DBG_LEVEL_SERIOUS, ("memp_malloc: out of memory in pool %s\n", desc-… in do_memp_malloc_pool()
[all …]
H A Dmem.c165 * C library malloc(): we can't free part of a pool element and the stack
244 * Allocate memory: determine the smallest pool that is big enough
245 * to contain an element of 'size' and get an element from that pool.
248 * @return a pointer to the allocated memory or NULL if the pool is empty
259 /* is this pool big enough to hold an element of the required size in mem_malloc()
260 plus a struct memp_malloc_helper that saves the pool this element came from? */ in mem_malloc()
266 /** Try a bigger pool if this one is empty! */ in mem_malloc()
278 LWIP_ASSERT("mem_malloc(): no pool is that big!", 0); in mem_malloc()
283 /* save the pool number this element came from */ in mem_malloc()
294 /* initialize unused memory (diff between requested size and selected pool's size) */ in mem_malloc()
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/include/lwip/
H A Dmemp.h3 * Memory pool API
49 /** Create the list of all memory pools managed by memp. MEMP_MAX represents a NULL pool at the end…
63 * Declare prototype for private memory pool if it is used in multiple files
81 * Declare a private memory pool
83 * .h: only when pool is used in multiple .c files: LWIP_MEMPOOL_PROTOTYPE(my_private_pool);
86 …* - call ONCE before using pool (e.g. in some init() function): LWIP_MEMPOOL_INIT(my_private_poo…
90 * To relocate a pool, declare it as extern in cc.h. Example for GCC:
113 * Initialize a private memory pool
118 * Allocate from a private memory pool
123 * Free element from a private memory pool
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/include/lwip/
H A Dmemp.h3 * Memory pool API
51 /** Create the list of all memory pools managed by memp. MEMP_MAX represents a NULL pool at the end…
65 * Declare prototype for private memory pool if it is used in multiple files
83 * Declare a private memory pool
85 * .h: only when pool is used in multiple .c files: LWIP_MEMPOOL_PROTOTYPE(my_private_pool);
88 …* - call ONCE before using pool (e.g. in some init() function): LWIP_MEMPOOL_INIT(my_private_poo…
92 * To relocate a pool, declare it as extern in cc.h. Example for GCC:
115 * Initialize a private memory pool
120 * Allocate from a private memory pool
125 * Free element from a private memory pool
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/core/
H A Dmemp.c3 * Dynamic pool memory manager
125 * @param desc the pool p comes from
136 char errstr[128] = "detected memp overflow in pool "; in memp_overflow_check_element_overflow()
152 * @param desc the pool p comes from
163 char errstr[128] = "detected memp underflow in pool "; in memp_overflow_check_element_underflow()
198 * Do an overflow check for all elements in every pool.
224 * Initialize custom memory pool.
227 * @param desc pool to initialize
268 * Carves out memp_memory into linked lists for each pool-type.
275 /* for every pool: */ in memp_init()
[all …]
H A Dmem.c80 * C library malloc(): we can't free part of a pool element and the stack
159 * Allocate memory: determine the smallest pool that is big enough
160 * to contain an element of 'size' and get an element from that pool.
163 * @return a pointer to the allocated memory or NULL if the pool is empty
174 /* is this pool big enough to hold an element of the required size in mem_malloc()
175 plus a struct memp_malloc_helper that saves the pool this element came from? */ in mem_malloc()
181 /** Try a bigger pool if this one is empty! */ in mem_malloc()
193 LWIP_ASSERT("mem_malloc(): no pool is that big!", 0); in mem_malloc()
198 /* save the pool number this element came from */ in mem_malloc()
209 /* initialize unused memory (diff between requested size and selected pool's size) */ in mem_malloc()
[all …]
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/core/
H A Dmemp.c3 * Dynamic pool memory manager
79 * every single element in each pool is checked!
115 /** This array holds the first free element of each pool.
125 /** This array holds the element sizes of each pool. */
136 /** This array holds the number of elements in each pool. */
142 /** This array holds a textual description of each pool. */
152 /** This creates each memory pool. These are named memp_memory_XXX_base (where
153 * XXX is the name of the pool defined in memp_std.h).
154 * To relocate a pool, declare it as extern in cc.h. Example for GCC:
161 /** This array holds the base of each memory pool. */
[all …]
H A Dmem.c72 * Allocate memory: determine the smallest pool that is big enough
73 * to contain an element of 'size' and get an element from that pool.
76 * @return a pointer to the allocated memory or NULL if the pool is empty
90 /* is this pool big enough to hold an element of the required size in mem_malloc()
91 plus a struct memp_malloc_helper that saves the pool this element came from? */ in mem_malloc()
97 LWIP_ASSERT("mem_malloc(): no pool is that big!", 0); in mem_malloc()
105 /** Try a bigger pool if this one is empty! */ in mem_malloc()
114 /* save the pool number this element came from */ in mem_malloc()
123 * Free memory previously allocated by mem_malloc. Loads the pool number
124 * and calls memp_free with that pool number to put the element back into
[all …]
/nrf52832-nimble/packages/NimBLE-latest/porting/nimble/src/
H A Dos_mbuf.c122 struct os_mbuf_pool *pool; in os_msys_register() local
124 pool = NULL; in os_msys_register()
125 STAILQ_FOREACH(pool, &g_msys_pool_list, omp_next) { in os_msys_register()
126 if (new_pool->omp_databuf_len > pool->omp_databuf_len) { in os_msys_register()
131 if (pool) { in os_msys_register()
132 STAILQ_INSERT_AFTER(&g_msys_pool_list, pool, new_pool, omp_next); in os_msys_register()
149 struct os_mbuf_pool *pool; in _os_msys_find_pool() local
151 pool = NULL; in _os_msys_find_pool()
152 STAILQ_FOREACH(pool, &g_msys_pool_list, omp_next) { in _os_msys_find_pool()
153 if (dsize <= pool->omp_databuf_len) { in _os_msys_find_pool()
[all …]
H A Dmem.c128 * Mallocs a block of memory and initializes an mbuf pool to use it. The
129 * specified block_size indicates the size of an mbuf acquired from the pool if
133 * @param mbuf_pool The mbuf pool to initialize.
134 * @param num_blocks The total number of mbufs in the pool.
175 * Mallocs a block of memory and initializes an mbuf pool to use it. The
176 * specified block_size indicates the size of an mbuf acquired from the pool if
180 * @param mbuf_pool The mbuf pool to initialize.
181 * @param num_blocks The total number of mbufs in the pool.
/nrf52832-nimble/rt-thread/components/CMSIS/RTOS/
H A Dcmsis_os.h75 // Pool definition
201 /// Pool ID identifies the memory pool (pointer to a memory pool control block).
552 // ==== Memory Pool Management Functions ====
554 #if (defined (osFeature_Pool) && (osFeature_Pool != 0)) // Memory Pool Management available
556 /// \brief Define a Memory Pool.
557 /// \param name name of the memory pool.
558 /// \param no maximum number of objects (elements) in the memory pool.
568 {"pool", (no), sizeof(type) }
571 /// \brief Access a Memory Pool definition.
572 /// \param name name of the memory pool
[all …]
/nrf52832-nimble/rt-thread/documentation/doxygen/
H A Dkernel.h62 * - memory pool
100 * @brief memory management for memory pool and heap memory
103 * - Static memory pool management
106 * The time to allocate a memory block from the memory pool is determinant. When
107 * the memory pool is empty, the allocated thread can be blocked (or immediately return,
109 * When other thread releases memory blocks to this memory pool, the blocked thread is
/nrf52832-nimble/rt-thread/components/drivers/src/
H A Dringbuffer.c30 rt_uint8_t *pool, in rt_ringbuffer_init() argument
40 /* set buffer pool and size */ in rt_ringbuffer_init()
41 rb->buffer_ptr = pool; in rt_ringbuffer_init()
329 rt_uint8_t *pool; in rt_ringbuffer_create() local
339 pool = rt_malloc(size); in rt_ringbuffer_create()
340 if (pool == RT_NULL) in rt_ringbuffer_create()
346 rt_ringbuffer_init(rb, pool, size); in rt_ringbuffer_create()
/nrf52832-nimble/packages/NimBLE-latest/nimble/transport/ram/src/
H A Dble_hci_ram.c169 * Thus, we check to see which pool the buffer came from so we can free in ble_hci_trans_buf_free()
170 * it to the appropriate pool in ble_hci_trans_buf_free()
187 * pool.
213 * Create memory pool of HCI command buffers. NOTE: we currently dont in ble_hci_ram_init()
215 * outstanding command. We decided to keep this a pool in case we allow in ble_hci_ram_init()
/nrf52832-nimble/rt-thread/components/lwp/
H A Dlwp_memheap.h23 struct rt_lwp_memheap *pool_ptr; /**< point of pool */
39 void *start_addr; /**< pool start address and size */
41 rt_uint32_t pool_size; /**< pool size */
/nrf52832-nimble/rt-thread/components/net/lwip-1.4.1/src/include/lwip/
H A Dmemp_std.h13 /* This treats "malloc pools" just like any other pool.
21 /* This treats "pbuf pools" just like any other pool.
31 * creates a pool name MEMP_pool_name. description is used in stats.c
98 * creates a pool name MEMP_pool_name. description is used in stats.c

1234567