Lines Matching refs:cfg
111 static char *get_value(const struct file *cfg, const char *section,
143 static struct file __initdata cfg; variable
327 if ( cfg.addr ) in blexit()
328 efi_bs->FreePages(cfg.addr, PFN_UP(cfg.size)); in blexit()
553 if ( file == &cfg && ret == EFI_NOT_FOUND ) in read_file()
584 if ( file != &cfg ) in read_file()
617 static void __init pre_parse(const struct file *cfg) in pre_parse() argument
619 char *ptr = cfg->ptr, *end = ptr + cfg->size; in pre_parse()
640 if ( cfg->size && end[-1] ) in pre_parse()
645 static char *__init get_value(const struct file *cfg, const char *section, in get_value() argument
648 char *ptr = cfg->ptr, *end = ptr + cfg->size; in get_value()
1179 if ( read_file(dir_handle, file_name, &cfg, NULL) ) in efi_start()
1189 else if ( !read_file(dir_handle, cfg_file_name, &cfg, NULL) ) in efi_start()
1191 pre_parse(&cfg); in efi_start()
1196 section.s = get_value(&cfg, "global", "default"); in efi_start()
1200 name.s = get_value(&cfg, section.s, "kernel"); in efi_start()
1203 name.s = get_value(&cfg, "global", "chain"); in efi_start()
1206 efi_bs->FreePages(cfg.addr, PFN_UP(cfg.size)); in efi_start()
1207 cfg.addr = 0; in efi_start()
1208 if ( !read_file(dir_handle, s2w(&name), &cfg, NULL) ) in efi_start()
1215 pre_parse(&cfg); in efi_start()
1233 name.s = get_value(&cfg, section.s, "ramdisk"); in efi_start()
1240 name.s = get_value(&cfg, section.s, "xsm"); in efi_start()
1247 name.s = get_value(&cfg, section.s, "options"); in efi_start()
1252 name.cs = get_value(&cfg, section.s, "video"); in efi_start()
1254 name.cs = get_value(&cfg, "global", "video"); in efi_start()
1269 efi_bs->FreePages(cfg.addr, PFN_UP(cfg.size)); in efi_start()
1270 cfg.addr = 0; in efi_start()