Lines Matching refs:slot
117 static std::string GetSuperPartitionName(const std::optional<uint32_t>& slot = {}) { in GetSuperPartitionName() argument
122 if (slot.has_value()) {
123 return super_partition + SlotSuffixForSlotNumber(slot.value());
390 static std::unique_ptr<LpMetadata> ReadDeviceOrFile(const std::string& path, uint32_t slot) { in ReadDeviceOrFile() argument
394 return ReadMetadata(path, slot); in ReadDeviceOrFile()
418 std::optional<uint32_t> slot; in LpdumpMain() local
430 slot = slot_arg; in LpdumpMain()
432 slot = SlotNumberForSlotSuffix(optarg); in LpdumpMain()
452 if (slot.has_value()) { in LpdumpMain()
462 slot = 0; in LpdumpMain()
468 if (!slot.has_value() && !current_slot_suffix.empty()) { in LpdumpMain()
469 slot = SlotNumberForSlotSuffix(current_slot_suffix); in LpdumpMain()
474 if (!slot.has_value()) { in LpdumpMain()
475 slot = 0; in LpdumpMain()
487 super_path = GetSuperPartitionName(slot); in LpdumpMain()
494 auto pt = ReadDeviceOrFile(super_path, slot.value()); in LpdumpMain()
527 cout << "Slot " << slot.value() << ":\n"; in LpdumpMain()