| /boot/ |
| A D | bootmeth_efi.c | 62 if (bflow->blk) in efiload_read_file() 66 ret = bootmeth_common_read_file(bflow->method, bflow, bflow->fname, in efiload_read_file() 70 bflow->buf = map_sysmem(addr, bflow->size); in efiload_read_file() 108 if (!bflow->part) { in distro_efi_try_bootflow_files() 116 if (bflow->blk) in distro_efi_try_bootflow_files() 147 if (!bflow->fdt_fname) in distro_efi_try_bootflow_files() 152 bflow->fdt_size = size; in distro_efi_try_bootflow_files() 213 bflow->size = size; in distro_efi_read_bootflow_net() 221 if (!bflow->fname) in distro_efi_read_bootflow_net() 237 if (!bflow->fdt_fname) in distro_efi_read_bootflow_net() [all …]
|
| A D | bootmeth_script.c | 50 ret = image_locate_script(bflow->buf, bflow->size, NULL, NULL, &data, &len); in script_fill_info() 58 if (!bflow->os_name) in script_fill_info() 77 if (bflow->blk) { in script_read_bootflow_file() 79 if (!bflow->part) in script_read_bootflow_file() 98 if (!bflow->subdir) in script_read_bootflow_file() 111 &bflow->logo, &bflow->logo_size); in script_read_bootflow_file() 141 if (!bflow->buf) in script_read_bootflow_net() 145 bflow->size = size; in script_read_bootflow_net() 180 bflow->buf = buf; in script_set_bootflow() 181 bflow->size = size; in script_set_bootflow() [all …]
|
| A D | bootmeth_cros.c | 235 if (!bflow->name) in cros_read_buf() 237 if (!bflow->name) in cros_read_buf() 240 if (!bflow->os_name) in cros_read_buf() 312 bflow->x86_setup = NULL; in cros_read_info() 350 ret = blk_read(bflow->blk, in cros_read_kernel() 359 bflow->buf = buf; in cros_read_kernel() 377 ret = scan_part(bflow->blk, bflow->part, &info, &hdr); in cros_read_bootflow() 428 if (bflow->buf) in cros_read_all() 442 if (!bflow->buf) { in cros_boot() 449 ret = zboot_run(map_to_sysmem(bflow->buf), bflow->size, 0, 0, in cros_boot() [all …]
|
| A D | bootmeth-uclass.c | 321 free(bflow->fname); in bootmeth_try_file() 323 if (!bflow->fname) in bootmeth_try_file() 340 bflow->size = size; in bootmeth_try_file() 359 ret = fs_read_alloc(bflow->fname, bflow->size, align, &buf); in bootmeth_alloc_file() 364 bflow->buf = buf; in bootmeth_alloc_file() 366 if (bflow->blk) in bootmeth_alloc_file() 369 if (!bootflow_img_add(bflow, bflow->fname, type, map_to_sysmem(buf), in bootmeth_alloc_file() 388 if (bflow->blk) in bootmeth_alloc_other() 406 if (!bootflow_img_add(bflow, bflow->fname, type, map_to_sysmem(buf), in bootmeth_alloc_other() 425 if (bflow->blk) in bootmeth_common_read_file() [all …]
|
| A D | bootmeth_android.c | 219 bflow->state = BOOTFLOWST_MEDIA; in android_read_bootflow() 255 if (!bflow->os_name) in android_read_bootflow() 272 bflow->bootmeth_priv = priv; in android_read_bootflow() 273 bflow->state = BOOTFLOWST_READY; in android_read_bootflow() 277 bflow->bootmeth_priv = priv; in android_read_bootflow() 304 configure_serialno(bflow); in android_read_bootflow() 316 bflow->state = BOOTFLOWST_READY; in android_read_bootflow() 322 bflow->bootmeth_priv = NULL; in android_read_bootflow() 523 ret = run_avb_verification(bflow); in boot_android_normal() 558 ret = boot_android_normal(bflow); in boot_android_recovery() [all …]
|
| A D | bootflow.c | 460 memset(bflow, '\0', sizeof(*bflow)); in bootflow_init() 461 bflow->dev = bootdev; in bootflow_init() 462 bflow->method = meth; in bootflow_init() 471 free(bflow->name); in bootflow_free() 472 free(bflow->subdir); in bootflow_free() 473 free(bflow->fname); in bootflow_free() 475 free(bflow->buf); in bootflow_free() 476 free(bflow->os_name); in bootflow_free() 498 ret = bootmeth_read_all(bflow->method, bflow); in bootflow_read_all() 513 ret = bootmeth_boot(bflow->method, bflow); in bootflow_boot() [all …]
|
| A D | bootmeth_extlinux.c | 117 membuf_init(&mb, bflow->buf, bflow->size); in extlinux_fill_info() 118 membuf_putraw(&mb, bflow->size, true, &data); in extlinux_fill_info() 125 bflow->os_name = strdup(p); in extlinux_fill_info() 126 if (!bflow->os_name) in extlinux_fill_info() 149 if (bflow->blk && !bflow->part) in extlinux_read_bootflow() 154 desc = bflow->blk ? dev_get_uclass_plat(bflow->blk) : NULL; in extlinux_read_bootflow() 162 size = bflow->size; in extlinux_read_bootflow() 169 ret = extlinux_fill_info(bflow); in extlinux_read_bootflow() 185 addr = map_to_sysmem(bflow->buf); in extlinux_boot() 187 info.bflow = bflow; in extlinux_boot() [all …]
|
| A D | bootmeth_pxe.c | 62 struct bootflow *bflow) in extlinux_pxe_read_bootflow() argument 86 bflow->size = size; in extlinux_pxe_read_bootflow() 98 bflow->subdir[path_len] = '\0'; in extlinux_pxe_read_bootflow() 102 bflow->subdir ? bflow->subdir : "", EXTLINUX_FNAME); in extlinux_pxe_read_bootflow() 104 bflow->fname = strdup(fname); in extlinux_pxe_read_bootflow() 105 if (!bflow->fname) in extlinux_pxe_read_bootflow() 108 bflow->state = BOOTFLOWST_READY; in extlinux_pxe_read_bootflow() 115 bflow->buf = buf; in extlinux_pxe_read_bootflow() 157 addr = map_to_sysmem(bflow->buf); in extlinux_pxe_boot() 159 info.bflow = bflow; in extlinux_pxe_boot() [all …]
|
| A D | bootmeth_rauc.c | 91 if (bflow->blk) in distro_rauc_scan_parts() 94 priv = bflow->bootmeth_priv; in distro_rauc_scan_parts() 186 bflow->bootmeth_priv = priv; in distro_rauc_read_bootflow() 196 bflow->bootmeth_priv = NULL; in distro_rauc_read_bootflow() 200 bflow->state = BOOTFLOWST_READY; in distro_rauc_read_bootflow() 233 priv = bflow->bootmeth_priv; in distro_rauc_load_boot_script() 237 bflow->part = slot->boot_part; in distro_rauc_load_boot_script() 238 if (!bflow->part) in distro_rauc_load_boot_script() 250 bflow->dev->name, bflow->part); in distro_rauc_load_boot_script() 339 priv = bflow->bootmeth_priv; in distro_rauc_boot() [all …]
|
| A D | vbe_simple_fw.c | 54 struct udevice *meth = bflow->method; in vbe_simple_read_bootflow_fw() 68 &bflow->name); in vbe_simple_read_bootflow_fw() 73 bflow->blk = blk; in vbe_simple_read_bootflow_fw() 75 bflow->size = len; in vbe_simple_read_bootflow_fw() 98 struct bootflow bflow; in simple_load_from_image() local 115 bootflow_init(&bflow, bdev, meth); in simple_load_from_image() 123 image->arg = bflow.buf; in simple_load_from_image() 124 image->size = bflow.size; in simple_load_from_image() 125 log_debug("Image: %s at %p size %x\n", bflow.name, bflow.buf, in simple_load_from_image() 126 bflow.size); in simple_load_from_image() [all …]
|
| A D | vbe_abrec_fw.c | 66 struct udevice *meth = bflow->method; in abrec_read_bootflow_fw() 83 bflow->blk = blk; in abrec_read_bootflow_fw() 84 bflow->buf = map_sysmem(load_addr, len); in abrec_read_bootflow_fw() 85 bflow->size = len; in abrec_read_bootflow_fw() 210 struct bootflow bflow; in abrec_load_from_image() local 227 bootflow_init(&bflow, bdev, meth); in abrec_load_from_image() 235 image->arg = bflow.buf; in abrec_load_from_image() 236 image->size = bflow.size; in abrec_load_from_image() 237 log_debug("Image: %s at %p size %x\n", bflow.name, bflow.buf, in abrec_load_from_image() 238 bflow.size); in abrec_load_from_image() [all …]
|
| A D | prog_boot.c | 34 struct bootflow bflow; in bootstd_prog_boot() local 42 for (i = 0, ret = bootflow_scan_first(NULL, NULL, &iter, flags, &bflow); in bootstd_prog_boot() 44 i++, ret = bootflow_scan_next(&iter, &bflow)) { in bootstd_prog_boot() 45 if (!bflow.err) in bootstd_prog_boot() 46 bootflow_run_boot(&iter, &bflow); in bootstd_prog_boot() 47 bootflow_free(&bflow); in bootstd_prog_boot()
|
| A D | bootdev-uclass.c | 39 struct bootflow *bflow; in bootdev_first_bootflow() local 47 if (!bflow) in bootdev_first_bootflow() 49 *bflowp = bflow; in bootdev_first_bootflow() 57 struct bootflow *bflow; in bootdev_next_bootflow() local 65 if (!bflow) in bootdev_next_bootflow() 67 *bflowp = bflow; in bootdev_next_bootflow() 108 bflow->blk = blk; in bootdev_find_in_blk() 115 if (!bflow->name) in bootdev_find_in_blk() 118 bflow->part = iter->part; in bootdev_find_in_blk() 187 bflow->blk = blk; in bootdev_find_in_blk() [all …]
|
| A D | bootflow_menu.c | 146 media = dev_get_parent(bflow->dev); in bootflow_menu_add() 158 add_gap = priv->last_bootdev != bflow->dev; in bootflow_menu_add() 162 priv->last_bootdev = bflow->dev; in bootflow_menu_add() 168 bflow->os_name ? bflow->os_name : in bootflow_menu_add() 169 bflow->name, NULL); in bootflow_menu_add() 173 if (bflow->logo) { in bootflow_menu_add() 176 bflow->logo, NULL); in bootflow_menu_add() 194 struct bootflow *bflow; in bootflow_menu_add_all() local 199 ret = bootflow_next_glob(&bflow), i++) { in bootflow_menu_add_all() 202 if (bflow->state != BOOTFLOWST_READY) in bootflow_menu_add_all() [all …]
|
| A D | bootmeth_qfw.c | 31 static int qfw_read_bootflow(struct udevice *dev, struct bootflow *bflow) in qfw_read_bootflow() argument 33 struct udevice *qfw_dev = dev_get_parent(bflow->dev); in qfw_read_bootflow() 40 bflow->name = strdup("qfw"); in qfw_read_bootflow() 41 if (!bflow->name) in qfw_read_bootflow() 49 bflow->state = BOOTFLOWST_READY; in qfw_read_bootflow() 54 static int qfw_read_file(struct udevice *dev, struct bootflow *bflow, in qfw_read_file() argument 61 static int qfw_boot(struct udevice *dev, struct bootflow *bflow) in qfw_boot() argument
|
| A D | bootmeth_efi_mgr.c | 48 static int efi_mgr_read_bootflow(struct udevice *dev, struct bootflow *bflow) in efi_mgr_read_bootflow() argument 56 bflow->state = BOOTFLOWST_READY; in efi_mgr_read_bootflow() 69 bflow->state = BOOTFLOWST_READY; in efi_mgr_read_bootflow() 76 static int efi_mgr_read_file(struct udevice *dev, struct bootflow *bflow, in efi_mgr_read_file() argument 85 static int efi_mgr_boot(struct udevice *dev, struct bootflow *bflow) in efi_mgr_boot() argument
|
| A D | bootstd-uclass.c | 46 struct bootflow *bflow; in bootstd_clear_glob_() local 48 alist_for_each(bflow, &priv->bootflows) in bootstd_clear_glob_() 49 bootflow_remove(bflow); in bootstd_clear_glob_() 63 int bootstd_add_bootflow(struct bootflow *bflow) in bootstd_add_bootflow() argument 73 bflow = alist_add(&std->bootflows, *bflow); in bootstd_add_bootflow() 74 if (!bflow) in bootstd_add_bootflow()
|
| A D | bootmeth_sandbox.c | 21 static int sandbox_read_bootflow(struct udevice *dev, struct bootflow *bflow) in sandbox_read_bootflow() argument 24 bflow->state = BOOTFLOWST_READY; in sandbox_read_bootflow() 29 static int sandbox_read_file(struct udevice *dev, struct bootflow *bflow, in sandbox_read_file() argument 36 static int sandbox_boot(struct udevice *dev, struct bootflow *bflow) in sandbox_boot() argument
|
| A D | vbe_simple.c | 84 static int vbe_simple_read_bootflow(struct udevice *dev, struct bootflow *bflow) in vbe_simple_read_bootflow() argument 90 ret = vbe_simple_read_bootflow_fw(dev, bflow); in vbe_simple_read_bootflow() 100 static int vbe_simple_read_file(struct udevice *dev, struct bootflow *bflow, in vbe_simple_read_file() argument 107 ret = bootmeth_common_read_file(dev, bflow, file_path, addr, in vbe_simple_read_file()
|
| A D | vbe_simple.h | 48 int vbe_simple_read_bootflow_fw(struct udevice *dev, struct bootflow *bflow);
|
| A D | vbe_abrec.h | 78 int abrec_read_bootflow_fw(struct udevice *dev, struct bootflow *bflow);
|