Home
last modified time | relevance | path

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

/Zephyr-Core-3.4.0/include/zephyr/drivers/
Dretained_mem.h119 size_t area_size; in z_impl_retained_mem_read() local
126 area_size = api->size(dev); in z_impl_retained_mem_read()
128 if (offset < 0 || size > area_size || (area_size - size) < (size_t)offset) { in z_impl_retained_mem_read()
153 size_t area_size; in z_impl_retained_mem_write() local
160 area_size = api->size(dev); in z_impl_retained_mem_write()
162 if (offset < 0 || size > area_size || (area_size - size) < (size_t)offset) { in z_impl_retained_mem_write()
/Zephyr-Core-3.4.0/subsys/retention/
Dretention.c118 ssize_t area_size; in retention_init() local
128 area_size = retained_mem_size(config->parent); in retention_init()
130 if (area_size < 0) { in retention_init()
131 LOG_ERR("Parent initialisation failure: %d", area_size); in retention_init()
132 return area_size; in retention_init()
135 if ((config->offset + config->size) > area_size) { in retention_init()
138 (config->offset + config->size), area_size); in retention_init()
/Zephyr-Core-3.4.0/include/zephyr/dfu/
Dmcuboot.h281 ssize_t boot_get_trailer_status_offset(size_t area_size);
/Zephyr-Core-3.4.0/subsys/dfu/boot/
Dmcuboot.c255 ssize_t boot_get_trailer_status_offset(size_t area_size) in boot_get_trailer_status_offset() argument
257 return (ssize_t)area_size - BOOT_MAGIC_SZ - BOOT_MAX_ALIGN * 2; in boot_get_trailer_status_offset()