Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 25 of 199) sorted by relevance

12345678

/Zephyr-latest/doc/kernel/memory_management/
Dsys_mem_blocks.rst6 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 …]
Dslabs.rst6 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 …]
/Zephyr-latest/tests/lib/mem_blocks/src/
Dmain.c119 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-latest/tests/kernel/mem_slab/mslab/
DREADME.txt36 (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-latest/lib/mem_blocks/
DKconfig11 () All memory blocks have a single fixed size.
12 () 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
26 This allows application to listen for memory blocks allocator
30 bool "Memory blocks runtime statistics"
34 blocks statistics related to the current and maximum number
38 bool "Kernel object for memory blocks"
46 bool "Object core statistics for memory blocks"
52 the memory blocks.
/Zephyr-latest/tests/lib/multi_heap/src/
Dtest_mheap_api.c319 char *blocks[N_MULTI_HEAPS]; in ZTEST() local
331 blocks[i] = sys_multi_heap_alloc(&multi_heap, (void *)(long)i, in ZTEST()
334 zassert_not_null(blocks[i], "allocation failed"); in ZTEST()
335 zassert_true(blocks[i] >= &heap_mem[i][0] && in ZTEST()
336 blocks[i] < &heap_mem[i+1][0], in ZTEST()
340 blocks[i], MHEAP_BYTES / 2); in ZTEST()
342 zassert_equal(ptr, blocks[i], "realloc moved pointer"); in ZTEST()
355 sys_multi_heap_free(&multi_heap, blocks[i]); in ZTEST()
360 blocks[i] = sys_multi_heap_alloc(&multi_heap, (void *)(long)i, in ZTEST()
362 zassert_not_null(blocks[i], "final re-allocation failed"); in ZTEST()
[all …]
/Zephyr-latest/lib/heap/
Dheap_stress.c16 struct z_heap_stress_block *blocks; member
120 .blocks = scratch_mem, in sys_heap_stress()
135 sr.blocks[sr.blocks_alloced].ptr = p; in sys_heap_stress()
136 sr.blocks[sr.blocks_alloced].sz = sz; in sys_heap_stress()
142 void *p = sr.blocks[b].ptr; in sys_heap_stress()
143 size_t sz = sr.blocks[b].sz; in sys_heap_stress()
146 sr.blocks[b] = sr.blocks[sr.blocks_alloced - 1]; in sys_heap_stress()
/Zephyr-latest/samples/subsys/ipc/ipc_service/multi_endpoint/remote/boards/
Dnrf5340dk_nrf5340_cpunet_icbmsg.overlay39 tx-blocks = <24>;
40 rx-blocks = <16>;
50 tx-blocks = <48>;
51 rx-blocks = <32>;
/Zephyr-latest/samples/subsys/ipc/ipc_service/multi_endpoint/boards/
Dnrf5340dk_nrf5340_cpuapp_icbmsg.overlay39 tx-blocks = <16>;
40 rx-blocks = <24>;
55 tx-blocks = <32>;
56 rx-blocks = <48>;
/Zephyr-latest/subsys/random/
Drandom_xoshiro128.c96 size_t blocks = outlen / sizeof(uint32_t); in z_impl_sys_rand_get() local
97 size_t rem = (outlen - (blocks * sizeof(uint32_t))); in z_impl_sys_rand_get()
106 while (blocks--) { in z_impl_sys_rand_get()
/Zephyr-latest/dts/arm/nordic/
Dnrf5340_cpuapp_ipc.dtsi14 tx-blocks = <32>;
15 rx-blocks = <32>;
/Zephyr-latest/doc/services/ipc/ipc_service/backends/
Dipc_service_icbmsg.rst18 One is reserved for the ICMsg and the other contains equal-sized blocks.
19 The number of blocks is configured in the devicetree.
23 * The sender allocates one or more blocks.
24 …If there are not enough sequential blocks, it waits using the timeout provided in the parameter th…
25 * The allocated blocks are filled with data.
27 …During this time other threads are not blocked in any way as long as there are enough free blocks
30 …The size of the ICMsg queue is large enough to hold messages for all blocks, so it will never over…
32 Again, other threads are not blocked as long as there are enough free blocks for them.
34 * When the backend receives this message, it deallocates all blocks.
48 * Define the number of allocable blocks for each region with ``tx-blocks`` and ``rx-blocks``.
[all …]
/Zephyr-latest/tests/lib/mem_blocks_stats/src/
Dmain.c51 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-latest/drivers/usb/udc/
DKconfig.kinetis13 int "Number or blocks in event slab"
18 Number of blocks in slab for internal endpoint events.
DKconfig.mcux25 int "Number or blocks in event slab"
30 Number of blocks in slab for internal controller events.
/Zephyr-latest/tests/subsys/fs/ext2/src/
Dtestfs_ext_specific.c15 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-latest/samples/subsys/ipc/ipc_service/icmsg/boards/
Dnrf54l15dk_nrf54l15_cpuapp_icbmsg.overlay29 tx-blocks = <16>;
30 rx-blocks = <18>;
/Zephyr-latest/samples/subsys/ipc/ipc_service/icmsg/remote/boards/
Dnrf54l15dk_nrf54l15_cpuflpr_icbmsg.overlay29 tx-blocks = <18>;
30 rx-blocks = <16>;
/Zephyr-latest/drivers/i2s/
DKconfig.esp3220 Max number of blocks waiting to be read from the I2S RX channel.
26 Max number of blocks waiting to be transmitted by the I2S TX channel.
/Zephyr-latest/samples/drivers/i2s/i2s_codec/
DKconfig7 int "Initial count of audio data blocks"
10 Controls the initial count of audio data blocks, which are (optionally)
/Zephyr-latest/subsys/fs/ext2/
DKconfig31 are used to store fetched blocks.
34 int "Maximum number of blocks that might be used"
38 are used to store fetched blocks.
/Zephyr-latest/include/zephyr/sd/
Dsdio.h156 uint32_t blocks);
173 uint32_t blocks);
/Zephyr-latest/subsys/sd/
Dsdio.c130 uint32_t blocks, in sdio_io_rw_extended() argument
143 if (blocks == 0) { in sdio_io_rw_extended()
148 cmd.arg |= BIT(SDIO_EXTEND_CMD_ARG_BLK_SHIFT) | blocks; in sdio_io_rw_extended()
153 data.blocks = blocks ? blocks : 1; in sdio_io_rw_extended()
172 uint32_t blocks, size; in sdio_io_rw_extended_helper() local
182 blocks = remaining / func->block_size; in sdio_io_rw_extended_helper()
183 size = blocks * func->block_size; in sdio_io_rw_extended_helper()
185 func->num, reg_addr, increment, buf, blocks, in sdio_io_rw_extended_helper()
953 uint32_t blocks) in sdio_read_blocks_fifo() argument
967 false, data, blocks, func->block_size); in sdio_read_blocks_fifo()
[all …]
/Zephyr-latest/dts/arm/atmel/
Dsam4sa16c.dtsi15 erase-blocks = <&eefc 8 2048>, <&eefc 252 4096>;
Dsam4e16c.dtsi15 erase-blocks = <&eefc 8 2048>, <&eefc 252 4096>;

12345678