/Zephyr-Core-3.5.0/doc/kernel/memory_management/ |
D | sys_mem_blocks.rst | 6 The Memory Blocks Allocator allows memory blocks to be dynamically 9 * All memory blocks have a single fixed size. 11 * Multiple blocks can be allocated or freed at the same time. 13 * A group of blocks allocated together may not be contiguous. 16 * Bookkeeping of allocated blocks is done outside of the associated 30 A memory blocks allocator has the following key properties: 35 * The **number of blocks** available for allocation. 38 * A **buffer** that provides the memory for the memory slab's blocks. 39 It must be at least "block size" times "number of blocks" bytes long. 41 * A **blocks bitmap** to keep track of which block has been allocated. [all …]
|
D | slabs.rst | 6 A :dfn:`memory slab` is a kernel object that allows memory blocks 8 All memory blocks in a memory slab have a single fixed size, 27 * The **number of blocks** available for allocation. 30 * A **buffer** that provides the memory for the memory slab's blocks. 31 It must be at least "block size" times "number of blocks" bytes long. 35 all memory blocks in the buffer are similarly aligned to this boundary, 39 its blocks as unused. 45 If all the blocks are currently in use, a thread can optionally wait 52 allows for a memory slab with smaller blocks and others with larger-sized 53 blocks. Alternatively, a memory pool object may be used. [all …]
|
D | heap.rst | 53 applications that want to manage their own blocks of memory in 73 blocks within one power of two (i.e. a bucket for blocks of 3-4 75 be made from the smallest/most-fragmented blocks available. Also, as 77 combined with adjacent free blocks to prevent fragmentation. 92 the minimum bucket size for an allocation (the set of free blocks that 116 all allocated blocks are freed (or at least will never be used again)
|
/Zephyr-Core-3.5.0/tests/lib/mem_blocks/src/ |
D | main.c | 119 void *blocks[NUM_BLOCKS][1]; in alloc_free() local 138 ret = sys_mem_blocks_alloc(mem_block, 1, blocks[i]); in alloc_free() 142 zassert_true(check_buffer_bound(mem_block, blocks[i][0]), in alloc_free() 156 zassert_equal(listener_mem[i], blocks[i][0], in alloc_free() 158 listener_mem[i], blocks[i][0]); in alloc_free() 168 ret = sys_mem_blocks_alloc(mem_block, 1, blocks[i]); in alloc_free() 178 ret = sys_mem_blocks_free(mem_block, 1, blocks[i]); in alloc_free() 193 zassert_equal(listener_mem[i], blocks[i][0], in alloc_free() 195 listener_mem[i], blocks[i][0]); in alloc_free() 599 void *blocks[2][1] = {0}; in ZTEST() local [all …]
|
/Zephyr-Core-3.5.0/tests/kernel/mem_slab/mslab/ |
D | README.txt | 36 (1) - Allocate and free 2 blocks in <main> 39 MAP_LgBlks used 0 blocks 41 MAP_LgBlks used 1 blocks 43 MAP_LgBlks used 2 blocks 44 k_mem_slab_alloc RC_FAIL expected as all (2) blocks are used. 49 MAP_LgBlks used 2 blocks 52 MAP_LgBlks used 1 blocks 55 MAP_LgBlks used 0 blocks 59 (2) - Allocate 2 blocks in <helper_thread> 62 MAP_LgBlks used 0 blocks [all …]
|
/Zephyr-Core-3.5.0/tests/kernel/mem_heap/mheap_api_concept/src/ |
D | test_mheap_api.c | 258 char *blocks[N_MULTI_HEAPS]; in ZTEST() local 270 blocks[i] = sys_multi_heap_alloc(&multi_heap, (void *)(long)i, in ZTEST() 273 zassert_not_null(blocks[i], "allocation failed"); in ZTEST() 274 zassert_true(blocks[i] >= &heap_mem[i][0] && in ZTEST() 275 blocks[i] < &heap_mem[i+1][0], in ZTEST() 289 sys_multi_heap_free(&multi_heap, blocks[i]); in ZTEST() 294 blocks[i] = sys_multi_heap_alloc(&multi_heap, (void *)(long)i, in ZTEST() 296 zassert_not_null(blocks[i], "final re-allocation failed"); in ZTEST()
|
/Zephyr-Core-3.5.0/tests/subsys/fs/ext2/src/ |
D | testfs_ext_specific.c | 15 uint32_t blocks = 0; in calculate_blocks() local 21 blocks += 12; in calculate_blocks() 25 return blocks + freeb; in calculate_blocks() 28 blocks += B; in calculate_blocks() 36 return blocks + n * B + r - partial; in calculate_blocks() 38 return blocks; in calculate_blocks()
|
/Zephyr-Core-3.5.0/subsys/random/ |
D | rand32_xoshiro128.c | 105 size_t blocks = outlen / sizeof(uint32_t); in z_impl_sys_rand_get() local 106 size_t rem = (outlen - (blocks * sizeof(uint32_t))); in z_impl_sys_rand_get() 115 while (blocks--) { in z_impl_sys_rand_get()
|
/Zephyr-Core-3.5.0/tests/lib/mem_blocks_stats/src/ |
D | main.c | 51 void *blocks[3]; in ZTEST() local 70 status = sys_mem_blocks_alloc(&mem_block_01, 3, blocks); in ZTEST() 88 status = sys_mem_blocks_free(&mem_block_01, 2, &blocks[1]); in ZTEST() 106 status = sys_mem_blocks_alloc(&mem_block_01, 1, &blocks[1]); in ZTEST() 143 status = sys_mem_blocks_free(&mem_block_01, 2, &blocks[0]); in ZTEST()
|
/Zephyr-Core-3.5.0/drivers/usb/udc/ |
D | Kconfig.kinetis | 13 int "Number or blocks in event slab" 18 Number of blocks in slab for internal endpoint events.
|
/Zephyr-Core-3.5.0/subsys/fs/ext2/ |
D | Kconfig | 31 are used to store fetched blocks. 34 int "Maximum number of blocks that might be used" 38 are used to store fetched blocks.
|
/Zephyr-Core-3.5.0/lib/os/ |
D | Kconfig.heap | 110 () All memory blocks have a single fixed size. 111 () Multiple blocks can be allocated or freed at the same time. 112 () A group of blocks allocated together may not be contiguous. 115 () Bookkeeping of allocated blocks is done outside of 125 This allows application to listen for memory blocks allocator 129 bool "Memory blocks runtime statistics" 133 blocks statistics related to the current and maximum number 137 bool "Kernel object for memory blocks" 145 bool "Object core statistics for memory blocks" 151 the memory blocks.
|
D | heap-validate.c | 209 struct z_heap_stress_block *blocks; member 313 .blocks = scratch_mem, in sys_heap_stress() 328 sr.blocks[sr.blocks_alloced].ptr = p; in sys_heap_stress() 329 sr.blocks[sr.blocks_alloced].sz = sz; in sys_heap_stress() 335 void *p = sr.blocks[b].ptr; in sys_heap_stress() 336 size_t sz = sr.blocks[b].sz; in sys_heap_stress() 339 sr.blocks[b] = sr.blocks[sr.blocks_alloced - 1]; in sys_heap_stress()
|
/Zephyr-Core-3.5.0/subsys/sd/ |
D | sd_ops.c | 211 data.blocks = 1U; in sdmmc_spi_read_cxd() 506 data.blocks = num_blocks; in card_read() 602 uint32_t *blocks = (uint32_t *)card->card_buffer; in card_query_written() local 616 data.blocks = 1U; in card_query_written() 617 data.data = blocks; in card_query_written() 632 *num_written = sys_be32_to_cpu(blocks[0]); in card_query_written() 640 uint32_t blocks; in card_write() local 661 data.blocks = num_blocks; in card_write() 675 ret = card_query_written(card, &blocks); in card_write() 679 LOG_ERR("Only %d blocks of %d were written", blocks, num_blocks); in card_write()
|
/Zephyr-Core-3.5.0/drivers/flash/ |
D | soc_flash_numaker.c | 178 int blocks = (len / flash_numaker_parameters.write_block_size); in flash_numaker_write() local 212 while (blocks) { in flash_numaker_write() 219 blocks--; in flash_numaker_write()
|
/Zephyr-Core-3.5.0/samples/subsys/usb/mass/ |
D | README.rst | 86 sd 3:0:0:0: [sdb] 256 512-byte logical blocks: (131 kB/128 KiB) 102 /NAND:: bsize = 512 ; frsize = 1024 ; blocks = 2028 ; bfree = 1901 149 /SD:: bsize = 512 ; frsize = 32768 ; blocks = 119776 ; bfree = 119773 183 [00:00:00.009,063] <inf> littlefs: FS at MX25R64:0x0 is 16 0x1000-byte blocks with 512 cye 187 /lfs: bsize = 16 ; frsize = 4096 ; blocks = 16 ; bfree = 13 210 …Apr 25 08:10:25 tirzah kernel: [570310.922277] sd 17:0:0:0: [sdd] 256 512-byte logical blocks: (13… 264 [00:00:00.009,063] <inf> littlefs: FS at MX25R64:0x0 is 16 0x1000-byte blocks with 512 cye 269 * ``--block_size`` comes from ``0x1000-byte blocks`` and is 4096 (0x1000); 270 * ``--block_count`` comes from ``16 0x1000-byte blocks`` and is 16;
|
/Zephyr-Core-3.5.0/scripts/build/ |
D | uf2conv.py | 159 blocks = [] 184 blocks.append(currblock) 188 numblocks = len(blocks) 191 resfile += blocks[i].encode(i, numblocks)
|
/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/ |
D | blob_srv.c | 90 offsetof(struct bt_mesh_blob_srv_state, blocks) + block_len); in store_state() 312 net_buf_simple_add_mem(&buf, srv->state.blocks, in xfer_status_rsp() 493 memset(srv->state.blocks, 0, sizeof(srv->state.blocks)); in handle_xfer_start() 495 atomic_set_bit(srv->state.blocks, i); in handle_xfer_start() 640 !atomic_test_bit(srv->state.blocks, block_number)) { in handle_block_start() 746 atomic_clear_bit(srv->state.blocks, srv->block.number); in handle_chunk() 748 for (i = 0; i < ARRAY_SIZE(srv->state.blocks); ++i) { in handle_chunk() 749 if (!srv->state.blocks[i]) { in handle_chunk() 829 if (len_rd < offsetof(struct bt_mesh_blob_srv_state, blocks)) { in blob_srv_settings_set() 966 if (!atomic_test_bit(srv->state.blocks, i)) { in bt_mesh_blob_srv_progress()
|
/Zephyr-Core-3.5.0/boards/arm/legend/ |
D | legend.dts | 104 * Erase size : whole chip, 64 and 32 KB blocks, 4 KB sectors, 116 * Erase size : whole chip, 64 and 32 KB blocks, 4 KB sectors 127 * Erase size : whole chip, 64 and 32 KB blocks, 4 KB sectors
|
/Zephyr-Core-3.5.0/boards/arm/mimxrt595_evk/ |
D | Kconfig.defconfig | 25 # channels that use multiple blocks for a DMA transfer.
|
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/mesh/ |
D | blob_srv.h | 151 ATOMIC_DEFINE(blocks, BT_MESH_BLOB_BLOCKS_MAX);
|
/Zephyr-Core-3.5.0/subsys/fs/ |
D | Kconfig.littlefs | 57 A larger lookahead buffer increases the number of blocks found 59 compact bitmap, so each byte of RAM can track 8 blocks. Must 88 support up to FS_LITTLE_FS_NUM_FILES blocks of
|
/Zephyr-Core-3.5.0/drivers/sdhc/ |
D | intel_emmc_host.c | 414 sys_cache_data_flush_range(data->data, (data->blocks * data->block_size)); in emmc_dma_init() 424 __ASSERT_NO_MSG(data->blocks < CONFIG_INTEL_EMMC_HOST_ADMA_DESC_SIZE); in emmc_dma_init() 426 for (int i = 0; i < data->blocks; i++) { in emmc_dma_init() 430 if (i == (data->blocks - 1u)) { in emmc_dma_init() 479 if (data->blocks > 1) { in emmc_init_xfr() 503 regs->block_count = (uint16_t)data->blocks; in emmc_init_xfr() 771 uint32_t i, block_cnt = sdhc->blocks; in read_data_port() 792 (sdhc->blocks - block_cnt)); in read_data_port() 817 uint32_t i, block_cnt = sdhc->blocks; in write_data_port() 944 if (data->blocks > 1) { in emmc_xfr()
|
/Zephyr-Core-3.5.0/boards/arm/mimxrt1015_evk/ |
D | CMakeLists.txt | 13 "update your flash configuration data blocks")
|
/Zephyr-Core-3.5.0/boards/arm/mimxrt1010_evk/ |
D | CMakeLists.txt | 14 "update your flash configuration data blocks")
|