Lines Matching full:entry

27 	char *title;			/* title of entry */
28 char *command; /* hush command of entry */
30 struct bootmenu_entry *next; /* next menu entry (num+1) */
35 int active; /* active menu entry */
37 struct bootmenu_entry *first; /* first menu entry */
60 struct bootmenu_entry *entry = data; in bootmenu_print_entry() local
61 int reverse = (entry->menu->active == entry->num); in bootmenu_print_entry()
64 * Move cursor to line where the entry will be drown (entry->num) in bootmenu_print_entry()
67 printf(ANSI_CURSOR_POSITION, entry->num + 4, 1); in bootmenu_print_entry()
74 puts(entry->title); in bootmenu_print_entry()
257 struct bootmenu_entry *entry; in bootmenu_create() local
274 printf("Invalid bootmenu entry: %s\n", option); in bootmenu_create()
278 entry = malloc(sizeof(struct bootmenu_entry)); in bootmenu_create()
279 if (!entry) in bootmenu_create()
283 entry->title = malloc(len + 1); in bootmenu_create()
284 if (!entry->title) { in bootmenu_create()
285 free(entry); in bootmenu_create()
288 memcpy(entry->title, option, len); in bootmenu_create()
289 entry->title[len] = 0; in bootmenu_create()
292 entry->command = malloc(len + 1); in bootmenu_create()
293 if (!entry->command) { in bootmenu_create()
294 free(entry->title); in bootmenu_create()
295 free(entry); in bootmenu_create()
298 memcpy(entry->command, sep + 1, len); in bootmenu_create()
299 entry->command[len] = 0; in bootmenu_create()
301 sprintf(entry->key, "%d", i); in bootmenu_create()
303 entry->num = i; in bootmenu_create()
304 entry->menu = menu; in bootmenu_create()
305 entry->next = NULL; in bootmenu_create()
308 menu->first = entry; in bootmenu_create()
310 iter->next = entry; in bootmenu_create()
312 iter = entry; in bootmenu_create()
319 /* Add U-Boot console entry at the end */ in bootmenu_create()
321 entry = malloc(sizeof(struct bootmenu_entry)); in bootmenu_create()
322 if (!entry) in bootmenu_create()
325 entry->title = strdup("U-Boot console"); in bootmenu_create()
326 if (!entry->title) { in bootmenu_create()
327 free(entry); in bootmenu_create()
331 entry->command = strdup(""); in bootmenu_create()
332 if (!entry->command) { in bootmenu_create()
333 free(entry->title); in bootmenu_create()
334 free(entry); in bootmenu_create()
338 sprintf(entry->key, "%d", i); in bootmenu_create()
340 entry->num = i; in bootmenu_create()
341 entry->menu = menu; in bootmenu_create()
342 entry->next = NULL; in bootmenu_create()
345 menu->first = entry; in bootmenu_create()
347 iter->next = entry; in bootmenu_create()
349 iter = entry; in bootmenu_create()
378 /* If delay is 0 do not create menu, just run first entry */ in bootmenu_show()
410 /* Default menu entry is always first */ in bootmenu_show()
436 debug("Starting entry '%s'\n", title); in bootmenu_show()
449 struct bootmenu_entry *entry; in menu_display_statusline() local
452 if (menu_default_choice(m, (void *)&entry) < 0) in menu_display_statusline()
455 menu = entry->menu; in menu_display_statusline()