Lines Matching refs:cmdtp
101 int (*do_getfile)(cmd_tbl_t *cmdtp, const char *file_path, char *file_addr);
111 static int get_relfile(cmd_tbl_t *cmdtp, const char *file_path, in get_relfile() argument
139 return do_getfile(cmdtp, relfile, addr_buf); in get_relfile()
149 int get_pxe_file(cmd_tbl_t *cmdtp, const char *file_path, in get_pxe_file() argument
157 err = get_relfile(cmdtp, file_path, file_addr); in get_pxe_file()
190 int get_pxelinux_path(cmd_tbl_t *cmdtp, const char *file, in get_pxelinux_path() argument
204 return get_pxe_file(cmdtp, path, pxefile_addr_r); in get_pxelinux_path()
214 static int get_relfile_envaddr(cmd_tbl_t *cmdtp, const char *file_path, in get_relfile_envaddr() argument
228 return get_relfile(cmdtp, file_path, file_addr); in get_relfile_envaddr()
344 static int label_boot(cmd_tbl_t *cmdtp, struct pxe_label *label) in label_boot() argument
373 if (get_relfile_envaddr(cmdtp, label->initrd, "ramdisk_addr_r") < 0) { in label_boot()
386 if (get_relfile_envaddr(cmdtp, label->kernel, "kernel_addr_r") < 0) { in label_boot()
514 int err = get_relfile_envaddr(cmdtp, fdtfile, in label_boot()
541 do_bootm(cmdtp, 0, bootm_argc, bootm_argv); in label_boot()
545 do_booti(cmdtp, 0, bootm_argc, bootm_argv); in label_boot()
549 do_bootz(cmdtp, 0, bootm_argc, bootm_argv); in label_boot()
823 static int parse_pxefile_top(cmd_tbl_t *cmdtp, char *p, unsigned long base,
834 static int handle_include(cmd_tbl_t *cmdtp, char **c, unsigned long base, in handle_include() argument
850 err = get_pxe_file(cmdtp, include_path, base); in handle_include()
858 ret = parse_pxefile_top(cmdtp, buf, base, cfg, nest_level); in handle_include()
874 static int parse_menu(cmd_tbl_t *cmdtp, char **c, struct pxe_menu *cfg, in parse_menu() argument
890 err = handle_include(cmdtp, c, base, cfg, nest_level + 1); in parse_menu()
1087 static int parse_pxefile_top(cmd_tbl_t *cmdtp, char *p, unsigned long base, in parse_pxefile_top() argument
1110 err = parse_menu(cmdtp, &p, cfg, in parse_pxefile_top()
1137 err = handle_include(cmdtp, &p, in parse_pxefile_top()
1195 struct pxe_menu *parse_pxefile(cmd_tbl_t *cmdtp, unsigned long menucfg) in parse_pxefile() argument
1211 r = parse_pxefile_top(cmdtp, buf, menucfg, cfg, 1); in parse_pxefile()
1279 static void boot_unattempted_labels(cmd_tbl_t *cmdtp, struct pxe_menu *cfg) in boot_unattempted_labels() argument
1288 label_boot(cmdtp, label); in boot_unattempted_labels()
1304 void handle_pxe_menu(cmd_tbl_t *cmdtp, struct pxe_menu *cfg) in handle_pxe_menu() argument
1313 if (get_relfile(cmdtp, cfg->bmp, load_addr)) { in handle_pxe_menu()
1344 err = label_boot(cmdtp, choice); in handle_pxe_menu()
1351 boot_unattempted_labels(cmdtp, cfg); in handle_pxe_menu()