Home
last modified time | relevance | path

Searched refs:menu (Results 1 – 25 of 126) sorted by relevance

123456

/rk3399_rockchip-uboot/scripts/kconfig/
H A Dmenu.c15 struct menu rootmenu;
16 static struct menu **last_entry_ptr;
21 void menu_warn(struct menu *menu, const char *fmt, ...) in menu_warn() argument
25 fprintf(stderr, "%s:%d:warning: ", menu->file->name, menu->lineno); in menu_warn()
49 struct menu *menu; in menu_add_entry() local
51 menu = xmalloc(sizeof(*menu)); in menu_add_entry()
52 memset(menu, 0, sizeof(*menu)); in menu_add_entry()
53 menu->sym = sym; in menu_add_entry()
54 menu->parent = current_menu; in menu_add_entry()
55 menu->file = current_file; in menu_add_entry()
[all …]
H A Dlkc_proto.h15 extern struct menu rootmenu;
17 bool menu_is_empty(struct menu *menu);
18 bool menu_is_visible(struct menu *menu);
19 bool menu_has_prompt(struct menu *menu);
20 const char * menu_get_prompt(struct menu *menu);
21 struct menu * menu_get_root_menu(struct menu *menu);
22 struct menu * menu_get_parent_menu(struct menu *menu);
23 bool menu_has_help(struct menu *menu);
24 const char * menu_get_help(struct menu *menu);
26 void menu_get_ext_help(struct menu *menu, struct gstr *help);
H A Dmconf.c277 static struct menu *current_menu;
284 static void conf(struct menu *menu, struct menu *active_menu);
285 static void conf_choice(struct menu *menu);
286 static void conf_string(struct menu *menu);
294 static void show_help(struct menu *menu);
360 struct menu **targets;
435 struct menu *targets[JUMP_NB]; in search_conf()
466 static void build_conf(struct menu *menu) in build_conf() argument
470 struct menu *child; in build_conf()
480 visible = menu_is_visible(menu); in build_conf()
[all …]
H A Dnconf.c259 static struct menu *current_menu;
279 static void conf(struct menu *menu);
280 static void conf_choice(struct menu *menu);
281 static void conf_string(struct menu *menu);
284 static void show_help(struct menu *menu);
289 typedef void (*function_key_handler_t)(int *key, struct menu *menu);
290 static void handle_f1(int *key, struct menu *current_item);
291 static void handle_f2(int *key, struct menu *current_item);
292 static void handle_f3(int *key, struct menu *current_item);
293 static void handle_f4(int *key, struct menu *current_item);
[all …]
H A Dconf.c21 static void conf(struct menu *menu);
22 static void check_conf(struct menu *menu);
46 static struct menu *rootEntry;
48 static void print_help(struct menu *menu) in print_help() argument
52 menu_get_ext_help(menu, &help); in print_help()
134 static int conf_string(struct menu *menu) in conf_string() argument
136 struct symbol *sym = menu->sym; in conf_string()
140 printf("%*s%s ", indent - 1, "", _(menu->prompt->text)); in conf_string()
153 print_help(menu); in conf_string()
167 static int conf_sym(struct menu *menu) in conf_sym() argument
[all …]
H A Dqconf.cc128 sym = menu->sym; in updateMenu()
129 prop = menu->prompt; in updateMenu()
130 prompt = _(menu_get_prompt(menu)); in updateMenu()
138 if (sym && list->rootEntry == menu) in updateMenu()
229 if (!menu) in testUpdateMenu()
232 sym_calc_value(menu->sym); in testUpdateMenu()
233 if (menu->flags & MENU_CHANGED) { in testUpdateMenu()
235 menu->flags &= ~MENU_CHANGED; in testUpdateMenu()
236 for (i = (ConfigItem*)menu->data; i; i = i->nextItem) in testUpdateMenu()
248 if (menu) { in init()
[all …]
H A Dqconf.h52 ConfigItem* findConfigItem(struct menu *);
64 void setRootMenu(struct menu *menu);
72 void menuChanged(struct menu *menu);
73 void menuSelected(struct menu *menu);
75 void gotFocus(struct menu *);
103 bool menuSkip(struct menu *);
105 void updateMenuList(ConfigItem *parent, struct menu*);
106 void updateMenuList(ConfigList *parent, struct menu*);
117 struct menu *rootEntry;
126 ConfigItem(ConfigList *parent, ConfigItem *after, struct menu *m, bool v) in ConfigItem()
[all …]
H A Dgconf.c62 static struct menu *current; // current node for SINGLE view
63 static struct menu *browsed; // browsed node for SPLIT view
73 static void display_tree(struct menu *menu);
75 static void update_tree(struct menu *src, GtkTreeIter * dst);
76 static void set_node(GtkTreeIter * node, struct menu *menu, gchar ** row);
77 static gchar **fill_row(struct menu *menu);
367 static void text_insert_help(struct menu *menu) in text_insert_help() argument
371 const char *prompt = _(menu_get_prompt(menu)); in text_insert_help()
374 menu_get_ext_help(menu, &help); in text_insert_help()
786 struct menu *menu; in renderer_edited() local
[all …]
H A Dkxgettext.c171 static void menu_build_message_list(struct menu *menu) in menu_build_message_list() argument
173 struct menu *child; in menu_build_message_list()
175 message__add(menu_get_prompt(menu), NULL, in menu_build_message_list()
176 menu->file == NULL ? "Root Menu" : menu->file->name, in menu_build_message_list()
177 menu->lineno); in menu_build_message_list()
179 if (menu->sym != NULL && menu_has_help(menu)) in menu_build_message_list()
180 message__add(menu_get_help(menu), menu->sym->name, in menu_build_message_list()
181 menu->file == NULL ? "Root Menu" : menu->file->name, in menu_build_message_list()
182 menu->lineno); in menu_build_message_list()
184 for (child = menu->list; child != NULL; child = child->next) in menu_build_message_list()
H A Dzconf.y31 static struct menu *current_menu, *current_entry;
42 struct menu *menu; member
93 %type <menu> if_entry menu_entry choice_entry
363 menu: T_MENU prompt T_EOL
370 menu_entry: menu visibility_list depends_list
615 static void print_symbol(FILE *out, struct menu *menu) in print_symbol() argument
617 struct symbol *sym = menu->sym; in print_symbol()
645 if (prop->menu != menu) in print_symbol()
694 if (menu->help) { in print_symbol()
695 int len = strlen(menu->help); in print_symbol()
[all …]
H A Dconfdata.c669 struct menu *menu; in conf_write_defconfig() local
679 menu = rootmenu.list; in conf_write_defconfig()
681 while (menu != NULL) in conf_write_defconfig()
683 sym = menu->sym; in conf_write_defconfig()
685 if (!menu_is_visible(menu)) in conf_write_defconfig()
721 if (menu->list != NULL) { in conf_write_defconfig()
722 menu = menu->list; in conf_write_defconfig()
724 else if (menu->next != NULL) { in conf_write_defconfig()
725 menu = menu->next; in conf_write_defconfig()
727 while ((menu = menu->parent)) { in conf_write_defconfig()
[all …]
H A Dnconf.gui.c253 MENU *menu; in btn_dialog() local
293 menu = new_menu(btns); in btn_dialog()
297 set_menu_fore(menu, attributes[DIALOG_MENU_FORE]); in btn_dialog()
298 set_menu_back(menu, attributes[DIALOG_MENU_BACK]); in btn_dialog()
307 set_menu_win(menu, win); in btn_dialog()
308 set_menu_sub(menu, menu_win); in btn_dialog()
309 set_menu_format(menu, 1, btn_num); in btn_dialog()
310 menu_opts_off(menu, O_SHOWDESC); in btn_dialog()
311 menu_opts_off(menu, O_SHOWMATCH); in btn_dialog()
312 menu_opts_on(menu, O_ONEVALUE); in btn_dialog()
[all …]
H A Dexpr.h153 struct menu *menu; /* the menu the property are associated with member
169 struct menu { struct
170 struct menu *next; argument
171 struct menu *parent; argument
172 struct menu *list; argument
190 struct menu *target; argument
H A Dlkc.h99 void menu_warn(struct menu *menu, const char *fmt, ...);
100 struct menu *menu_add_menu(void);
110 void menu_finalize(struct menu *parent);
H A Dzconf.tab.c_shipped104 static struct menu *current_menu, *current_entry;
191 struct menu *menu;
550 "if_entry", "if_end", "if_stmt", "if_block", "mainmenu_stmt", "menu",
1216 ((*yyvaluep).menu)->file->name, ((*yyvaluep).menu)->lineno);
1217 if (current_menu == ((*yyvaluep).menu))
1227 ((*yyvaluep).menu)->file->name, ((*yyvaluep).menu)->lineno);
1228 if (current_menu == ((*yyvaluep).menu))
1238 ((*yyvaluep).menu)->file->name, ((*yyvaluep).menu)->lineno);
1239 if (current_menu == ((*yyvaluep).menu))
1685 (yyval.menu) = menu_add_menu();
[all …]
/rk3399_rockchip-uboot/cmd/
H A Dbootmenu.c30 struct bootmenu_data *menu; /* this bootmenu */ member
62 int reverse = (entry->menu->active == entry->num); in bootmenu_print_entry()
81 static void bootmenu_autoboot_loop(struct bootmenu_data *menu, in bootmenu_autoboot_loop() argument
86 if (menu->delay > 0) { in bootmenu_autoboot_loop()
87 printf(ANSI_CURSOR_POSITION, menu->count + 5, 1); in bootmenu_autoboot_loop()
88 printf(" Hit any key to stop autoboot: %2d ", menu->delay); in bootmenu_autoboot_loop()
91 while (menu->delay > 0) { in bootmenu_autoboot_loop()
99 menu->delay = -1; in bootmenu_autoboot_loop()
118 if (menu->delay < 0) in bootmenu_autoboot_loop()
121 --menu->delay; in bootmenu_autoboot_loop()
[all …]
/rk3399_rockchip-uboot/doc/
H A DREADME.menu11 To use the menu code, enable CONFIG_MENU, and include "menu.h" where
15 the menu, and an opaque pointer to data controlled by the consumer.
17 If you want to show a menu, instead starting the shell, define
19 function, which handle your menu. This function returns the remaining
24 #include "menu.h"
27 * Consumers of the menu interfaces will use a struct menu * as the
28 * handle for a menu. struct menu is only fully defined in menu.c,
29 * preventing consumers of the menu interfaces from accessing its
32 struct menu;
35 * NOTE: See comments in common/menu.c for more detailed documentation on
[all …]
H A DREADME.bootmenu9 The "bootmenu" command uses U-Boot menu interfaces and provides
12 the items. Current active menu item is highlighted and can be
14 menu entry invokes an U-Boot command (or a list of commands)
15 associated with this menu entry.
18 an ANSI terminal is required for proper menu rendering and item
21 The assembling of the menu is done via a set of environment variables
28 menu entry will be selected automatically
30 <num> is the boot menu entry number, starting from zero
32 <title> is the text of the menu entry shown on the console
35 <commands> are commands which will be executed when a menu
[all …]
H A DREADME.pxe115 menu title <string> - sets a title for the menu of labels being displayed.
117 menu include <path> - use tftp to retrieve the pxe file at <path>, which
136 menu default - set this label as the default label to boot; this is
173 ------------/tftpboot/pxelinux.cfg/menus/base.menu-----------
174 menu title Linux selections
178 menu label Default Install Image
190 menu label Locally installed kernel
196 menu include pxelinux.cfg/menus/base.menu
224 - U-Boot's pxe doesn't provide the full menu implementation that PXELINUX
225 does, only a simple text based menu using the commands described in
[all …]
/rk3399_rockchip-uboot/include/
H A Dmenu.h10 struct menu;
12 struct menu *menu_create(char *title, int timeout, int prompt,
16 int menu_default_set(struct menu *m, char *item_key);
17 int menu_get_choice(struct menu *m, void **choice);
18 int menu_item_add(struct menu *m, char *item_key, void *item_data);
19 int menu_destroy(struct menu *m);
20 void menu_display_statusline(struct menu *m);
21 int menu_default_choice(struct menu *m, void **choice);
/rk3399_rockchip-uboot/common/
H A Dmenu.c34 struct menu { struct
53 static inline void *menu_items_iter(struct menu *m, in menu_items_iter()
54 void *(*callback)(struct menu *, struct menu_item *, void *), in menu_items_iter() argument
78 static inline void *menu_item_print(struct menu *m, in menu_item_print()
96 static inline void *menu_item_destroy(struct menu *m, in menu_item_destroy()
108 __weak void menu_display_statusline(struct menu *m) in menu_display_statusline()
116 static inline void menu_display(struct menu *m) in menu_display()
135 static inline void *menu_item_key_match(struct menu *m, in menu_item_key_match()
156 static inline struct menu_item *menu_item_by_key(struct menu *m, in menu_item_by_key()
166 int menu_default_choice(struct menu *m, void **choice) in menu_default_choice()
[all …]
/rk3399_rockchip-uboot/scripts/kconfig/lxdialog/
H A Dmenubox.c93 do_print_item(menu, item_str(), choice, selected, !item_is_tag(':')); \
179 WINDOW *dialog, *menu; in dialog_menu() local
222 menu = subwin(dialog, menu_height, menu_width, in dialog_menu()
224 keypad(menu, TRUE); in dialog_menu()
261 wnoutrefresh(menu); in dialog_menu()
267 wmove(menu, choice, item_x + 1); in dialog_menu()
268 wrefresh(menu); in dialog_menu()
271 key = wgetch(menu); in dialog_menu()
305 do_scroll(menu, &scroll, -1); in dialog_menu()
317 do_scroll(menu, &scroll, 1); in dialog_menu()
[all …]
/rk3399_rockchip-uboot/arch/arm/dts/
H A Drv1126-evb.dts30 menu-key {
33 label = "menu";
/rk3399_rockchip-uboot/drivers/dma/
H A DKconfig1 menu "DMA Support"
37 endmenu # menu "DMA Support"
/rk3399_rockchip-uboot/common/usbplug/
H A DKconfig1 menu "USBPLUG"

123456