Lines Matching refs:current_slot
871 std::string current_slot; in get_current_slot() local
872 if (fb_getvar(transport, "current-slot", ¤t_slot)) { in get_current_slot()
873 if (current_slot == "_a") return "a"; // Legacy support in get_current_slot()
874 if (current_slot == "_b") return "b"; // Legacy support in get_current_slot()
875 return current_slot; in get_current_slot()
917 static std::string get_other_slot(const std::string& current_slot, int count) { in get_other_slot() argument
920 char next = (current_slot[0] - 'a' + 1)%count + 'a'; in get_other_slot()
924 static std::string get_other_slot(Transport* transport, const std::string& current_slot) { in get_other_slot() argument
925 return get_other_slot(current_slot, get_slot_count(transport)); in get_other_slot()
981 std::string current_slot; in do_for_partition() local
989 current_slot = get_current_slot(transport); in do_for_partition()
990 if (current_slot == "") { in do_for_partition()
993 func(part + "_" + current_slot); in do_for_partition()
1062 std::string current_slot = get_current_slot(transport); in set_active() local
1063 if (current_slot != "") { in set_active()
1064 fb_set_active((separator + current_slot).c_str()); in set_active()
1595 std::string current_slot; in main() local
1596 if (fb_getvar(transport, "current-slot", ¤t_slot)) { in main()
1597 next_active = verify_slot(transport, current_slot, false); in main()