Lines Matching refs:gbl_fb

274     fn check_var(gbl_fb: &mut GblFastboot, var: &str, args: &str, expected: &str) {  in check_var()
279 gbl_fb.get_var_as_str(var, args.split(':'), &mut out[..], &mut utils).unwrap(), in check_var()
291 let mut gbl_fb = GblFastboot::new(&mut devs); in test_get_var_partition_info() localVariable
294 check_var(&mut gbl_fb, "partition-size", "boot_a", "0x2000"); in test_get_var_partition_info()
295 check_var(&mut gbl_fb, "partition-size", "boot_a:", "0x2000"); in test_get_var_partition_info()
296 check_var(&mut gbl_fb, "partition-size", "boot_a::", "0x2000"); in test_get_var_partition_info()
297 check_var(&mut gbl_fb, "partition-size", "boot_a:::", "0x2000"); in test_get_var_partition_info()
298 check_var(&mut gbl_fb, "partition-size", "boot_a:0", "0x2000"); in test_get_var_partition_info()
299 check_var(&mut gbl_fb, "partition-size", "boot_a:0:", "0x2000"); in test_get_var_partition_info()
300 check_var(&mut gbl_fb, "partition-size", "boot_a::0", "0x2000"); in test_get_var_partition_info()
301 check_var(&mut gbl_fb, "partition-size", "boot_a:0:0", "0x2000"); in test_get_var_partition_info()
302 check_var(&mut gbl_fb, "partition-size", "boot_a::0x1000", "0x1000"); in test_get_var_partition_info()
304 check_var(&mut gbl_fb, "partition-size", "boot_b:0", "0x3000"); in test_get_var_partition_info()
305 check_var(&mut gbl_fb, "partition-size", "vendor_boot_a:1", "0x1000"); in test_get_var_partition_info()
306 check_var(&mut gbl_fb, "partition-size", "vendor_boot_b:1", "0x1800"); in test_get_var_partition_info()
311 assert!(gbl_fb in test_get_var_partition_info()
323 let mut gbl_fb = GblFastboot::new(&mut devs); in test_get_var_all() localVariable
328 gbl_fb in test_get_var_all()
426 let mut gbl_fb = GblFastboot::new(&mut devs); 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()
463 let mut gbl_fb = GblFastboot::new(&mut devs); 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()
509 let mut gbl_fb = GblFastboot::new(&mut devs); in test_flash_partition() localVariable
513 check_flash_part(&mut gbl_fb, "boot_a", expect_boot_a); in test_flash_partition()
514 check_flash_part(&mut gbl_fb, "boot_b", expect_boot_b); in test_flash_partition()
515 check_flash_part(&mut gbl_fb, ":0", disk_0); in test_flash_partition()
516 check_flash_part(&mut gbl_fb, ":1", disk_1); in test_flash_partition()
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()