Lines Matching refs:off

199             Ok(_) => write_sparse_image(utils.take_download_buffer().0, |off, data| {  in flash()
200 self.partition_io(part).write(off, data) in flash()
362 off: u64, in fetch()
373 res = fb.fetch(part.as_str(), off, size, upload_builder, &mut utils) in fetch()
409 fn check_blk_upload(fb: &mut GblFastboot, blk_id: u64, off: u64, size: u64, disk: &[u8]) { in check_blk_upload()
410 let expected = disk[off.try_into().unwrap()..][..size.try_into().unwrap()].to_vec(); in check_blk_upload()
412 let part = format!(":{:#x}:{:#x}:{:#x}", blk_id, off, size); in check_blk_upload()
416 assert_eq!(fetch(fb, part, off, size).unwrap(), expected); in check_blk_upload()
428 let off = 512; in test_fetch_raw_block() localVariable
430 check_blk_upload(&mut gbl_fb, 0, off, size, disk_0); in test_fetch_raw_block()
431 check_blk_upload(&mut gbl_fb, 1, off, size, disk_1); in test_fetch_raw_block()
440 off: u64, in check_gpt_upload()
446 partition_data[off.try_into().unwrap()..][..size.try_into().unwrap()].to_vec(); in check_gpt_upload()
449 let gpt_part = format!("{}:{}:{:#x}:{:#x}", part, blk_id, off, size); in check_gpt_upload()
453 assert_eq!(fetch(fb, gpt_part, off, size).unwrap(), expected); in check_gpt_upload()
471 let off = 512; in test_fetch_gpt_partition() localVariable
473 check_gpt_upload(&mut gbl_fb, "boot_a", off, size, Some(0), expect_boot_a); in test_fetch_gpt_partition()
474 check_gpt_upload(&mut gbl_fb, "boot_b", off, size, Some(0), expect_boot_b); in test_fetch_gpt_partition()
475 check_gpt_upload(&mut gbl_fb, "vendor_boot_a", off, size, Some(1), expect_vendor_boot_a); in test_fetch_gpt_partition()
476 check_gpt_upload(&mut gbl_fb, "vendor_boot_b", off, size, Some(1), expect_vendor_boot_b); in test_fetch_gpt_partition()
479 check_gpt_upload(&mut gbl_fb, "boot_a", off, size, None, expect_boot_a); in test_fetch_gpt_partition()
480 check_gpt_upload(&mut gbl_fb, "boot_b", off, size, None, expect_boot_b); in test_fetch_gpt_partition()
481 check_gpt_upload(&mut gbl_fb, "vendor_boot_a", off, size, None, expect_vendor_boot_a); in test_fetch_gpt_partition()
482 check_gpt_upload(&mut gbl_fb, "vendor_boot_b", off, size, None, expect_vendor_boot_b); in test_fetch_gpt_partition()
519 let off = 0x200; in test_flash_partition() localVariable
521 check_flash_part(&mut gbl_fb, "boot_a::200", &expect_boot_a[off..size]); in test_flash_partition()
522 check_flash_part(&mut gbl_fb, "boot_b::200", &expect_boot_b[off..size]); in test_flash_partition()
523 check_flash_part(&mut gbl_fb, ":0:200", &disk_0[off..size]); in test_flash_partition()
524 check_flash_part(&mut gbl_fb, ":1:200", &disk_1[off..size]); in test_flash_partition()