Lines Matching refs:offset
54 uintptr_t tlv_end, offset; in boot_add_data_to_shared_area() local
76 offset = MCUBOOT_SHARED_DATA_BASE + SHARED_DATA_HEADER_SIZE; in boot_add_data_to_shared_area()
81 while (offset < tlv_end) { in boot_add_data_to_shared_area()
83 memcpy(&tlv_entry, (const void *)offset, SHARED_DATA_ENTRY_HEADER_SIZE); in boot_add_data_to_shared_area()
89 offset += SHARED_DATA_ENTRY_SIZE(tlv_entry.tlv_len); in boot_add_data_to_shared_area()
106 offset = tlv_end; in boot_add_data_to_shared_area()
107 memcpy((void *)offset, &tlv_entry, SHARED_DATA_ENTRY_HEADER_SIZE); in boot_add_data_to_shared_area()
109 offset += SHARED_DATA_ENTRY_HEADER_SIZE; in boot_add_data_to_shared_area()
110 memcpy((void *)offset, data, size); in boot_add_data_to_shared_area()
128 uint32_t offset; in boot_save_boot_status() local
152 rc = bootutil_tlv_iter_next(&it, &offset, &len, &type); in boot_save_boot_status()
163 rc = flash_area_read(fap, offset, buf, len); in boot_save_boot_status()
176 rc = flash_area_read(fap, offset, image_hash, len); in boot_save_boot_status()
211 offset = record_len - sizeof(image_hash); in boot_save_boot_status()
215 memcpy(buf + offset, image_hash, sizeof(image_hash)); in boot_save_boot_status()