Lines Matching refs:entries

58         ConfigEntry **entries;
341 /* find matching key in config entries */
343 if (config->entries[i]->key == key)
347 if (config->entries[i]->key == key)
428 entry = config->entries[i];
530 entry_len = StrLen(config->entries[i]->title_show);
537 /* offsets to center the entries on the screen */
544 /* menu entries title lines */
553 for (k = 0; config->entries[i]->title_show[k] != '\0' && j < x_max; j++, k++)
554 lines[i][j] = config->entries[i]->title_show[k];
724 efivar_set(L"LoaderEntryDefault", config->entries[idx_highlight]->file, TRUE);
770 /* only the options of configured entries can be edited */
771 if (config->no_editor || config->entries[idx_highlight]->type == LOADER_UNDEFINED)
776 if (line_edit(config->entries[idx_highlight]->options, &config->options_edit, x_max-1, y_max-1))
821 *chosen_entry = config->entries[idx_highlight];
839 config->entries = AllocatePool(sizeof(VOID *) * i);
841 config->entries = ReallocatePool(config->entries,
844 config->entries[config->entry_count++] = entry;
1159 err = uefi_call_wrapper(root_dir->Open, 5, root_dir, &entries_dir, L"\\loader\\entries", EFI_FILE_MODE_READ, 0ULL);
1207 if (str_verscmp(config->entries[k]->file, config->entries[k+1]->file) <= 0)
1209 entry = config->entries[k];
1210 config->entries[k] = config->entries[k+1];
1211 config->entries[k+1] = entry;
1233 if (StrCmp(config->entries[i]->file, var) == 0) {
1258 if (StrCmp(config->entries[i]->file, var) == 0) {
1281 if (config->entries[i]->no_autoselect)
1283 if (MetaiMatch(config->entries[i]->file, config->entry_default_pattern)) {
1293 if (config->entries[i]->no_autoselect)
1303 /* generate a unique title, avoiding non-distinguishable menu entries */
1312 FreePool(config->entries[i]->title_show);
1313 title = config->entries[i]->title;
1315 title = config->entries[i]->file;
1316 config->entries[i]->title_show = StrDuplicate(title);
1324 if (StrCmp(config->entries[i]->title_show, config->entries[k]->title_show) != 0)
1328 config->entries[i]->non_unique = TRUE;
1329 config->entries[k]->non_unique = TRUE;
1339 if (!config->entries[i]->non_unique)
1341 if (!config->entries[i]->version)
1344 s = PoolPrint(L"%s (%s)", config->entries[i]->title_show, config->entries[i]->version);
1345 FreePool(config->entries[i]->title_show);
1346 config->entries[i]->title_show = s;
1347 config->entries[i]->non_unique = FALSE;
1355 if (StrCmp(config->entries[i]->title_show, config->entries[k]->title_show) != 0)
1359 config->entries[i]->non_unique = TRUE;
1360 config->entries[k]->non_unique = TRUE;
1371 if (!config->entries[i]->non_unique)
1373 if (!config->entries[i]->machine_id)
1376 m = StrDuplicate(config->entries[i]->machine_id);
1378 s = PoolPrint(L"%s (%s)", config->entries[i]->title_show, m);
1379 FreePool(config->entries[i]->title_show);
1380 config->entries[i]->title_show = s;
1381 config->entries[i]->non_unique = FALSE;
1390 if (StrCmp(config->entries[i]->title_show, config->entries[k]->title_show) != 0)
1394 config->entries[i]->non_unique = TRUE;
1395 config->entries[k]->non_unique = TRUE;
1405 if (!config->entries[i]->non_unique)
1407 s = PoolPrint(L"%s (%s)", config->entries[i]->title_show, config->entries[i]->file);
1408 FreePool(config->entries[i]->title_show);
1409 config->entries[i]->title_show = s;
1410 config->entries[i]->non_unique = FALSE;
1462 /* do not boot right away into auto-detected entries */
1685 config_entry_free(config->entries[i]);
1686 FreePool(config->entries);
1746 /* scan /loader/entries/\*.conf files */
1749 /* sort entries after version number */
1770 Print(L"No loader found. Configuration files in \\loader\\entries\\*.conf are needed.");
1795 /* find matching key in config entries */
1808 entry = config.entries[config.idx_default];