Lines Matching full:choice

92  * sym_get_choice_menu - get the parent choice menu if present
96 * Return: a choice menu if this function is called against a choice member.
103 * Choice members must have a prompt. Find a menu entry with a prompt, in sym_get_choice_menu()
104 * and assume it resides inside a choice block. in sym_get_choice_menu()
258 * Find the default symbol for a choice.
259 * First try the default values for the choice symbol
260 * Next locate the first visible choice value
263 struct symbol *sym_choice_default(struct menu *choice) in sym_choice_default() argument
270 for_all_defaults(choice->sym, prop) { in sym_choice_default()
280 menu_for_each_sub_entry(menu, choice) in sym_choice_default()
289 * sym_calc_choice - calculate symbol values in a choice
291 * @choice: a menu of the choice
295 struct symbol *sym_calc_choice(struct menu *choice) in sym_calc_choice() argument
301 /* Traverse the list of choice members in the priority order. */ in sym_calc_choice()
302 list_for_each_entry(sym, &choice->choice_members, choice_link) { in sym_calc_choice()
319 res = sym_choice_default(choice); in sym_calc_choice()
326 menu_for_each_sub_entry(menu, choice) { in sym_calc_choice()
342 list_for_each_entry_reverse(sym, &choice->choice_members, in sym_calc_choice()
352 menu_for_each_sub_entry(menu, choice) { in sym_calc_choice()
577 * choice_set_value - set the user input to a choice
579 * @choice: menu entry for the choice
582 void choice_set_value(struct menu *choice, struct symbol *sym) in choice_set_value() argument
587 menu_for_each_sub_entry(menu, choice) { in choice_set_value()
609 * choice block ends up with selecting 'n' symbol. in choice_set_value()
612 list_move(&menu->sym->choice_link, &choice->choice_members); in choice_set_value()
621 struct menu *choice; in sym_toggle_tristate_value() local
624 choice = sym_get_choice_menu(sym); in sym_toggle_tristate_value()
625 if (choice) { in sym_toggle_tristate_value()
626 choice_set_value(choice, sym); in sym_toggle_tristate_value()
1093 struct menu *choice; in sym_check_print_recursive() local
1097 choice = sym_get_choice_menu(last_sym); in sym_check_print_recursive()
1098 if (choice) { in sym_check_print_recursive()
1100 last_sym = choice->sym; in sym_check_print_recursive()
1120 choice = list_first_entry(&next_sym->menus, struct menu, link); in sym_check_print_recursive()
1122 fprintf(stderr, "\tsymbol %s is part of choice block at %s:%d\n", in sym_check_print_recursive()
1123 sym->name ? sym->name : "<choice>", in sym_check_print_recursive()
1124 choice->filename, choice->lineno); in sym_check_print_recursive()
1127 sym->name ? sym->name : "<choice>", in sym_check_print_recursive()
1137 sym->name ? sym->name : "<choice>", in sym_check_print_recursive()
1142 sym->name ? sym->name : "<choice>", in sym_check_print_recursive()
1239 static struct symbol *sym_check_choice_deps(struct symbol *choice) in sym_check_choice_deps() argument
1245 dep_stack_insert(&stack, choice); in sym_check_choice_deps()
1247 choice_menu = list_first_entry(&choice->menus, struct menu, link); in sym_check_choice_deps()
1254 choice->flags |= (SYMBOL_CHECK | SYMBOL_CHECKED); in sym_check_choice_deps()
1255 sym2 = sym_check_sym_deps(choice); in sym_check_choice_deps()
1256 choice->flags &= ~SYMBOL_CHECK; in sym_check_choice_deps()
1277 sym2 = choice; in sym_check_choice_deps()
1287 struct menu *choice; in sym_check_deps() local
1297 choice = sym_get_choice_menu(sym); in sym_check_deps()
1298 if (choice) { in sym_check_deps()
1301 /* for choice groups start the check with main choice symbol */ in sym_check_deps()
1303 sym2 = sym_check_deps(choice->sym); in sym_check_deps()