/Zephyr-Core-3.5.0/tests/bluetooth/mesh/blob_io_flash/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 16 /* Chunk size is set to value that is not multiple of 4, to verify that chunks are written correctly 23 static size_t chunk_size(const struct bt_mesh_blob_block *block, in chunk_size() argument 26 if ((chunk_idx == block->chunk_count - 1) && in chunk_size() 27 (block->size % CHUNK_SIZE)) { in chunk_size() 28 return block->size % CHUNK_SIZE; in chunk_size() 34 static uint8_t block_size_to_log(size_t size) in block_size_to_log() argument 38 while (size > 1) { in block_size_to_log() 39 size = size / 2; in block_size_to_log() 52 struct bt_mesh_blob_block block = { 0 }; in ZTEST() local [all …]
|
/Zephyr-Core-3.5.0/subsys/fs/ |
D | Kconfig.littlefs | 4 # SPDX-License-Identifier: Apache-2.0 31 int "Minimum size of a block read" 37 int "Minimum size of a block program" 43 int "Size of block caches in bytes" 46 Each cache buffers a portion of a block in RAM. The littlefs 51 device, and a factor of the block size. 54 int "Size of lookahead buffer in bytes" 63 int "Number of erase cycles before moving data to another block" 67 is moved to another block. Set to a non-positive value to 76 littlefs requires a per-file buffer to cache data. [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/mesh/ |
D | blob.h | 4 * SPDX-License-Identifier: Apache-2.0 46 /** The BLOB Transfer Server is waiting for the next block of data. */ 60 /** The Block Number field value is not within the range of blocks being 64 /** The block size is smaller than the size indicated by the Min Block 65 * Size Log state or is larger than the size indicated by the Max Block 66 * Size Log state. 69 /** The chunk size exceeds the size indicated by the Max Chunk Size 97 /** BLOB transfer data block. */ 99 /** Block size in bytes */ 100 size_t size; member [all …]
|
/Zephyr-Core-3.5.0/dts/bindings/misc/ |
D | zephyr,flash-disk.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: Block storage device on flash partition 6 compatible: "zephyr,flash-disk" 17 disk-name: 23 sector-size: 27 Emulated block device sector size in bytes. 29 cache-size: 33 Size of statically allocated buffer size in bytes. The size should be 34 adequately chosen. On storage backends with uniform erase-blocks it 35 should be at least the erase-block-size, on storage backends with [all …]
|
/Zephyr-Core-3.5.0/soc/xtensa/intel_adsp/common/include/ |
D | intel_adsp_hda.h | 2 * SPDX-License-Identifier: Apache-2.0 21 * addresses, the stream count, and the size of the ip blocks. 37 #define DGCS_SCS BIT(31) /* Sample container size */ 56 /* Gateway Buffer Size */ 76 /* Gateway Minimum Buffer Size */ 96 * @param base Base address of the IP register block 97 * @param regblock_size Register block size 121 * @param base Base address of the IP register block 130 * @brief Set the buffer, size, and element size for an HDA stream 132 * Sanity checks that the buffer address and size are valid and that the [all …]
|
/Zephyr-Core-3.5.0/dts/bindings/fs/ |
D | zephyr,fstab,littlefs.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 Description of pre-defined file systems. 9 include: "zephyr,fstab-common.yaml" 12 # num-files and num-dirs are not filesystem-specific. 14 read-size: 18 The size of file system read operations, in bytes. 25 prog-size: 29 The size of file system program (write) operations, in bytes. 36 cache-size: 40 The size of block caches, in bytes. [all …]
|
/Zephyr-Core-3.5.0/drivers/video/ |
D | video_common.c | 4 * SPDX-License-Identifier: Apache-2.0 22 struct video_buffer *video_buffer_alloc(size_t size) in video_buffer_alloc() argument 25 struct mem_block *block; in video_buffer_alloc() local 32 block = &video_block[i]; in video_buffer_alloc() 42 block->data = k_heap_alloc(&video_buffer_pool, size, K_FOREVER); in video_buffer_alloc() 43 if (block->data == NULL) { in video_buffer_alloc() 47 vbuf->buffer = block->data; in video_buffer_alloc() 48 vbuf->size = size; in video_buffer_alloc() 49 vbuf->bytesused = 0; in video_buffer_alloc() 56 struct mem_block *block = NULL; in video_buffer_release() local [all …]
|
/Zephyr-Core-3.5.0/doc/kernel/memory_management/ |
D | slabs.rst | 8 All memory blocks in a memory slab have a single fixed size, 24 * The **block size** of each block, measured in bytes. 31 It must be at least "block size" times "number of blocks" bytes long. 33 The memory slab's buffer must be aligned to an N-byte boundary, where 36 the block size must also be a multiple of N. 41 A thread that needs to use a memory block simply allocates it from a memory 42 slab. When the thread finishes with a memory block, 43 it must release the block back to the memory slab so the block can be reused. 48 when a memory block becomes available, it is given to the highest-priority 52 allows for a memory slab with smaller blocks and others with larger-sized [all …]
|
/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/ |
D | blob_io_flash.c | 4 * SPDX-License-Identifier: Apache-2.0 34 return -EINVAL; in test_flash_area() 46 flash->mode = mode; in io_open() 48 return flash_area_open(flash->area_id, &flash->area); in io_open() 56 flash_area_close(flash->area); in io_close() 61 const struct bt_mesh_blob_block *block) in block_start() argument 66 if (flash->mode == BT_MESH_BLOB_READ) { in block_start() 75 flash_dev = flash_area_get_device(flash->area); in block_start() 77 return -ENODEV; in block_start() 81 flash->offset + block->offset, &page); in block_start() [all …]
|
D | blob_srv.c | 4 * SPDX-License-Identifier: Apache-2.0 20 #define MTU_SIZE_MAX (BT_MESH_RX_SDU_MAX - BT_MESH_MIC_SHORT) 23 #define SERVER_TIMEOUT_SECS(srv) (10 * (1 + (srv)->state.timeout_base)) 24 /* The initial timer value used by an instance of the Pull BLOB State machine - T_BPI */ 29 "max block size that is the power of two."); 33 "The BLOB Transfer Status message does not fit into the maximum outgoing SDU size."); 38 "The BLOB Partial Block Report message does not fit into the maximum outgoing SDU " 39 "size."); 43 "The BLOB Block Status message does not fit into the maximum outgoing SDU size."); 50 return DIV_ROUND_UP(srv->state.xfer.size, in block_count_get() [all …]
|
D | blob.h | 4 * SPDX-License-Identifier: Apache-2.0 27 #define BLOB_CHUNK_SIZE_MAX(sdu_max) ((sdu_max) - BLOB_CHUNK_SDU_OVERHEAD) 31 * Used to determine the log2 representation of the block size, which 36 * According to the specification, the block size cannot be larger than 2^20, 45 /* Log2 representation of the minimum block size */ 47 /* Log2 representation of the maximum block size */ 52 MAX(sizeof(((struct bt_mesh_blob_block *)0)->missing), \ 55 MAX(sizeof(((struct bt_mesh_blob_block *)0)->missing), \ 58 #define BLOB_BLOCK_REPORT_STATUS_MSG_MAXLEN sizeof(((struct bt_mesh_blob_srv *)0)->block.missing) 59 #define BLOB_BLOCK_STATUS_MSG_MAXLEN (5 + sizeof(((struct bt_mesh_blob_srv *)0)->block.missing)) [all …]
|
/Zephyr-Core-3.5.0/subsys/net/lib/coap/ |
D | Kconfig | 4 # SPDX-License-Identifier: Apache-2.0 21 bool "CoAP ./well-known/core services block wise support" 23 This option enables the block wise support of CoAP response 24 to ./well-known/core request. Without this option all resource's 26 fragments depends on MTU size). This will be useful in mesh kind 30 int "CoAP ./well-known/core services block wise support" 34 Maximum size of CoAP block. Valid values are 16, 32, 64, 128, 89 This option enables MQTT-style wildcards in path. Disable it if 95 This option enables keeping application-specific user data 101 This option enables the API for CoAP-client for sending CoAP requests [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/flash_simulator/boards/ |
D | nucleo_f411re.overlay | 4 * SPDX-License-Identifier: Apache-2.0 9 compatible = "zephyr,memory-region", "mmio-sram"; 11 zephyr,memory-region = "FlashSim"; 16 sim_flash_controller: sim-flash-controller@0 { 17 compatible = "zephyr,sim-flash"; 20 #address-cells = <1>; 21 #size-cells = <1>; 22 erase-value = <0xff>; 23 memory-region = <&sram_2001C000>; 27 compatible = "soc-nv-flash"; [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/sys/ |
D | mem_blocks.h | 4 * SPDX-License-Identifier: Apache-2.0 63 * This is a user-provided functions whose responsibility is selecting 70 * allocation to fail and a -EINVAL reported to the calling code. 73 * @param cfg An opaque user-provided value. It may be interpreted in 87 uint8_t blk_sz_shift; /* Bit shift for block size */ 97 /* Memory block buffer */ 104 /* Spinlock guarding access to memory block internals */ 120 * @brief Create a memory block object with a providing backing buffer. 122 * @param name Name of the memory block object. 123 * @param blk_sz Size of each memory block (in bytes, power of 2). [all …]
|
D | multi_heap.h | 2 * SPDX-License-Identifier: Apache-2.0 13 * @brief Multi-heap allocator 23 * in backend, which is then provided to a user-specified "choice" 30 * @brief Multi-heap choice function 32 * This is a user-provided functions whose responsibility is selecting 37 * allocation, and may choose to pad the user-provided values as 44 * @param mheap Multi-heap structure. 45 * @param cfg An opaque user-provided value. It may be interpreted in 48 * @param size The user-specified allocation size in bytes 52 size_t align, size_t size); [all …]
|
/Zephyr-Core-3.5.0/lib/os/ |
D | shared_multi_heap.c | 4 * SPDX-License-Identifier: Apache-2.0 21 static void *smh_choice(struct sys_multi_heap *mheap, void *cfg, size_t align, size_t size) in smh_choice() argument 25 void *block; in smh_choice() local 29 if (attr >= MAX_SHARED_MULTI_HEAP_ATTR || size == 0) { in smh_choice() 33 /* Set in case the user requested a non-existing attr */ in smh_choice() 34 block = NULL; in smh_choice() 39 if (h->heap == NULL) { in smh_choice() 43 block = sys_heap_aligned_alloc(h, align, size); in smh_choice() 44 if (block != NULL) { in smh_choice() 49 return block; in smh_choice() [all …]
|
/Zephyr-Core-3.5.0/doc/connectivity/bluetooth/api/mesh/images/ |
D | blob_srv.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 3 …-0.5 -0.5 581 516"><defs/><g><rect x="0" y="0" width="100" height="40" fill="#ffffff" stroke="#000…
|
/Zephyr-Core-3.5.0/doc/kernel/services/threads/ |
D | thread_states.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 3 …-0.5 -0.5 601 381" content="<mxfile modified="2019-09-19T23:17:11.897Z" host="ww…
|
/Zephyr-Core-3.5.0/doc/kernel/drivers/ |
D | device_driver_model.svg | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 3 …-0.5 -0.5 781 1081" content="<mxfile modified="2019-08-20T04:58:57.469Z" host="w…
|
/Zephyr-Core-3.5.0/drivers/flash/ |
D | Kconfig.cadence_qspi_nor | 2 # SPDX-License-Identifier: Apache-2.0 11 Enable Cadence QSPI-NOR support. 22 hex "Cadence Quad SPI subsector size" 25 Set the Cadence Quad SPI subsector size. 28 int "Access QSPI address memory size in bytes" 31 Set the address memory size in bytes when 38 Set the size for a QSPI to read / write per device. 41 int "Set QSPI to read / write how many bytes per block" 44 Set the size for a QSPI to read / write per block.
|
D | flash_page_layout.c | 4 * SPDX-License-Identifier: Apache-2.0 14 const struct flash_driver_api *api = dev->api; in flash_get_page_info() 19 info->start_offset = 0; in flash_get_page_info() 20 info->index = 0U; in flash_get_page_info() 22 api->page_layout(dev, &layout, &layout_size); in flash_get_page_info() 24 while (layout_size--) { in flash_get_page_info() 25 info->size = layout->pages_size; in flash_get_page_info() 27 index_jmp = index - info->index; in flash_get_page_info() 29 index_jmp = (offs - info->start_offset) / info->size; in flash_get_page_info() 32 index_jmp = MIN(index_jmp, layout->pages_count); in flash_get_page_info() [all …]
|
/Zephyr-Core-3.5.0/doc/kernel/services/scheduling/ |
D | timeslicing.svg | 1 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 2 …-0.5 -0.5 750 424" content="<mxfile modified="2019-07-14T17:08:37.330Z" host="ww…
|
/Zephyr-Core-3.5.0/doc/services/portability/ |
D | posix.svg | 1 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> 2 …-color: rgb(255, 255, 255);" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="581px…
|
/Zephyr-Core-3.5.0/samples/drivers/virtualization/ivshmem/doorbell/ |
D | README.rst | 1 .. zephyr:code-sample:: ivshmem-doorbell 3 :relevant-api: ivshmem 5 Use Inter-VM Shared Memory to exchange messages between two processes running on different 20 ivshmem-server needs to be available and running. The server is available in 21 Zephyr SDK or pre-built in some distributions. Otherwise, it is available in 24 ivshmem-client needs to be available as it is employed in this sample as an 25 external application. The same conditions of ivshmem-server applies to the 26 ivshmem-server, as it is also available via QEMU. 31 Building ivshmem-doorbell is as follows: 36 .. zephyr-app-commands:: [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/debug/ |
D | gdbstub.h | 4 * SPDX-License-Identifier: Apache-2.0 70 * @param hexlen Size of the storage area for string representation. 79 * @brief Check if a memory block can be read. 81 * This checks if the specified memory block can be read. 83 * @param[in] addr Starting address of the memory block 84 * @param[in] len Size of memory block 87 * @return True if memory block can be read, false otherwise. 92 * @brief Check if a memory block can be written into. 94 * This checks if the specified memory block can be written into. 96 * @param[in] addr Starting address of the memory block [all …]
|