Lines Matching full:delay
34 int delay; /* delay for autoboot */ member
85 if (menu->delay > 0) { in bootmenu_autoboot_loop()
87 printf(" Hit any key to stop autoboot: %2d ", menu->delay); in bootmenu_autoboot_loop()
90 while (menu->delay > 0) { in bootmenu_autoboot_loop()
98 menu->delay = -1; in bootmenu_autoboot_loop()
117 if (menu->delay < 0) in bootmenu_autoboot_loop()
120 --menu->delay; in bootmenu_autoboot_loop()
121 printf("\b\b\b%2d ", menu->delay); in bootmenu_autoboot_loop()
127 if (menu->delay == 0) in bootmenu_autoboot_loop()
198 if (menu->delay >= 0) { in bootmenu_choice_entry()
247 static struct bootmenu_data *bootmenu_create(int delay) in bootmenu_create() argument
263 menu->delay = delay; in bootmenu_create()
367 static void bootmenu_show(int delay) in bootmenu_show() argument
378 /* If delay is 0 do not create menu, just run first entry */ in bootmenu_show()
379 if (delay == 0) { in bootmenu_show()
394 bootmenu = bootmenu_create(delay); in bootmenu_show()
398 menu = menu_create(NULL, bootmenu->delay, 1, bootmenu_print_entry, in bootmenu_show()
486 int delay = 10; in do_bootmenu() local
489 delay = CONFIG_BOOTDELAY; in do_bootmenu()
499 delay = (int)simple_strtol(delay_str, NULL, 10); in do_bootmenu()
501 bootmenu_show(delay); in do_bootmenu()
508 "[delay]\n"
509 " - show ANSI terminal bootmenu with autoboot delay"