Home
last modified time | relevance | path

Searched refs:area_size (Results 1 – 7 of 7) sorted by relevance

/Zephyr-latest/include/zephyr/drivers/
Dretained_mem.h121 size_t area_size; in z_impl_retained_mem_read() local
128 area_size = api->size(dev); in z_impl_retained_mem_read()
130 if (offset < 0 || size > area_size || (area_size - size) < (size_t)offset) { in z_impl_retained_mem_read()
155 size_t area_size; in z_impl_retained_mem_write() local
162 area_size = api->size(dev); in z_impl_retained_mem_write()
164 if (offset < 0 || size > area_size || (area_size - size) < (size_t)offset) { in z_impl_retained_mem_write()
/Zephyr-latest/drivers/flash/
Dflash_hp_ra.c78 static bool flash_ra_valid_range(off_t area_size, off_t offset, size_t len) in flash_ra_valid_range() argument
80 if ((offset < 0) || (offset >= area_size) || ((area_size - offset) < len)) { in flash_ra_valid_range()
91 if (!flash_ra_valid_range(flash_data->area_size, offset, len)) { in flash_ra_read()
115 if (!flash_ra_valid_range(flash_data->area_size, offset, len)) { in flash_ra_erase()
189 if (!flash_ra_valid_range(flash_data->area_size, offset, len)) { in flash_ra_write()
230 flash_ra_layout[0].pages_count = flash_data->area_size / FLASH_HP_DF_BLOCK_SIZE; in flash_ra_page_layout()
381 .area_size = DT_REG_SIZE(index)}; \
Dflash_sam.c36 off_t area_size; member
145 if ((offset >= 0) && ((offset + len) <= config->area_size)) { in sam_flash_section_is_within_area()
150 (size_t)offset, (size_t)(offset + len), (size_t)config->area_size); in sam_flash_section_is_within_area()
188 if ((offset + len) == (config->area_size)) { in sam_flash_section_is_aligned_with_pages()
515 .area_size = DT_REG_SIZE(SAM_FLASH_DEVICE), \
Dflash_hp_ra.h77 uint32_t area_size; member
/Zephyr-latest/subsys/retention/
Dretention.c132 ssize_t area_size; in retention_init() local
142 area_size = retained_mem_size(config->parent); in retention_init()
144 if (area_size < 0) { in retention_init()
145 LOG_ERR("Parent initialisation failure: %d", area_size); in retention_init()
146 return area_size; in retention_init()
149 if ((config->offset + config->size) > area_size) { in retention_init()
152 (config->offset + config->size), area_size); in retention_init()
/Zephyr-latest/include/zephyr/dfu/
Dmcuboot.h281 ssize_t boot_get_trailer_status_offset(size_t area_size);
/Zephyr-latest/subsys/dfu/boot/
Dmcuboot.c297 ssize_t boot_get_trailer_status_offset(size_t area_size) in boot_get_trailer_status_offset() argument
299 return (ssize_t)area_size - BOOT_MAGIC_SZ - BOOT_MAX_ALIGN * 2; in boot_get_trailer_status_offset()