Home
last modified time | relevance | path

Searched refs:bflow (Results 1 – 25 of 28) sorted by relevance

12

/u-boot/cmd/
A Dbootflow.c35 switch (bflow->state) { in report_bootflow_err()
71 bflow->method->name, bootflow_state_get_name(bflow->state), in show_bootflow()
72 bflow->dev ? dev_get_uclass_name(dev_get_parent(bflow->dev)) : in show_bootflow()
73 "(none)", bflow->part, bflow->name, bflow->fname); in show_bootflow()
75 report_bootflow_err(bflow, bflow->err); in show_bootflow()
167 bflow.err = ret; in do_bootflow_scan()
268 found = bflow; in do_bootflow_select()
277 found = bflow; in do_bootflow_select()
325 printf("Size: %x (%d bytes)\n", bflow->size, bflow->size); in do_bootflow_info()
329 if (bflow->logo) { in do_bootflow_info()
[all …]
A Dbootdev.c72 struct bootflow *bflow; in do_bootdev_info() local
87 for (ret = bootdev_first_bootflow(dev, &bflow), i = 0; in do_bootdev_info()
89 ret = bootdev_next_bootflow(&bflow), i++) in do_bootdev_info()
90 num_valid += bflow->state == BOOTFLOWST_READY; in do_bootdev_info()
/u-boot/boot/
A Dbootmeth_script.c51 ret = image_locate_script(bflow->buf, bflow->size, NULL, NULL, &data, &len); in script_fill_info()
59 if (!bflow->os_name) in script_fill_info()
78 if (bflow->blk) { in script_read_bootflow_file()
80 if (!bflow->part) in script_read_bootflow_file()
99 if (!bflow->subdir) in script_read_bootflow_file()
110 ret = bootmeth_alloc_other(bflow, "boot.bmp", &bflow->logo, in script_read_bootflow_file()
141 if (!bflow->buf) in script_read_bootflow_net()
144 bflow->buf[size] = '\0'; in script_read_bootflow_net()
145 bflow->size = size; in script_read_bootflow_net()
180 bflow->buf = buf; in script_set_bootflow()
[all …]
A Dbootmeth_efi.c100 int size = bflow->size; in set_efi_bootdev()
117 bflow->part); in set_efi_bootdev()
126 bflow->buf, size); in set_efi_bootdev()
129 efi_set_bootdev(dev_name, devnum_str, bflow->fname, bflow->buf, size); in set_efi_bootdev()
221 if (!bflow->part) in distro_efi_read_bootflow_file()
230 if (bflow->blk) in distro_efi_read_bootflow_file()
321 bflow->size = size; in distro_efi_read_bootflow_net()
325 bflow->size); in distro_efi_read_bootflow_net()
340 if (!bflow->fdt_fname) in distro_efi_read_bootflow_net()
381 if (bflow->buf) { in distro_efi_boot()
[all …]
A Dbootmeth_extlinux.c83 membuff_init(&mb, bflow->buf, bflow->size); in extlinux_fill_info()
84 membuff_putraw(&mb, bflow->size, true, &data); in extlinux_fill_info()
91 bflow->os_name = strdup(p); in extlinux_fill_info()
92 if (!bflow->os_name) in extlinux_fill_info()
115 if (bflow->blk && !bflow->part) in extlinux_read_bootflow()
120 desc = bflow->blk ? dev_get_uclass_plat(bflow->blk) : NULL; in extlinux_read_bootflow()
128 size = bflow->size; in extlinux_read_bootflow()
134 ret = extlinux_fill_info(bflow); in extlinux_read_bootflow()
149 addr = map_to_sysmem(bflow->buf); in extlinux_boot()
151 info.bflow = bflow; in extlinux_boot()
[all …]
A Dbootflow.c419 memset(bflow, '\0', sizeof(*bflow)); in bootflow_init()
420 bflow->dev = bootdev; in bootflow_init()
421 bflow->method = meth; in bootflow_init()
427 free(bflow->name); in bootflow_free()
428 free(bflow->subdir); in bootflow_free()
429 free(bflow->fname); in bootflow_free()
430 free(bflow->buf); in bootflow_free()
431 free(bflow->os_name); in bootflow_free()
437 if (bflow->dev) in bootflow_remove()
442 free(bflow); in bootflow_remove()
[all …]
A Dbootmeth-uclass.c71 return ops->boot(dev, bflow); in bootmeth_boot()
279 free(bflow->fname); in bootmeth_try_file()
280 bflow->fname = strdup(path); in bootmeth_try_file()
281 if (!bflow->fname) in bootmeth_try_file()
298 bflow->size = size; in bootmeth_try_file()
336 size = bflow->size; in bootmeth_alloc_file()
341 ret = alloc_file(bflow->fname, bflow->size, &buf); in bootmeth_alloc_file()
346 bflow->buf = buf; in bootmeth_alloc_file()
363 if (bflow->blk) in bootmeth_alloc_other()
366 ret = setup_fs(bflow, desc); in bootmeth_alloc_other()
[all …]
A Dbootmeth_pxe.c58 struct bootflow *bflow) in extlinux_pxe_read_bootflow() argument
78 bflow->size = size; in extlinux_pxe_read_bootflow()
90 bflow->subdir[path_len] = '\0'; in extlinux_pxe_read_bootflow()
94 bflow->subdir ? bflow->subdir : "", EXTLINUX_FNAME); in extlinux_pxe_read_bootflow()
96 bflow->fname = strdup(fname); in extlinux_pxe_read_bootflow()
97 if (!bflow->fname) in extlinux_pxe_read_bootflow()
100 bflow->state = BOOTFLOWST_READY; in extlinux_pxe_read_bootflow()
107 bflow->buf = buf; in extlinux_pxe_read_bootflow()
146 addr = map_to_sysmem(bflow->buf); in extlinux_pxe_boot()
148 info.bflow = bflow; in extlinux_pxe_boot()
[all …]
A Dvbe_simple_fw.c44 struct udevice *meth = bflow->method; in vbe_simple_read_bootflow_fw()
143 if (!bflow->name) in vbe_simple_read_bootflow_fw()
145 bflow->blk = blk; in vbe_simple_read_bootflow_fw()
147 bflow->size = len; in vbe_simple_read_bootflow_fw()
157 struct bootflow bflow; in simple_load_from_image() local
184 bootflow_init(&bflow, bdev, meth); in simple_load_from_image()
192 spl_image->arg = bflow.buf; in simple_load_from_image()
193 spl_image->size = bflow.size; in simple_load_from_image()
194 log_debug("Image: %s at %p size %x\n", bflow.name, bflow.buf, in simple_load_from_image()
195 bflow.size); in simple_load_from_image()
[all …]
A Dbootmeth_qfw.c32 static int qfw_read_bootflow(struct udevice *dev, struct bootflow *bflow) in qfw_read_bootflow() argument
34 struct udevice *qfw_dev = dev_get_parent(bflow->dev); in qfw_read_bootflow()
41 bflow->name = strdup("qfw"); in qfw_read_bootflow()
42 if (!bflow->name) in qfw_read_bootflow()
50 bflow->state = BOOTFLOWST_READY; in qfw_read_bootflow()
55 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 Dbootflow_menu.c38 struct bootflow *bflow; in bootflow_menu_new() local
79 ret = bootflow_next_glob(&bflow), i++) { in bootflow_menu_new()
84 if (bflow->state != BOOTFLOWST_READY) in bootflow_menu_new()
98 add_gap = last_bootdev != bflow->dev; in bootflow_menu_new()
99 last_bootdev = bflow->dev; in bootflow_menu_new()
105 bflow->os_name ? bflow->os_name : in bootflow_menu_new()
106 bflow->name, NULL); in bootflow_menu_new()
110 if (bflow->logo) { in bootflow_menu_new()
113 bflow->logo, NULL); in bootflow_menu_new()
265 struct bootflow *bflow; in bootflow_menu_run() local
[all …]
A Dbootdev-uclass.c42 assert(bflow->dev); in bootdev_add_bootflow()
47 new = malloc(sizeof(*bflow)); in bootdev_add_bootflow()
50 memcpy(new, bflow, sizeof(*bflow)); in bootdev_add_bootflow()
53 if (bflow->dev) { in bootdev_add_bootflow()
124 bflow->blk = blk; in bootdev_find_in_blk()
131 if (!bflow->name) in bootdev_find_in_blk()
134 bflow->part = iter->part; in bootdev_find_in_blk()
193 bflow->blk = blk; in bootdev_find_in_blk()
197 ret = bootmeth_read_bootflow(bflow->method, bflow); in bootdev_find_in_blk()
572 struct bootflow *bflow; in bootdev_clear_bootflows() local
[all …]
A Dbootmeth_sandbox.c22 static int sandbox_read_bootflow(struct udevice *dev, struct bootflow *bflow) in sandbox_read_bootflow() argument
25 bflow->state = BOOTFLOWST_READY; in sandbox_read_bootflow()
30 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 Dbootmeth_efi_mgr.c46 static int efi_mgr_read_bootflow(struct udevice *dev, struct bootflow *bflow) in efi_mgr_read_bootflow() argument
51 bflow->state = BOOTFLOWST_READY; in efi_mgr_read_bootflow()
60 static int efi_mgr_read_file(struct udevice *dev, struct bootflow *bflow, in efi_mgr_read_file() argument
68 static int efi_mgr_boot(struct udevice *dev, struct bootflow *bflow) in efi_mgr_boot() argument
A Dbootstd-uclass.c47 struct bootflow *bflow; in bootstd_clear_glob_() local
49 bflow = list_first_entry(&priv->glob_head, struct bootflow, in bootstd_clear_glob_()
51 bootflow_remove(bflow); in bootstd_clear_glob_()
A Dvbe_simple.c147 static int vbe_simple_read_bootflow(struct udevice *dev, struct bootflow *bflow) in vbe_simple_read_bootflow() argument
153 ret = vbe_simple_read_bootflow_fw(dev, bflow); in vbe_simple_read_bootflow()
163 static int vbe_simple_read_file(struct udevice *dev, struct bootflow *bflow, in vbe_simple_read_file() argument
169 ret = bootmeth_common_read_file(dev, bflow, file_path, addr, in vbe_simple_read_file()
/u-boot/include/
A Dbootmeth.h88 int (*read_bootflow)(struct udevice *dev, struct bootflow *bflow);
103 int (*set_bootflow)(struct udevice *dev, struct bootflow *bflow,
120 int (*read_file)(struct udevice *dev, struct bootflow *bflow,
134 int (*boot)(struct udevice *dev, struct bootflow *bflow);
190 int bootmeth_read_bootflow(struct udevice *dev, struct bootflow *bflow);
206 int bootmeth_set_bootflow(struct udevice *dev, struct bootflow *bflow,
223 int bootmeth_read_file(struct udevice *dev, struct bootflow *bflow,
235 int bootmeth_boot(struct udevice *dev, struct bootflow *bflow);
282 int bootmeth_try_file(struct bootflow *bflow, struct blk_desc *desc,
314 int bootmeth_alloc_other(struct bootflow *bflow, const char *fname,
[all …]
A Dbootflow.h241 void bootflow_init(struct bootflow *bflow, struct udevice *bootdev,
292 struct bootflow *bflow);
305 int bootflow_scan_next(struct bootflow_iter *iter, struct bootflow *bflow);
335 void bootflow_free(struct bootflow *bflow);
347 int bootflow_boot(struct bootflow *bflow);
357 int bootflow_run_boot(struct bootflow_iter *iter, struct bootflow *bflow);
374 void bootflow_remove(struct bootflow *bflow);
A Dbootdev.h137 struct bootflow *bflow);
153 struct bootflow *bflow);
178 struct bootflow_iter *iter, struct bootflow *bflow);
210 int bootdev_add_bootflow(struct bootflow *bflow);
A Dextlinux.h20 struct bootflow *bflow; member
/u-boot/fs/sandbox/
A Dhost_bootdev.c17 struct bootflow *bflow) in host_get_bootflow() argument
24 bflow->name = strdup(dev->name); in host_get_bootflow()
25 if (!bflow->name) in host_get_bootflow()
28 ret = bootmeth_check(bflow->method, iter); in host_get_bootflow()
32 bflow->state = BOOTFLOWST_MEDIA; in host_get_bootflow()
33 bflow->fs_type = FS_TYPE_SANDBOX; in host_get_bootflow()
35 ret = bootmeth_read_bootflow(bflow->method, bflow); in host_get_bootflow()
/u-boot/test/boot/
A Dbootflow.c273 struct bootflow bflow; in bootflow_iter() local
286 ut_asserteq(0, bflow.err); in bootflow_iter()
302 ut_asserteq(0, bflow.err); in bootflow_iter()
304 bootflow_free(&bflow); in bootflow_iter()
313 ut_asserteq(0, bflow.err); in bootflow_iter()
315 bootflow_free(&bflow); in bootflow_iter()
325 bootflow_free(&bflow); in bootflow_iter()
336 bootflow_free(&bflow); in bootflow_iter()
346 bootflow_free(&bflow); in bootflow_iter()
357 bootflow_free(&bflow); in bootflow_iter()
[all …]
A Dbootdev.c197 struct bootflow bflow; in bootdev_test_order() local
232 struct bootflow bflow; in bootdev_test_order_default() local
260 struct bootflow bflow; in bootdev_test_prio() local
293 &bflow)); in bootdev_test_prio()
424 struct bootflow bflow; in bootdev_test_hunt_scan() local
443 struct bootflow bflow; in bootdev_test_bootable() local
447 memset(&bflow, '\0', sizeof(bflow)); in bootdev_test_bootable()
560 struct bootflow bflow; in bootdev_test_next_label() local
570 memset(&bflow, '\0', sizeof(bflow)); in bootdev_test_next_label()
638 struct bootflow bflow; in bootdev_test_next_prio() local
[all …]
/u-boot/net/
A Deth_bootdev.c24 struct bootflow *bflow) in eth_get_bootflow() argument
34 ret = bootmeth_check(bflow->method, iter); in eth_get_bootflow()
44 bflow->name = strdup(name); in eth_get_bootflow()
45 if (!bflow->name) in eth_get_bootflow()
50 bflow->method->name); in eth_get_bootflow()
51 ret = bootmeth_read_bootflow(bflow->method, bflow); in eth_get_bootflow()
/u-boot/drivers/mtd/spi/
A Dsf_bootdev.c18 struct bootflow *bflow) in sf_get_bootflow() argument
41 bflow->state = BOOTFLOWST_MEDIA; in sf_get_bootflow()
43 ret = bootmeth_set_bootflow(bflow->method, bflow, buf, size); in sf_get_bootflow()

Completed in 40 milliseconds

12