Lines Matching refs:offset
1251 let offset = slot.base_off; in install_image() localVariable
1258 for dep in deps.my_deps(offset, slot.index) { in install_image()
1272 ver: deps.my_version(offset, slot.index), in install_image()
1284 splat(&mut b_img, offset); in install_image()
1291 offset, dev_id, slot).unwrap(); in install_image()
1292 writeln!(&mut wr, "version: {:?}", deps.my_version(offset, slot.index)).unwrap(); in install_image()
1359 dev.write(offset, &encbuf).unwrap(); in install_image()
1362 dev.read(offset, &mut enc).unwrap(); in install_image()
1366 dev.erase(offset, slot_len).unwrap(); in install_image()
1371 dev.write(offset, &buf).unwrap(); in install_image()
1374 dev.read(offset, &mut copy).unwrap(); in install_image()
1382 dev.write(offset, &buf).unwrap(); in install_image()
1385 dev.read(offset, &mut copy).unwrap(); in install_image()
1390 dev.erase(offset, slot_len).unwrap(); in install_image()
1392 dev.write(offset, &encbuf).unwrap(); in install_image()
1395 dev.read(offset, &mut enc).unwrap(); in install_image()
1490 let offset = slot.base_off; in verify_image() localVariable
1492 dev.read(offset, &mut copy).unwrap(); in verify_image()
1498 slot.index, offset + i, i, buf[i], copy[i]); in verify_image()
1515 let offset = slot.trailer_off + c::boot_max_align(); in verify_trailer() localVariable
1522 dev.read(offset, &mut copy).unwrap(); in verify_trailer()
1527 warn!("\"magic\" mismatch at {:#x}", offset); in verify_trailer()
1532 warn!("\"magic\" mismatch at {:#x}", offset); in verify_trailer()
1547 warn!("\"image_ok\" mismatch at {:#x} v={} val={:#x}", offset, v, copy[8]); in verify_trailer()
1559 warn!("\"copy_done\" mismatch at {:#x} v={} val={:#x}", offset, v, copy[0]); in verify_trailer()
1676 let offset = slot.trailer_off + c::boot_max_align() * 4; in mark_upgrade() localVariable
1677 if offset % align != 0 || MAGIC.len() % align != 0 { in mark_upgrade()
1682 buf[(offset % align)..].copy_from_slice(MAGIC); in mark_upgrade()
1683 dev.write(offset - (offset % align), &buf).unwrap(); in mark_upgrade()
1685 dev.write(offset, MAGIC).unwrap(); in mark_upgrade()