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());
383 static std::unique_ptr<LpMetadata> ReadDeviceOrFile(const std::string& path, uint32_t slot) { in ReadDeviceOrFile() argument
387 return ReadMetadata(path, slot); in ReadDeviceOrFile()
411 std::optional<uint32_t> slot; in LpdumpMain() local
423 slot = slot_arg; in LpdumpMain()
425 slot = SlotNumberForSlotSuffix(optarg); in LpdumpMain()
445 if (slot.has_value()) { in LpdumpMain()
455 slot = 0; in LpdumpMain()
461 if (!slot.has_value() && !current_slot_suffix.empty()) { in LpdumpMain()
462 slot = SlotNumberForSlotSuffix(current_slot_suffix); in LpdumpMain()
467 if (!slot.has_value()) { in LpdumpMain()
468 slot = 0; in LpdumpMain()
480 super_path = GetSuperPartitionName(slot); in LpdumpMain()
487 auto pt = ReadDeviceOrFile(super_path, slot.value()); in LpdumpMain()
520 cout << "Slot " << slot.value() << ":\n"; in LpdumpMain()