Home
last modified time | relevance | path

Searched +full:read +full:- +full:size (Results 1 – 25 of 1016) sorted by relevance

12345678910>>...41

/Zephyr-latest/subsys/bindesc/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
8 Binary Descriptors - constant data accessible outside of the executable image
24 int "Bindesc max data size"
28 Determines the maximum size of a binary descriptor's data. The theoretical
35 bool "Binary Descriptors Read"
37 Enable the app to read the binary descriptors of another image
42 module-str = Binary Descriptor read
46 bool "Bindesc read from RAM"
51 bool "Bindesc read from memory mapped flash"
56 bool "Bindesc read from flash"
[all …]
/Zephyr-latest/drivers/flash/
DKconfig.cadence_qspi_nor2 # SPDX-License-Identifier: Apache-2.0
12 Enable Cadence QSPI-NOR support.
23 hex "Cadence Quad SPI subsector size"
26 Set the Cadence Quad SPI subsector size.
29 int "Access QSPI address memory size in bytes"
32 Set the address memory size in bytes when
36 int "Set QSPI to read / write how many bytes per device"
39 Set the size for a QSPI to read / write per device.
42 int "Set QSPI to read / write how many bytes per block"
45 Set the size for a QSPI to read / write per block.
DKconfig.andes1 # Kconfig Andes QSPI-NOR configuration options
5 # SPDX-License-Identifier: Apache-2.0
30 sfdp-bfp property in devicetree. The size and jedec-id properties are
34 bool "Read flash parameters at runtime"
36 Read all flash device characteristics from the device at runtime.
38 for all supported JESD216-compatible devices.
49 int "Page size to use for FLASH_LAYOUT feature"
53 that API. By default the page size corresponds to the block
54 size (65536). Other options include the 32K-byte erase size
55 (32768), the sector size (4096), or any non-zero multiple of the
[all …]
/Zephyr-latest/samples/drivers/soc_flash_nand/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
40 return -ENODEV; in main()
46 printk("Nand flash driver block size %lx\n", flash_block_size); in main()
54 printk("The Page size of %lx\n", page.size); in main()
56 w_Page_buffer = (uint8_t *)k_malloc(page.size * NAND_NUM_PAGES); in main()
58 r_Page_buffer = (uint8_t *)k_malloc(page.size * NAND_NUM_PAGES); in main()
62 for (int index = 0; index < page.size * NAND_NUM_PAGES; index++) { in main()
68 return -ENOSR; in main()
72 memset(r_Page_buffer, 0x55, page.size * NAND_NUM_PAGES); in main()
74 printk("Read memory not allocated\n"); in main()
[all …]
/Zephyr-latest/drivers/bbram/
Dbbram_stm32.c4 * SPDX-License-Identifier: Apache-2.0
23 #define STM32_BKP_REG_OFFSET (TAMP_BASE + offsetof(TAMP_TypeDef, BKP0R) - RTC_BASE)
29 #define STM32_BKP_REG(i) (((volatile uint32_t *)config->base_addr)[(i)])
36 /* BBRAM size in bytes. */
37 int size; member
40 static int bbram_stm32_read(const struct device *dev, size_t offset, size_t size, uint8_t *data) in bbram_stm32_read() argument
42 const struct bbram_stm32_config *config = dev->config; in bbram_stm32_read()
45 if (size < 1 || offset + size > config->size) { in bbram_stm32_read()
46 return -EFAULT; in bbram_stm32_read()
49 for (size_t read = 0; read < size; read += to_copy) { in bbram_stm32_read() local
[all …]
/Zephyr-latest/dts/bindings/fs/
Dzephyr,fstab,littlefs.yaml2 # 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.
20 All read operations will be a multiple of this value. A
25 prog-size:
29 The size of file system program (write) operations, in bytes.
36 cache-size:
[all …]
/Zephyr-latest/include/zephyr/arch/arm/mpu/
Darm_mpu_v7m.h5 * SPDX-License-Identifier: Apache-2.0
12 /* Convenience macros to represent the ARMv7-M-specific
14 * cache-ability attribution.
23 /* Privileged Read Write, Unprivileged No Access */
26 /* Privileged Read Write, Unprivileged Read Only */
29 /* Privileged Read Write, Unprivileged Read Write */
32 /* Privileged Read Write, Unprivileged Read Write */
35 /* Privileged Read Only, Unprivileged No Access */
38 /* Privileged Read Only, Unprivileged Read Only */
41 /* Privileged Read Only, Unprivileged Read Only */
[all …]
Darm_mpu_v8.h5 * SPDX-License-Identifier: Apache-2.0
10 /* Convenience macros to represent the ARMv8-M-specific
12 * cache-ability attribution.
44 /* Privileged Read Write, Unprivileged No Access */
47 /* Privileged Read Write, Unprivileged Read Only */
50 /* Privileged Read Write, Unprivileged Read Write */
53 /* Privileged Read Write, Unprivileged Read Write */
56 /* Privileged Read Only, Unprivileged No Access */
59 /* Privileged Read Only, Unprivileged Read Only */
62 /* Privileged Read Only, Unprivileged Read Only */
[all …]
/Zephyr-latest/dts/bindings/usb/
Drenesas,smartbond-usbd.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "renesas,smartbond-usbd"
8 include: usb-ep.yaml
11 dma-min-transfer-size:
14 Minimum transfer size required to engage DMA.
16 ep-out-buf-size:
20 Buffer size for OUT end points 0-3.
22 fifo-read-threshold:
25 RX FIFO is 64 bytes. When endpoint size is greater then 64,
26 FIFO warning interrupt is enabled to allow read incoming data
[all …]
/Zephyr-latest/samples/drivers/soc_flash_nrf/
DREADME.rst1 .. zephyr:code-sample:: soc-flash-nrf
3 :relevant-api: flash_interface flash_area_api
16 Within the sample, user may observe how read/write/erase operations
24 there is a fixed-partition named ``storage_partition`` defined
27 .. zephyr-app-commands::
28 :zephyr-app: samples/drivers/soc_flash_nrf
36 .. code-block:: console
38 *** Booting Zephyr OS build v2.7.99-17621-g54832687bcbb ***
48 Attempted to read 0x82000
49 Data read: 1122
[all …]
/Zephyr-latest/arch/arm/include/cortex_m/
Dcmse.h4 * SPDX-License-Identifier: Apache-2.0
11 * CMSE API for Cortex-M23/M33 CPUs.
40 * Return the non-negative MPU region that the address maps to,
41 * or -EINVAL to indicate that an invalid MPU region was retrieved.
45 * - the function is called from privileged mode
46 * - the MPU is implemented and enabled
47 * - the given address matches a single, enabled MPU region
51 * @return a valid MPU region number or -EINVAL
56 * @brief Read accessibility of an address
58 * Evaluates whether a specified memory location can be read according to the
[all …]
/Zephyr-latest/dts/bindings/espi/
Dnuvoton,npcx-espi-taf.yaml2 # SPDX-License-Identifier: Apache-2.0
10 compatible = "nuvoton,npcx-espi-taf";
13 mapped-addr = <0x68000000>;
14 max-read-sz = "NPCX_ESPI_TAF_MAX_READ_REQ_64B";
15 erase-sz = "NPCX_ESPI_TAF_ERASE_BLOCK_SIZE_4KB";
17 #address-cells = <1>;
18 #size-cells = <1>;
22 compatible: "nuvoton,npcx-espi-taf"
24 include: [espi-controller.yaml, pinctrl-device.yaml]
27 mapped-addr:
[all …]
/Zephyr-latest/include/zephyr/ipc/
Dpbuf.h4 * SPDX-License-Identifier: Apache-2.0
24 /** @brief Size of packet length field. */
58 uint32_t dcache_alignment; /* CPU data cache line size in bytes.
59 * Used for validation - TODO: To be
88 * buffer with read/write semantics on top of a memory region shared
93 * is encapsulated to a message (with length header). The read/write API is
100 struct pbuf_data data; /* Data used to read and write
112 * @param size Size of the memory.
115 #define PBUF_CFG_INIT(mem_addr, size, dcache_align) \ argument
122 .len = (uint32_t)((uint32_t)(size) - MAX(dcache_align, _PBUF_IDX_SIZE) - \
[all …]
/Zephyr-latest/tests/bsim/bluetooth/ll/edtt/common/
Dedtt_driver_bsim.c4 * SPDX-License-Identifier: Apache-2.0
29 * before we retry any read so the EDTT may also run
32 (EDTT_IF_RECHECK_DELTA * MSEC_PER_SEC - 1)
43 static int fifo[2] = { -1, -1 };
48 static int fifo_low_level_read(uint8_t *bufptr, int size);
81 * Attempt to read size bytes thru the EDTT IF into the buffer <*ptr>
84 * If set to EDTTT_BLOCK it will block the calling thread until <size>
85 * bytes have been read or the interface has been closed.
87 * read
89 * Returns the amount of read bytes, or -1 on error
[all …]
/Zephyr-latest/tests/bluetooth/mesh/blob_io_flash/src/
Dmain.c4 * 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
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()
101 block.size = remaining > CONFIG_BT_MESH_BLOB_BLOCK_SIZE_MAX in ZTEST()
105 /* BLOB Client should do nothing to flash area as it's in read mode */ in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dretained_mem.h4 * SPDX-License-Identifier: Apache-2.0
28 "Size of off_t must be equal or less than size of size_t");
41 * @brief Callback API to get size of retained memory area.
48 * @brief Callback API to read from retained memory area.
52 size_t size);
60 const uint8_t *buffer, size_t size);
74 * non-initialised RAM region, or in specific registers, but is not reset when a different
76 * byte-level reading and writing without a need to erase data before writing.
81 retained_mem_size_api size; member
82 retained_mem_read_api read; member
[all …]
Dsyscon.h4 * SPDX-License-Identifier: Apache-2.0
39 * API template to read a single register.
53 * API template to get the size of the syscon register.
57 typedef int (*syscon_api_get_size)(const struct device *dev, size_t *size);
63 syscon_api_read_reg read; member
72 * @param dev The device to get the register size for.
80 const struct syscon_driver_api *api = (const struct syscon_driver_api *)dev->api; in z_impl_syscon_get_base()
83 return -ENOTSUP; in z_impl_syscon_get_base()
86 return api->get_base(dev, addr); in z_impl_syscon_get_base()
91 * @brief Read from syscon register
[all …]
/Zephyr-latest/include/zephyr/sd/
Dsdio.h4 * SPDX-License-Identifier: Apache-2.0
27 * but after this call returns the SDIO function structure can be used to read
33 * @retval -EIO: I/O error
45 * @retval -ETIMEDOUT: card I/O timed out
46 * @retval -EIO: I/O error
51 * @brief Set block size of SDIO function
53 * Set desired block size for SDIO function, used by block transfers
55 * @param func: function to set block size for
56 * @param bsize: block size
57 * @retval 0 block size was set
[all …]
/Zephyr-latest/samples/boards/espressif/flash_memory_mapped/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
26 size_t size = FIXED_PARTITION_SIZE(scratch_partition); in main() local
30 printk("%s: device not ready.\n", flash_device->name); in main()
35 spi_flash_mmap(address, size, SPI_FLASH_MMAP_DATA, &mem_ptr, &handle); in main()
36 LOG_INF("memory-mapped pointer address: %p", mem_ptr); in main()
38 /* erase and read flash */ in main()
39 flash_erase(flash_device, address, size); in main()
40 LOG_HEXDUMP_INF(mem_ptr, 32, "flash read using memory-mapped pointer"); in main()
42 LOG_INF("writing 32-bytes data using flash API"); in main()
49 /* read using flash API */ in main()
[all …]
/Zephyr-latest/subsys/fs/
DKconfig.littlefs4 # SPDX-License-Identifier: Apache-2.0
31 int "Minimum size of a block read"
34 All read operations will be a multiple of this value.
37 int "Minimum size of a block program"
43 int "Size of block caches in bytes"
47 needs a read cache, a program cache, and one additional cache
50 multiple of the read and program sizes of the underlying flash
51 device, and a factor of the block size.
54 int "Size of lookahead buffer in bytes"
67 is moved to another block. Set to a non-positive value to
[all …]
/Zephyr-latest/drivers/pcie/endpoint/
Dpcie_ep_common.c2 * SPDX-License-Identifier: Apache-2.0
15 * we need to add a dummy PCIe read (non posted transaction) after each
19 * a dummy PCIe read.
22 * As can be seen in the table, for 64-bit systems, we could just do sys_read8
23 * on mapped Host address to generate a dummy PCIe read, before unmapping the
24 * address - irrespective of low/high outbound memory usage as core is capable
26 * Basically, we issue single byte PCIe read with sys_read8.
28 * For 32-bit systems, if using low outbound memory for memcpy/DMA,
30 * But, for 32-bit systems using high outbound memory for DMA operation,
32 * In this case, we need to *explicitly* perform PCIe read.
[all …]
/Zephyr-latest/scripts/coredump/coredump_parser/
Dlog_parser.py5 # SPDX-License-Identifier: Apache-2.0
83 hdr = self.fd.read(LOG_ARCH_HDR_SIZE)
86 arch_data = self.fd.read(num_bytes)
93 hdr = self.fd.read(LOG_THREADS_META_HDR_SIZE)
96 data = self.fd.read(num_bytes)
103 hdr = self.fd.read(LOG_MEM_HDR_SIZE)
110 # Figure out how to read the start and end addresses
119 data = self.fd.read(struct.calcsize(ptr_fmt))
122 size = eaddr - saddr
124 data = self.fd.read(size)
[all …]
/Zephyr-latest/samples/drivers/soc_flash_nand/
Dsample.yaml7 - intel_socfpga_agilex5_socdk
9 - intel_socfpga_agilex5_socdk
11 - flash
12 - cdns
19 - "Nand flash driver test sample"
20 - "Nand flash driver block size 20000"
21 - "The Page size of 800"
22 - "Nand flash driver data erase successful...."
23 - "Nand flash driver write completed...."
24 - "Nand flash driver read completed...."
[all …]
/Zephyr-latest/include/zephyr/retention/
Dretention.h4 * SPDX-License-Identifier: Apache-2.0
38 size_t size);
40 const uint8_t *buffer, size_t size);
44 retention_size_api size; member
46 retention_read_api read; member
52 * @brief Returns the size of the retention area.
56 * @retval Positive value indicating size in bytes on success, else negative errno
68 * @retval -ENOTSUP If there is no header/checksum configured for the retention area.
69 * @retval -errno Error code code.
77 * @param offset Offset to read data from.
[all …]
/Zephyr-latest/tests/drivers/build_all/eeprom/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
9 * with real-world devicetree nodes, to allow these tests to run on
18 #address-cells = <1>;
19 #size-cells = <1>;
23 gpio-controller;
25 #gpio-cells = <0x2>;
30 #address-cells = <1>;
31 #size-cells = <0>;
35 clock-frequency = <100000>;
40 size = <32768>;
[all …]

12345678910>>...41