Lines Matching refs:offset

119     offset: u32,  field
1245 if let Some((offset, _, dev_id)) = self.areadesc.find(FlashId::Image1) { in run_direct_xip()
1246 assert_eq!(offset, resp.image_off as usize); in run_direct_xip()
1279 let ram_image = ram.borrow_part(place.offset as usize - RAM_LOAD_ADDR as usize, in run_ram_load()
1323 let ram_image = ram.borrow_part(place.offset as usize - RAM_LOAD_ADDR as usize, in run_split_ram_load()
1689 let offset = addr; localVariable
1694 }, SlotPlace { offset, size });
1771 let mut offset = slot.base_off; in install_image() localVariable
1780 offset += sector_size; in install_image()
1791 for dep in deps.my_deps(offset, slot.index) { in install_image()
1801 ImageManipulation::OverlapImages(false) => place.offset - 1, in install_image()
1802 _ => place.offset in install_image()
1845 ver: deps.my_version(offset, slot.index), in install_image()
1857 splat(&mut b_img, offset); in install_image()
1864 offset, dev_id, slot).unwrap(); in install_image()
1865 writeln!(&mut wr, "version: {:?}", deps.my_version(offset, slot.index)).unwrap(); in install_image()
1936 dev.write(offset, &encbuf).unwrap(); in install_image()
1939 dev.read(offset, &mut enc).unwrap(); in install_image()
1943 dev.erase(offset, slot_len).unwrap(); in install_image()
1948 dev.write(offset, &buf).unwrap(); in install_image()
1951 dev.read(offset, &mut copy).unwrap(); in install_image()
1960 dev.write(offset, &buf).unwrap(); in install_image()
1963 dev.read(offset, &mut copy).unwrap(); in install_image()
1968 dev.erase(offset, slot_len).unwrap(); in install_image()
1970 dev.write(offset, &encbuf).unwrap(); in install_image()
1973 dev.read(offset, &mut enc).unwrap(); in install_image()
2072 let offset = slot.base_off; in verify_image() localVariable
2074 dev.read(offset, &mut copy).unwrap(); in verify_image()
2086 slot.index, offset + i, i, buf[i], copy[i], copy_offset[i]); in verify_image()
2099 slot.index, offset + i, i, buf[i], copy[i]); in verify_image()
2117 let offset = slot.trailer_off + c::boot_max_align(); in verify_trailer() localVariable
2124 dev.read(offset, &mut copy).unwrap(); in verify_trailer()
2130 warn!("\"magic\" mismatch at {:#x}", offset); in verify_trailer()
2135 warn!("\"magic\" mismatch at {:#x}", offset); in verify_trailer()
2151 … warn!("\"image_ok\" mismatch at {:#x} v={} val={:#x}", offset, v, copy[image_ok_off]); in verify_trailer()
2164 … warn!("\"copy_done\" mismatch at {:#x} v={} val={:#x}", offset, v, copy[copy_done_off]); in verify_trailer()
2288 let offset = slot.trailer_off + c::boot_max_align() * 4; in mark_upgrade() localVariable
2289 if offset % align != 0 || MAGIC.len() % align != 0 { in mark_upgrade()
2294 let magic_off = (offset % align) + (c::boot_magic_sz() - MAGIC.len()); in mark_upgrade()
2296 dev.write(offset - (offset % align), &buf).unwrap(); in mark_upgrade()
2298 dev.write(offset, MAGIC).unwrap(); in mark_upgrade()