Home
last modified time | relevance | path

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

123456

/Zephyr-latest/lib/net_buf/
Dbuf.c50 struct net_buf_pool *pool; in net_buf_pool_get() local
52 STRUCT_SECTION_GET(net_buf_pool, id, &pool); in net_buf_pool_get()
54 return pool; in net_buf_pool_get()
57 static int pool_id(struct net_buf_pool *pool) in pool_id() argument
59 return pool - TYPE_SECTION_START(net_buf_pool); in pool_id()
64 struct net_buf_pool *pool = net_buf_pool_get(buf->pool_id); in net_buf_id() local
65 size_t struct_size = ROUND_UP(sizeof(struct net_buf) + pool->user_data_size, in net_buf_id()
67 ptrdiff_t offset = (uint8_t *)buf - (uint8_t *)pool->__bufs; in net_buf_id()
72 static inline struct net_buf *pool_get_uninit(struct net_buf_pool *pool, in pool_get_uninit() argument
75 size_t struct_size = ROUND_UP(sizeof(struct net_buf) + pool->user_data_size, in pool_get_uninit()
[all …]
DKconfig45 bool "Network buffer pool usage tracking"
47 Enable network buffer pool tracking. This means that:
48 * amount of free buffers in the pool is remembered
49 * total size of the pool is calculated
50 * pool name is stored and can be shown in debugging prints
/Zephyr-latest/subsys/net/lib/shell/
Dmem.c24 struct net_buf_pool *pool) in slab_pool_found_already() argument
34 if (info->data_pools[i] == pool) { in slab_pool_found_already()
51 struct net_buf_pool *pool; in context_info() local
75 pool = context->data_pool(); in context_info()
77 if (slab_pool_found_already(info, NULL, pool)) { in context_info()
82 PR("%p\t%d\t%ld\tEDATA (%s)\n", pool, pool->buf_count, in context_info()
83 atomic_get(&pool->avail_count), pool->name); in context_info()
85 PR("%p\t%d\tEDATA\n", pool, pool->buf_count); in context_info()
88 info->data_pools[info->pos] = pool; in context_info()
Dallocs.c58 struct net_buf_pool *pool = net_buf_pool_get(buf->pool_id); in allocs_cb() local
63 str, net_pkt_pool2str(pool), func_alloc, in allocs_cb()
67 buf, str, net_pkt_pool2str(pool), in allocs_cb()
/Zephyr-latest/subsys/portability/cmsis_rtos_v1/
Dcmsis_mailq.c43 (struct k_mem_slab *)(queue_def->pool), in osMailAlloc()
47 (struct k_mem_slab *)(queue_def->pool), in osMailAlloc()
51 (struct k_mem_slab *)(queue_def->pool), in osMailAlloc()
77 (struct k_mem_slab *)(queue_def->pool), in osMailCAlloc()
81 (struct k_mem_slab *)(queue_def->pool), in osMailCAlloc()
85 (struct k_mem_slab *)(queue_def->pool), in osMailCAlloc()
173 k_mem_slab_free((struct k_mem_slab *)(queue_def->pool), (void *)mail); in osMailFree()
Dcmsis_mempool.c33 if (k_mem_slab_alloc((struct k_mem_slab *)(osPool->pool), in osPoolAlloc()
49 if (k_mem_slab_alloc((struct k_mem_slab *)(osPool->pool), in osPoolCAlloc()
71 k_mem_slab_free((struct k_mem_slab *)(osPool->pool), (void *)block); in osPoolFree()
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/src/
Dull.c43 uint8_t pool[sizeof(struct node_rx_event_done) * EVENT_DONE_MAX]; member
48 uint8_t pool[sizeof(memq_link_t) * EVENT_DONE_MAX]; member
86 uint8_t pool[PDU_RX_POOL_SIZE]; member
97 uint8_t pool[LINK_RX_POOL_SIZE]; member
295 mem_init(mem_done.pool, sizeof(struct node_rx_event_done), EVENT_DONE_MAX, &mem_done.free); in init_reset()
298 mem_init(mem_link_done.pool, sizeof(memq_link_t), EVENT_DONE_MAX, &mem_link_done.free); in init_reset()
301 mem_init(mem_pdu_rx.pool, (PDU_RX_NODE_POOL_ELEMENT_SIZE), in init_reset()
302 sizeof(mem_pdu_rx.pool) / (PDU_RX_NODE_POOL_ELEMENT_SIZE), &mem_pdu_rx.free); in init_reset()
305 mem_init(mem_link_rx.pool, sizeof(memq_link_t), in init_reset()
306 sizeof(mem_link_rx.pool) / sizeof(memq_link_t), &mem_link_rx.free); in init_reset()
/Zephyr-latest/subsys/usb/device_next/class/
DKconfig.hid14 int "Number of buffers in the IN pool"
18 Number of buffers in the IN pool per HID instance.
21 int "Number of buffers in the OUT pool"
25 Number of buffers in the OUT pool per HID instance.
/Zephyr-latest/subsys/bluetooth/services/ots/
Dots_obj_manager.c30 struct bt_gatt_ots_pool_item pool[CONFIG_BT_OTS_MAX_OBJ_CNT]; member
168 if (index >= ARRAY_SIZE(obj_manager->pool)) { in bt_gatt_ots_obj_manager_obj_get()
172 if (!obj_manager->pool[index].is_allocated) { in bt_gatt_ots_obj_manager_obj_get()
176 *object = &obj_manager->pool[index].val; in bt_gatt_ots_obj_manager_obj_get()
185 for (uint64_t i = 0; i < ARRAY_SIZE(obj_manager->pool); i++) { in bt_gatt_ots_obj_manager_obj_add()
187 &obj_manager->pool[i]; in bt_gatt_ots_obj_manager_obj_add()
231 return PART_OF_ARRAY(obj_manager->pool, item); in bt_gatt_ots_obj_manager_obj_contains()
/Zephyr-latest/drivers/entropy/
DKconfig.smartbond18 int "Thread-mode random number pool size"
24 Please note, that size of the pool must be a power of 2.
27 int "Thread-mode random number pool low-water threshold"
36 int "ISR-mode random number pool size"
42 Please note, that size of the pool must be a power of 2.
45 int "ISR-mode random number pool low-water threshold"
Dentropy_cc13xx_cc26xx.c33 struct ring_buf pool; member
114 cnt = ring_buf_get(&data->pool, buf, len); in entropy_cc13xx_cc26xx_get_entropy()
143 cnt = ring_buf_put(&data->pool, (uint8_t *)num, sizeof(num)); in entropy_cc13xx_cc26xx_isr()
181 cnt = ring_buf_get(&data->pool, buf, len); in entropy_cc13xx_cc26xx_get_entropy_isr()
203 ring_buf_put(&data->pool, (uint8_t *)num, in entropy_cc13xx_cc26xx_get_entropy_isr()
212 cnt = ring_buf_get(&data->pool, buf, len); in entropy_cc13xx_cc26xx_get_entropy_isr()
289 ring_buf_init(&data->pool, sizeof(data->data), data->data); in entropy_cc13xx_cc26xx_init()
DKconfig.nrf535 int "Thread-mode random number pool size"
41 Please note, that size of the pool must be a power of 2.
44 int "Thread-mode random number pool low-water threshold"
53 int "ISR-mode random number pool size"
59 Please note, that size of the pool must be a power of 2.
62 int "ISR-mode random number pool low-water threshold"
DKconfig.stm3221 int "Thread-mode random number pool size"
27 Please note, that size of the pool must be a power of 2.
30 int "Thread-mode random number pool low-water threshold"
39 int "ISR-mode random number pool size"
45 Please note, that size of the pool must be a power of 2.
48 int "ISR-mode random number pool low-water threshold"
/Zephyr-latest/subsys/portability/cmsis_rtos_v2/
Dmempool.c60 mslab->pool = k_calloc(block_count, block_size); in osMemoryPoolNew()
61 if (mslab->pool == NULL) { in osMemoryPoolNew()
67 mslab->pool = attr->mp_mem; in osMemoryPoolNew()
71 int rc = k_mem_slab_init(&mslab->z_mslab, mslab->pool, block_size, block_count); in osMemoryPoolNew()
76 k_free(mslab->pool); in osMemoryPoolNew()
242 k_free(mslab->pool); in osMemoryPoolDelete()
Dwrapper.h54 void *pool; member
61 void *pool; member
Dmsgq.c59 msgq->pool = k_calloc(msg_count, msg_size); in osMessageQueueNew()
60 if (msgq->pool == NULL) { in osMessageQueueNew()
70 msgq->pool = attr->mq_mem; in osMessageQueueNew()
74 k_msgq_init(&msgq->z_msgq, msgq->pool, msg_size, msg_count); in osMessageQueueNew()
280 k_free(msgq->pool); in osMessageQueueDelete()
/Zephyr-latest/modules/lvgl/
DKconfig.memory20 prompt "Memory pool"
23 Memory pool to use for lvgl allocated objects
32 bool "User space lvgl pool"
35 Use a dedicated memory pool from a private sys heap.
40 int "Memory pool size"
44 Size of the memory pool in bytes
47 bool "Link memory pool to custom section"
50 Place LVGL memory pool in custom section, with tag ".lvgl_heap".
52 memory pool to a custom location, such as tightly coupled or
/Zephyr-latest/subsys/rtio/
Drtio_init.c21 mpsc_push(&sqe_pool->free_q, &sqe_pool->pool[i].q); in rtio_init()
27 mpsc_push(&cqe_pool->free_q, &cqe_pool->pool[i].q); in rtio_init()
/Zephyr-latest/drivers/usb/uhc/
DKconfig15 int "Number of transfers in the pool"
22 int "Number of buffers in the pool"
26 Number of UHC request buffers in the pool.
/Zephyr-latest/subsys/bluetooth/host/
Dhci_raw.c116 struct net_buf_pool *pool; in bt_buf_get_tx() local
121 pool = &hci_cmd_pool; in bt_buf_get_tx()
124 pool = &hci_acl_pool; in bt_buf_get_tx()
128 pool = &hci_iso_pool; in bt_buf_get_tx()
139 pool = &hci_cmd_pool; in bt_buf_get_tx()
143 pool = &hci_acl_pool; in bt_buf_get_tx()
148 pool = &hci_iso_pool; in bt_buf_get_tx()
167 buf = net_buf_alloc(pool, timeout); in bt_buf_get_tx()
/Zephyr-latest/subsys/net/ip/
Dnet_pkt.c290 const char *net_pkt_pool2str(struct net_buf_pool *pool) in net_pkt_pool2str() argument
292 if (pool == &rx_bufs) { in net_pkt_pool2str()
294 } else if (pool == &tx_bufs) { in net_pkt_pool2str()
301 static inline int16_t get_frees(struct net_buf_pool *pool) in get_frees() argument
304 return atomic_get(&pool->avail_count); in get_frees()
347 static inline const char *get_name(struct net_buf_pool *pool) in get_name() argument
350 return pool->name; in get_name()
356 static inline int16_t get_size(struct net_buf_pool *pool) in get_size() argument
359 return pool->pool_size; in get_size()
370 static inline const char *pool2str(struct net_buf_pool *pool) in pool2str() argument
[all …]
/Zephyr-latest/doc/kernel/memory_management/
Dshared_multi_heap.rst6 The shared multi-heap memory pool manager uses the multi-heap allocator to
11 pool providing an opaque "attribute" value (an integer or enum value) that can
18 the pool with :c:func:`shared_multi_heap_add()`, possibly gathering the
28 // Init the shared multi-heap pool
38 // Add the region to the pool
/Zephyr-latest/drivers/video/
DKconfig27 int "Size of the largest buffer in the video pool"
31 int "Number of maximum sized buffer in the video pool"
35 int "Alignment of the video pool’s buffer"
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_internal.h126 uint8_t pool[MROUND(_size) * (_count)]; \
131 uint8_t pool[sizeof(memq_link_t) * (_count + _extra_links)]; \
141 mem_init(mem_pool_##_name.pool, mem_##_name.size, \
144 mem_init(mem_link_##_name.pool, sizeof(memq_link_t), \
/Zephyr-latest/include/zephyr/rtio/
Drtio.h375 struct rtio_iodev_sqe *pool; member
382 struct rtio_cqe *pool; member
720 static inline struct rtio_iodev_sqe *rtio_sqe_pool_alloc(struct rtio_sqe_pool *pool) in rtio_sqe_pool_alloc() argument
722 struct mpsc_node *node = mpsc_pop(&pool->free_q); in rtio_sqe_pool_alloc()
730 pool->pool_free--; in rtio_sqe_pool_alloc()
735 static inline void rtio_sqe_pool_free(struct rtio_sqe_pool *pool, struct rtio_iodev_sqe *iodev_sqe) in rtio_sqe_pool_free() argument
737 mpsc_push(&pool->free_q, &iodev_sqe->q); in rtio_sqe_pool_free()
739 pool->pool_free++; in rtio_sqe_pool_free()
742 static inline struct rtio_cqe *rtio_cqe_pool_alloc(struct rtio_cqe_pool *pool) in rtio_cqe_pool_alloc() argument
744 struct mpsc_node *node = mpsc_pop(&pool->free_q); in rtio_cqe_pool_alloc()
[all …]

123456