Lines Matching refs:table
422 const struct boot_swap_table *table; in boot_swap_type_multi() local
454 table = boot_swap_tables + i; in boot_swap_type_multi()
456 if (boot_magic_compatible_check(table->magic_primary_slot, in boot_swap_type_multi()
458 boot_magic_compatible_check(table->magic_secondary_slot, in boot_swap_type_multi()
460 (table->image_ok_primary_slot == BOOT_FLAG_ANY || in boot_swap_type_multi()
461 table->image_ok_primary_slot == primary_slot.image_ok) && in boot_swap_type_multi()
462 (table->image_ok_secondary_slot == BOOT_FLAG_ANY || in boot_swap_type_multi()
463 table->image_ok_secondary_slot == secondary_slot.image_ok) && in boot_swap_type_multi()
464 (table->copy_done_primary_slot == BOOT_FLAG_ANY || in boot_swap_type_multi()
465 table->copy_done_primary_slot == primary_slot.copy_done) in boot_swap_type_multi()
467 && (table->copy_done_secondary_slot == BOOT_FLAG_ANY || in boot_swap_type_multi()
468 table->copy_done_secondary_slot == secondary_slot.copy_done) in boot_swap_type_multi()
472 table->swap_type == BOOT_SWAP_TYPE_TEST ? "test" : in boot_swap_type_multi()
473 table->swap_type == BOOT_SWAP_TYPE_PERM ? "perm" : in boot_swap_type_multi()
474 table->swap_type == BOOT_SWAP_TYPE_REVERT ? "revert" : in boot_swap_type_multi()
476 if (table->swap_type != BOOT_SWAP_TYPE_TEST && in boot_swap_type_multi()
477 table->swap_type != BOOT_SWAP_TYPE_PERM && in boot_swap_type_multi()
478 table->swap_type != BOOT_SWAP_TYPE_REVERT) { in boot_swap_type_multi()
481 return table->swap_type; in boot_swap_type_multi()