Lines Matching refs:slot
860 static std::string verify_slot(Transport* transport, const char *slot, bool allow_all) { in verify_slot() argument
861 if (strcmp(slot, "all") == 0) { in verify_slot()
876 if (strcmp(slot, "other") == 0) { in verify_slot()
892 if (suffix == slot) in verify_slot()
893 return slot; in verify_slot()
895 fprintf(stderr, "Slot %s does not exist. supported slots are:\n", slot); in verify_slot()
902 static std::string verify_slot(Transport* transport, const char *slot) { in verify_slot() argument
903 return verify_slot(transport, slot, true); in verify_slot()
906 static void do_for_partition(Transport* transport, const char *part, const char *slot, in do_for_partition() argument
916 if (!slot || slot[0] == 0) { in do_for_partition()
922 func(std::string(part) + slot); in do_for_partition()
925 if (force_slot && slot && slot[0]) { in do_for_partition()
927 part, slot); in do_for_partition()
938 static void do_for_partitions(Transport* transport, const char *part, const char *slot, in do_for_partitions() argument
942 if (slot && strcmp(slot, "all") == 0) { in do_for_partitions()
955 do_for_partition(transport, part, slot, func, force_slot); in do_for_partitions()
1573 std::string slot = verify_slot(transport, argv[1], false); in main() local
1574 fb_set_active(slot.c_str()); in main()