Searched refs:area_size (Results 1 – 4 of 4) sorted by relevance
119 size_t area_size; in z_impl_retained_mem_read() local126 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() local160 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()
118 ssize_t area_size; in retention_init() local128 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()
281 ssize_t boot_get_trailer_status_offset(size_t area_size);
255 ssize_t boot_get_trailer_status_offset(size_t area_size) in boot_get_trailer_status_offset() argument257 return (ssize_t)area_size - BOOT_MAGIC_SZ - BOOT_MAX_ALIGN * 2; in boot_get_trailer_status_offset()