Lines Matching defs:content
912 static CHAR8 *line_get_key_value(CHAR8 *content, CHAR8 *sep, UINTN *pos, CHAR8 **key_ret, CHAR8 **value_ret) {
918 line = content + *pos;
928 if (content[*pos])
974 static VOID config_defaults_load_from_file(Config *config, CHAR8 *content) {
979 line = content;
980 while ((line = line_get_key_value(content, (CHAR8 *)" \t", &pos, &key, &value))) {
1008 static VOID config_entry_add_from_file(Config *config, EFI_HANDLE *device, CHAR16 *file, CHAR8 *content, CHAR16 *loaded_image_path) {
1018 line = content;
1019 while ((line = line_get_key_value(content, (CHAR8 *)" \t", &pos, &key, &value))) {
1137 CHAR8 *content = NULL;
1142 len = file_read(root_dir, L"\\loader\\loader.conf", 0, 0, &content);
1144 config_defaults_load_from_file(config, content);
1145 FreePool(content);
1165 CHAR8 *content = NULL;
1187 len = file_read(entries_dir, f->FileName, 0, 0, &content);
1189 config_entry_add_from_file(config, device, f->FileName, content, loaded_image_path);
1190 FreePool(content);
1514 CHAR8 *content = NULL;
1545 len = file_read(linux_dir, f->FileName, offs[0], szs[0], &content);
1550 line = content;
1551 while ((line = line_get_key_value(content, (CHAR8 *)"=", &pos, &key, &value))) {
1586 FreePool(content);
1588 len = file_read(linux_dir, f->FileName, offs[1], szs[1] - 1 , &content);
1590 cmdline = stra_to_str(content);
1603 FreePool(content);