Lines Matching refs:offset
58 uintptr_t tlv_end, offset; in boot_add_data_to_shared_area() local
80 offset = MCUBOOT_SHARED_DATA_BASE + SHARED_DATA_HEADER_SIZE; in boot_add_data_to_shared_area()
85 while (offset < tlv_end) { in boot_add_data_to_shared_area()
87 memcpy(&tlv_entry, (const void *)offset, SHARED_DATA_ENTRY_HEADER_SIZE); in boot_add_data_to_shared_area()
93 offset += SHARED_DATA_ENTRY_SIZE(tlv_entry.tlv_len); in boot_add_data_to_shared_area()
110 offset = tlv_end; in boot_add_data_to_shared_area()
111 memcpy((void *)offset, &tlv_entry, SHARED_DATA_ENTRY_HEADER_SIZE); in boot_add_data_to_shared_area()
113 offset += SHARED_DATA_ENTRY_HEADER_SIZE; in boot_add_data_to_shared_area()
114 memcpy((void *)offset, data, size); in boot_add_data_to_shared_area()
132 uint32_t offset; in boot_save_boot_status() local
159 rc = bootutil_tlv_iter_next(&it, &offset, &len, &type); in boot_save_boot_status()
170 rc = flash_area_read(fap, offset, buf, len); in boot_save_boot_status()
183 rc = flash_area_read(fap, offset, image_hash, len); in boot_save_boot_status()
218 offset = record_len - sizeof(image_hash); in boot_save_boot_status()
222 memcpy(buf + offset, image_hash, sizeof(image_hash)); in boot_save_boot_status()