/Zephyr-latest/lib/net_buf/ |
D | buf.c | 45 /* Linker-defined symbol bound to the static pool structs */ 50 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 [all …]
|
D | Kconfig | 45 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/portability/cmsis_rtos_v2/ |
D | mempool.c | 26 * @brief Create and Initialize a memory pool. 58 "memory slab/pool size exceeds dynamic maximum"); in osMemoryPoolNew() 60 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() 92 * @brief Allocate a memory block from a memory pool. 131 * @brief Return an allocated memory block back to a specific memory pool. 142 * osErrorResource: the memory pool specified by parameter mp_id in osMemoryPoolFree() [all …]
|
/Zephyr-latest/subsys/portability/cmsis_rtos_v1/ |
D | cmsis_mempool.c | 14 * @brief Create and Initialize a memory pool. 26 * @brief Allocate a memory block from a memory pool. 33 if (k_mem_slab_alloc((struct k_mem_slab *)(osPool->pool), in osPoolAlloc() 42 * @brief Allocate a memory block from a memory pool and set it to zero. 49 if (k_mem_slab_alloc((struct k_mem_slab *)(osPool->pool), in osPoolCAlloc() 59 * @brief Return an allocated memory block back to a specific memory pool. 66 * osErrorValue: block does not belong to the memory pool. in osPoolFree() 71 k_mem_slab_free((struct k_mem_slab *)(osPool->pool), (void *)block); in osPoolFree()
|
/Zephyr-latest/modules/lvgl/ |
D | Kconfig.memory | 20 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/drivers/entropy/ |
D | Kconfig.smartbond | 18 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"
|
D | Kconfig.nrf5 | 35 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"
|
D | Kconfig.stm32 | 21 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/usb/device_next/class/ |
D | Kconfig.hid | 14 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/net/lib/shell/ |
D | mem.c | 24 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() 110 PR("Fragment RX data pool size %d bytes\n", CONFIG_NET_PKT_BUF_RX_DATA_POOL_SIZE); in cmd_net_mem() [all …]
|
/Zephyr-latest/tests/kernel/threads/dynamic_thread_stack/ |
D | testcase.yaml | 18 # Permutations of (pool | alloc | user) 48 kernel.threads.dynamic_thread.stack.pool.no_alloc.no_user: 54 kernel.threads.dynamic_thread.stack.pool.no_alloc.user: 61 kernel.threads.dynamic_thread.stack.pool.alloc.no_user: 68 kernel.threads.dynamic_thread.stack.pool.alloc.user:
|
/Zephyr-latest/include/zephyr/multi_heap/ |
D | shared_multi_heap.h | 38 * pool providing an opaque "attribute" value (an integer or enum value) that 46 * regions to the pool with @ref shared_multi_heap_add, possibly gathering 90 * the multi-heap pool. 104 * @brief Init the pool 107 * multi-heap pool. All the individual heaps must be added later with @ref 114 * @retval -EALREADY when the pool was already inited. 120 * @brief Allocate memory from the memory shared multi-heap pool 135 * @brief Allocate aligned memory from the memory shared multi-heap pool 152 * @brief Free memory from the shared multi-heap pool 165 * @brief Add an heap region to the shared multi-heap pool [all …]
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_update_usage/src/ |
D | main.c | 20 * Item in this list will be used to fill keys pool. 34 /* This list will hold returned references while filling keys pool */ 49 zassert_true(rv == 0, "Failed to fill keys pool list, error code %d", -rv); in tc_setup() 57 * Request updating non-existing item in the keys pool list 60 * - Keys pool list is filled with items that are different from the testing ID and address pair 81 * - Keys pool list is filled with items 102 * - Keys pool list is filled with items 103 * - ID and address used exist in the keys pool list
|
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/src/ |
D | ull.c | 43 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 294 /* Initialize done pool. */ in init_reset() 295 mem_init(mem_done.pool, sizeof(struct node_rx_event_done), EVENT_DONE_MAX, &mem_done.free); in init_reset() 297 /* Initialize done link pool. */ in init_reset() 298 mem_init(mem_link_done.pool, sizeof(memq_link_t), EVENT_DONE_MAX, &mem_link_done.free); in init_reset() 300 /* Initialize rx pool. */ in init_reset() 301 mem_init(mem_pdu_rx.pool, (PDU_RX_NODE_POOL_ELEMENT_SIZE), in init_reset() [all …]
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_get_type/src/ |
D | main.c | 21 * Item in this list will be used to fill keys pool. 32 /* This list will hold returned references while filling keys pool */ 53 zassert_true(rv == 0, "Failed to fill keys pool list, error code %d", -rv); in full_list_ts_setup() 64 * - Keys pool list isn't full 65 * - ID and address pair used doesn't exist in the keys pool list 93 "bt_keys_get_type() failed to add key %d to the keys pool", i); in ZTEST() 108 * - Keys pool list is filled with items different from the ones used for testing 129 * - Keys pool list is filled with the ID and address pairs used 155 "bt_keys_get_type() failed to add key %d to the keys pool", i); in ZTEST()
|
/Zephyr-latest/drivers/usb/uhc/ |
D | Kconfig | 15 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/rtio/ |
D | Kconfig.workq | 27 int "Pool of work items to use with the RTIO Work-queues" 30 Configure the Pool of work items appropriately to your 32 to issue, the bigger this pool should be.
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_get_addr/src/ |
D | test_suite_full_list_overwrite_oldest.c | 19 /* This list holds returned references while filling keys pool */ 114 zassert_true(rv == 0, "Failed to fill keys pool list, error code %d", -rv); in test_case_setup() 120 * Test adding extra (ID, Address) pair while the keys pool list is full while all keys are in 124 * - Keys pool list is full 146 * Test adding extra (ID, Address) pair while the keys pool list is full, but no keys are used with 150 * - Keys pool list is full 155 * - A valid pointer in the keys pool is returned, matching the one previously assigned to the 178 * Test adding extra (ID, Address) pair while the keys pool list is full when the oldest key slot 183 * - Keys pool list is full 189 * - A valid pointer in the keys pool is returned, matching the one previously assigned to the [all …]
|
D | main.c | 27 /* This list will hold returned references while filling keys pool */ 43 * Check if the keys pool list is empty after starting up 49 * - Keys pool list is empty 60 * Test filling the keys pool with (ID, Address) pairs 63 * - Keys pool list is empty after starting up 87 "bt_keys_get_addr() failed to add key %d to the keys pool", i); in ZTEST() 100 * - Keys pool has been filled 125 zassert_true(rv == 0, "Failed to fill keys pool list, error code %d", -rv); in test_case_setup() 158 "bt_keys_get_addr() failed to add key %d to the keys pool", i); in ZTEST()
|
D | test_suite_full_list_no_overwrite.c | 17 /* This list holds returned references while filling keys pool */ 30 zassert_true(rv == 0, "Failed to fill keys pool list, error code %d", -rv); in test_case_setup() 36 * Test adding extra (ID, Address) pair while the keys pool list is full. 41 * - Keys pool list is full
|
D | test_suite_full_list_invalid_values.c | 20 /* This list holds returned references while filling keys pool */ 53 zassert_true(rv == 0, "Failed to fill keys pool list, error code %d", -rv); in test_case_setup() 59 * Test adding extra (ID, Address) pair while the keys pool list is full, but while looking 63 * - Keys pool list is full 88 * Test adding extra (ID, Address) pair while the keys pool list is full, but while looking 92 * - Keys pool list is full
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_foreach_bond/src/ |
D | main.c | 25 /* This list will hold returned references while filling keys pool */ 37 zassert_true(rv == 0, "Failed to fill keys pool list, error code %d", -rv); in type_not_set_ts_setup() 52 * in the keys pool but the keys type isn't set 55 * - Keys pool has been filled 81 zassert_true(rv == 0, "Failed to fill keys pool list, error code %d", -rv); in type_set_ts_setup() 106 * in the keys pool while the keys type is set 109 * - Keys pool has been filled
|
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_clear/src/ |
D | main.c | 20 /* Clear keys pool */ in tc_setup() 54 /* Add custom item to the keys pool */ in ZTEST() 58 /* Ensure that item exists in the keys pool */ in ZTEST() 70 /* Ensure that item doesn't exist in the keys pool after calling bt_keys_clear() */ in ZTEST() 100 /* Add custom item to the keys pool */ in ZTEST() 104 /* Ensure that item exists in the keys pool */ in ZTEST() 118 /* Ensure that item doesn't exist in the keys pool after calling bt_keys_clear() */ in ZTEST()
|
/Zephyr-latest/doc/kernel/memory_management/ |
D | shared_multi_heap.rst | 6 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/dma/ |
D | Kconfig.dw_common | 12 int "number of LLI structs in an allocation pool" 15 The number of LLI structs in a statically allocated pool. Each channel has its own 16 LLI struct pool. If during dma_config() a log notes there are not enough LLI structs
|