/Zephyr-latest/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-latest/dts/bindings/mtd/ |
D | atmel,sam-flash.yaml | 2 # SPDX-License-Identifier: Apache-2.0 7 The Atmel SAM flash area varies in write-block-size, memory area, 8 and the layout of erase-blocks. 12 |--------------------| 13 | 8 Kbytes | erase block size = 2048 14 |--------------------| 15 | 8 Kbytes | erase block size = 2048 16 |--------------------| 17 | 48 Kbytes | erase block size = 4096 18 |--------------------| [all …]
|
/Zephyr-latest/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-latest/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-latest/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-latest/soc/intel/intel_adsp/common/include/ |
D | intel_adsp_hda.h | 2 * SPDX-License-Identifier: Apache-2.0 23 * addresses, the stream count, and the size of the ip blocks. 32 /* Buffer size must match the mask of BS field in DGBS register */ 41 #define DGCS_SCS BIT(31) /* Sample container size */ 60 /* Gateway Buffer Size */ 80 /* Gateway Minimum Buffer Size */ 107 * @param base Base address of the IP register block 108 * @param regblock_size Register block size 132 * @param base Base address of the IP register block 141 * @brief Set the buffer, size, and element size for an HDA stream [all …]
|
/Zephyr-latest/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-latest/include/zephyr/mem_mgmt/ |
D | mem_attr_heap.h | 4 * SPDX-License-Identifier: Apache-2.0 30 * @retval -EALREADY if the pool was already initialized. 31 * @retval -ENOMEM too many regions already allocated. 36 * @brief Allocate memory with a specified attribute and size. 38 * Allocates a block of memory of the specified size in bytes and with a 42 * @param attr capability / attribute requested for the memory block. 43 * @param bytes requested size of the allocation in bytes. 46 * @retval NULL if no memory is available with that attribute and size. 51 * @brief Allocate aligned memory with a specified attribute, size and alignment. 53 * Allocates a block of memory of the specified size in bytes and with a [all …]
|
/Zephyr-latest/dts/arm/renesas/ra/ra8/ |
D | r7fa8m1ahecbd.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 11 flash-controller@40100000 { 13 compatible = "renesas,ra-nv-flash"; 15 write-block-size = <128>; 16 erase-block-size = <8192>; 17 renesas,programming-enable; 21 compatible = "renesas,ra-nv-flash"; 23 write-block-size = <4>; 24 erase-block-size = <64>; 25 renesas,programming-enable;
|
D | r7fa8t1ahecbd.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 11 flash-controller@40100000 { 13 compatible = "renesas,ra-nv-flash"; 15 write-block-size = <128>; 16 erase-block-size = <8192>; 17 renesas,programming-enable; 21 compatible = "renesas,ra-nv-flash"; 23 write-block-size = <4>; 24 erase-block-size = <64>; 25 renesas,programming-enable;
|
D | r7fa8d1bhecbd.dtsi | 4 * SPDX-License-Identifier: Apache-2.0 8 #include <zephyr/dt-bindings/mipi_dsi/mipi_dsi.h> 12 flash-controller@40100000 { 14 compatible = "renesas,ra-nv-flash"; 16 write-block-size = <128>; 17 erase-block-size = <8192>; 18 renesas,programming-enable; 22 compatible = "renesas,ra-nv-flash"; 24 write-block-size = <4>; 25 erase-block-size = <64>; [all …]
|
/Zephyr-latest/drivers/video/ |
D | video_common.c | 5 * SPDX-License-Identifier: Apache-2.0 16 #define VIDEO_COMMON_HEAP_ALLOC(align, size, timeout) \ argument 17 shared_multi_heap_aligned_alloc(CONFIG_VIDEO_BUFFER_SMH_ATTRIBUTE, align, size) 18 #define VIDEO_COMMON_FREE(block) shared_multi_heap_free(block) argument 21 #define VIDEO_COMMON_HEAP_ALLOC(align, size, timeout) \ argument 22 k_heap_aligned_alloc(&video_buffer_pool, align, size, timeout); 23 #define VIDEO_COMMON_FREE(block) k_heap_free(&video_buffer_pool, block) argument 34 struct video_buffer *video_buffer_aligned_alloc(size_t size, size_t align, k_timeout_t timeout) in video_buffer_aligned_alloc() argument 37 struct mem_block *block; in video_buffer_aligned_alloc() local 44 block = &video_block[i]; in video_buffer_aligned_alloc() [all …]
|
/Zephyr-latest/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, 96 This option enables MQTT-style wildcards in path. Disable it if 102 This option enables keeping application-specific user data 108 This option enables the API for CoAP-client for sending CoAP requests [all …]
|
/Zephyr-latest/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 19 #define MTU_SIZE_MAX (BT_MESH_RX_SDU_MAX - BT_MESH_MIC_SHORT) 22 #define SERVER_TIMEOUT_SECS(srv) (10 * (1 + (srv)->state.timeout_base)) 23 /* The initial timer value used by an instance of the Pull BLOB State machine - T_BPI */ 28 "max block size that is the power of two."); 32 "The BLOB Transfer Status message does not fit into the maximum outgoing SDU size."); 37 "The BLOB Partial Block Report message does not fit into the maximum outgoing SDU " 38 "size."); 42 "The BLOB Block Status message does not fit into the maximum outgoing SDU size."); 49 return DIV_ROUND_UP(srv->state.xfer.size, in block_count_get() [all …]
|
/Zephyr-latest/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-latest/subsys/ipc/ipc_service/backends/ |
D | ipc_icbmsg.c | 4 * SPDX-License-Identifier: Apache-2.0 14 * -------------------------- 17 * followed by Blocks area. ICMsg is used to send and receive short 3-byte messages. 19 * buffers containing actual data. Data buffers can span multiple blocks. The first block 20 * starts with the size of the following data. 22 * +------------+-------------+ 24 * +------------+-------------+ 27 * +-----------+-----------+-----------+-----------+- -+-----------+ 28 * | Block 0 | Block 1 | Block 2 | Block 3 | ... | Block N-1 | 29 * +-----------+-----------+-----------+-----------+- -+-----------+ [all …]
|
/Zephyr-latest/dts/riscv/starfive/ |
D | jh7110-visionfive-v2.dtsi | 5 * SPDX-License-Identifier: Apache-2.0 8 #include "jh7110-clk.dtsi" 9 #include <zephyr/dt-bindings/gpio/gpio.h> 13 #address-cells = <2>; 14 #size-cells = <2>; 19 #address-cells = <1>; 20 #size-cells = <0>; 28 cpu0_intc: interrupt-controller { 29 compatible = "riscv,cpu-intc"; 30 interrupt-controller; [all …]
|
/Zephyr-latest/include/zephyr/sys/ |
D | multi_heap.h | 2 * SPDX-License-Identifier: Apache-2.0 13 * @defgroup multi_heap_wrapper Multi-Heap Wrapper 19 * @brief Multi-heap allocator 29 * in backend, which is then provided to a user-specified "choice" 36 * @brief Multi-heap choice function 38 * This is a user-provided functions whose responsibility is selecting 43 * allocation, and may choose to pad the user-provided values as 50 * @param mheap Multi-heap structure. 51 * @param cfg An opaque user-provided value. It may be interpreted in 54 * @param size The user-specified allocation size in bytes [all …]
|
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 …]
|
/Zephyr-latest/tests/drivers/flash_simulator/flash_sim_impl/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-latest/lib/heap/ |
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-latest/doc/services/portability/posix/overview/ |
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-latest/subsys/lorawan/services/ |
D | Kconfig | 6 # SPDX-License-Identifier: Apache-2.0 14 firmware-upgrade over the air (FUOTA). 21 module-str = lorawan_services 25 int "Services thread stack size" 28 Stack size of thread running LoRaWAN background services. 40 according to LoRa Alliance TS003-2.0.0. 58 bool "Fragmented Data Block Transport" 63 Enables the LoRaWAN Fragmented Data Block Transport service 64 according to TS004-1.0.0 as published by the LoRa Alliance. 69 bool "Fragmented Data Block Transport decoder implementation" [all …]
|
/Zephyr-latest/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…
|