| /boot/ |
| A D | bootstd-uclass.c | 28 struct bootstd_priv *priv = dev_get_priv(dev); in bootstd_of_to_plat() 35 dev_read_string_list(dev, "bootdev-order", in bootstd_of_to_plat() 91 if (from->dev == dev) in bootstd_clear_bootflows_for_bootdev() 142 struct udevice *dev; in bootstd_try_priv() local 145 if (!dev || !device_active(dev)) in bootstd_try_priv() 148 return dev_get_priv(dev); in bootstd_try_priv() 153 struct udevice *dev; in bootstd_get_priv() local 159 *stdp = dev_get_priv(dev); in bootstd_get_priv() 178 struct udevice *dev, *bootstd; in dm_scan_other() local 196 if (dev) in dm_scan_other() [all …]
|
| A D | bootdev-uclass.c | 88 *devp = dev; in bootdev_bind() 319 dev->name); in bootdev_get_sibling_blk() 517 *devp = dev; in bootdev_find_by_any() 612 if (!dev) in bootdev_next_label() 614 *devp = dev; in bootdev_next_label() 628 dev ? dev->name : "none"); in bootdev_next_prio() 635 if (!dev) in bootdev_next_prio() 654 if (!dev) { in bootdev_next_prio() 680 *devp = dev; in bootdev_next_prio() 770 if (!dev) in bootdev_setup_iter() [all …]
|
| A D | vbe.c | 22 static bool is_vbe(struct udevice *dev) in is_vbe() argument 24 return !strncmp("vbe", dev->driver->name, 3); in is_vbe() 51 struct udevice *dev; in vbe_list() local 62 for (ret = vbe_find_first_device(&dev); dev; in vbe_list() 63 ret = vbe_find_next_device(&dev)) { in vbe_list() 67 std->vbe_bootmeth == dev ? "*" : "", dev->name, in vbe_list() 68 dev->driver->name, plat->desc); in vbe_list() 76 int vbe_select(struct udevice *dev) in vbe_select() argument 84 std->vbe_bootmeth = dev; in vbe_select() 91 struct udevice *dev; in vbe_find_by_any() local [all …]
|
| A D | bootflow.c | 136 dev ? dev->name : "(none)", method_flags); in bootflow_iter_set_dev() 137 iter->dev = dev; in bootflow_iter_set_dev() 147 if (dev) in bootflow_iter_set_dev() 177 *devp = dev; in scan_next_in_uclass() 251 dev = iter->dev; in iter_incr() 259 if (!dev) { in iter_incr() 275 dev ? dev->name : "(none)"); in iter_incr() 276 } while (dev && device_get_uclass_id(dev) != in iter_incr() 297 dev ? dev->name : "<none>"); in iter_incr() 312 dev ? dev->name : "none"); in iter_incr() [all …]
|
| A D | vbe_simple.c | 45 struct simple_priv *priv = dev_get_priv(dev); in vbe_simple_read_state() 71 ret = vbe_simple_read_state(dev, &state); in vbe_simple_get_state_desc() 90 ret = vbe_simple_read_bootflow_fw(dev, bflow); in vbe_simple_read_bootflow() 123 static int bootmeth_vbe_simple_probe(struct udevice *dev) in bootmeth_vbe_simple_probe() argument 125 struct simple_priv *priv = dev_get_priv(dev); in bootmeth_vbe_simple_probe() 128 if (dev_read_u32(dev, "area-start", &priv->area_start) || in bootmeth_vbe_simple_probe() 129 dev_read_u32(dev, "area-size", &priv->area_size) || in bootmeth_vbe_simple_probe() 133 dev_read_u32(dev, "state-size", &priv->state_size)) in bootmeth_vbe_simple_probe() 135 dev_read_u32(dev, "skip-offset", &priv->skip_offset); in bootmeth_vbe_simple_probe() 136 priv->storage = strdup(dev_read_string(dev, "storage")); in bootmeth_vbe_simple_probe() [all …]
|
| A D | bootmeth-uclass.c | 41 return ops->check(dev, iter); in bootmeth_check() 84 return ops->boot(dev, bflow); in bootmeth_boot() 152 ret = device_probe(dev); in bootmeth_setup_iter_order() 168 struct udevice *dev; in bootmeth_setup_iter_order() local 189 i, &dev); in bootmeth_setup_iter_order() 197 order[upto++] = dev; in bootmeth_setup_iter_order() 250 struct udevice *dev; in bootmeth_set_order() local 255 &dev); in bootmeth_set_order() 261 order[i] = dev; in bootmeth_set_order() 275 struct udevice *dev; in bootmeth_set_property() local [all …]
|
| A D | vbe_simple_os.c | 55 struct udevice *dev; in bootmeth_vbe_simple_ft_fixup() local 62 for (vbe_find_first_device(&dev); dev; vbe_find_next_device(&dev)) { in bootmeth_vbe_simple_ft_fixup() 67 if (strcmp("vbe_simple", dev->driver->name)) in bootmeth_vbe_simple_ft_fixup() 75 ret = device_probe(dev); in bootmeth_vbe_simple_ft_fixup() 82 dev->name, ret); in bootmeth_vbe_simple_ft_fixup() 90 ret = ofnode_add_subnode(node, dev->name, &subnode); in bootmeth_vbe_simple_ft_fixup() 95 log_debug("Fixing up: %s\n", dev->name); in bootmeth_vbe_simple_ft_fixup() 96 ret = ofnode_copy_props(subnode, dev_ofnode(dev)); in bootmeth_vbe_simple_ft_fixup() 100 ret = vbe_simple_read_state(dev, &state); in bootmeth_vbe_simple_ft_fixup()
|
| A D | bootmeth_efi_mgr.c | 29 void sandbox_set_fake_efi_mgr_dev(struct udevice *dev, bool fake_dev) in sandbox_set_fake_efi_mgr_dev() argument 31 struct efi_mgr_priv *priv = dev_get_priv(dev); in sandbox_set_fake_efi_mgr_dev() 36 static int efi_mgr_check(struct udevice *dev, struct bootflow_iter *iter) in efi_mgr_check() argument 48 static int efi_mgr_read_bootflow(struct udevice *dev, struct bootflow *bflow) in efi_mgr_read_bootflow() argument 50 struct efi_mgr_priv *priv = dev_get_priv(dev); 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 95 static int bootmeth_efi_mgr_bind(struct udevice *dev) in bootmeth_efi_mgr_bind() argument 97 struct bootmeth_uc_plat *plat = dev_get_uclass_plat(dev); in bootmeth_efi_mgr_bind()
|
| A D | bootmeth_qfw.c | 19 static int qfw_check(struct udevice *dev, struct bootflow_iter *iter) in qfw_check() argument 21 const struct udevice *media = dev_get_parent(iter->dev); in qfw_check() 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() 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 75 static int qfw_bootmeth_bind(struct udevice *dev) in qfw_bootmeth_bind() argument 77 struct bootmeth_uc_plat *plat = dev_get_uclass_plat(dev); in qfw_bootmeth_bind()
|
| A D | bootmeth_extlinux.c | 58 static int extlinux_get_state_desc(struct udevice *dev, char *buf, int maxsize) in extlinux_get_state_desc() argument 83 ret = bootmeth_read_file(info->dev, info->bflow, file_path, addr, in extlinux_getfile() 91 static int extlinux_check(struct udevice *dev, struct bootflow_iter *iter) in extlinux_check() argument 135 static int extlinux_read_bootflow(struct udevice *dev, struct bootflow *bflow) in extlinux_read_bootflow() argument 176 static int extlinux_boot(struct udevice *dev, struct bootflow *bflow) in extlinux_boot() argument 186 info.dev = dev; in extlinux_boot() 189 plat = dev_get_plat(dev); in extlinux_boot() 203 static int extlinux_set_property(struct udevice *dev, const char *property, const char *value) in extlinux_set_property() argument 208 plat = dev_get_plat(dev); in extlinux_set_property() 235 static int extlinux_bootmeth_bind(struct udevice *dev) in extlinux_bootmeth_bind() argument [all …]
|
| A D | bootmeth_pxe.c | 38 ret = bootmeth_read_file(info->dev, info->bflow, file_path, addr, in extlinux_pxe_getfile() 46 static int extlinux_pxe_check(struct udevice *dev, struct bootflow_iter *iter) in extlinux_pxe_check() argument 61 static int extlinux_pxe_read_bootflow(struct udevice *dev, in extlinux_pxe_read_bootflow() argument 120 static int extlinux_pxe_read_file(struct udevice *dev, struct bootflow *bflow, in extlinux_pxe_read_file() argument 125 struct pxe_context *ctx = dev_get_priv(dev); in extlinux_pxe_read_file() 149 static int extlinux_pxe_boot(struct udevice *dev, struct bootflow *bflow) in extlinux_pxe_boot() argument 151 struct pxe_context *ctx = dev_get_priv(dev); in extlinux_pxe_boot() 158 info.dev = dev; in extlinux_pxe_boot() 173 static int extlinux_bootmeth_pxe_bind(struct udevice *dev) in extlinux_bootmeth_pxe_bind() argument 175 struct bootmeth_uc_plat *plat = dev_get_uclass_plat(dev); in extlinux_bootmeth_pxe_bind()
|
| A D | bootmeth_sandbox.c | 16 static int sandbox_check(struct udevice *dev, struct bootflow_iter *iter) in sandbox_check() argument 21 static int sandbox_read_bootflow(struct udevice *dev, struct bootflow *bflow) in sandbox_read_bootflow() argument 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 42 static int sandbox_bootmeth_bind(struct udevice *dev) in sandbox_bootmeth_bind() argument 44 struct bootmeth_uc_plat *plat = dev_get_uclass_plat(dev); in sandbox_bootmeth_bind()
|
| A D | bootmeth_efi.c | 50 const struct udevice *media = dev_get_parent(bflow->dev); in bootmeth_uses_network() 75 static int distro_efi_check(struct udevice *dev, struct bootflow_iter *iter) in distro_efi_check() argument 99 static int distro_efi_try_bootflow_files(struct udevice *dev, in distro_efi_try_bootflow_files() argument 139 ret = bootmeth_common_read_file(dev, bflow, fname, in distro_efi_try_bootflow_files() 253 static int distro_efi_read_bootflow(struct udevice *dev, struct bootflow *bflow) in distro_efi_read_bootflow() argument 257 log_debug("dev='%s', part=%d\n", bflow->dev->name, bflow->part); in distro_efi_read_bootflow() 271 ret = distro_efi_try_bootflow_files(dev, bflow); in distro_efi_read_bootflow() 279 static int distro_efi_boot(struct udevice *dev, struct bootflow *bflow) in distro_efi_boot() argument 305 static int distro_bootmeth_efi_bind(struct udevice *dev) in distro_bootmeth_efi_bind() argument 307 struct bootmeth_uc_plat *plat = dev_get_uclass_plat(dev); in distro_bootmeth_efi_bind()
|
| A D | bootmeth_script.c | 26 static int script_check(struct udevice *dev, struct bootflow_iter *iter) in script_check() argument 151 static int script_read_bootflow(struct udevice *dev, struct bootflow *bflow) in script_read_bootflow() argument 153 const struct udevice *media = dev_get_parent(bflow->dev); in script_read_bootflow() 176 static int script_set_bootflow(struct udevice *dev, struct bootflow *bflow, in script_set_bootflow() argument 187 static int script_boot(struct udevice *dev, struct bootflow *bflow) in script_boot() argument 218 const struct udevice *media = dev_get_parent(bflow->dev); in script_boot() 242 static int script_bootmeth_bind(struct udevice *dev) in script_bootmeth_bind() argument 244 struct bootmeth_uc_plat *plat = dev_get_uclass_plat(dev); in script_bootmeth_bind()
|
| A D | fdt_simplefb.c | 27 struct udevice *dev; in fdt_simplefb_configure_node() local 42 ret = uclass_first_device_err(UCLASS_VIDEO, &dev); in fdt_simplefb_configure_node() 45 uc_priv = dev_get_uclass_priv(dev); in fdt_simplefb_configure_node() 46 plat = dev_get_uclass_plat(dev); in fdt_simplefb_configure_node()
|
| A D | prog_boot.c | 22 struct udevice *dev; in show_bootmeths() local 26 uclass_id_foreach_dev(UCLASS_BOOTMETH, dev, uc) in show_bootmeths() 27 printf(" %s", dev->name); in show_bootmeths()
|
| A D | cedit.c | 50 struct udevice *dev; member 108 struct udevice *dev = vid_dev; in cedit_prepare() local 115 ret = expo_set_display(exp, dev); in cedit_prepare() 135 vid_priv = dev_get_uclass_priv(dev); in cedit_prepare() 202 struct udevice *dev; in cedit_run() local 207 ret = uclass_first_device_err(UCLASS_VIDEO, &dev); in cedit_run() 210 vid_priv = dev_get_uclass_priv(dev); in cedit_run() 212 ret = cedit_prepare(exp, dev, &scn); in cedit_run() 771 ret = rtc_write8(dev, i, priv.value[i]); in cedit_write_settings_cmos() 818 ret = rtc_read8(priv->dev, offset); in h_read_settings_cmos() [all …]
|
| A D | expo.c | 128 int expo_set_display(struct expo *exp, struct udevice *dev) in expo_set_display() argument 133 ret = device_find_first_child_by_uclass(dev, UCLASS_VIDEO_CONSOLE, in expo_set_display() 138 exp->display = dev; in expo_set_display() 216 struct udevice *dev = exp->display; in expo_render() local 217 struct video_priv *vid_priv = dev_get_uclass_priv(dev); in expo_render() 225 ret = video_fill(dev, colour); in expo_render() 239 video_sync(dev, true); in expo_render()
|
| A D | bootmeth_rauc.c | 68 static int distro_rauc_check(struct udevice *dev, struct bootflow_iter *iter) in distro_rauc_check() argument 122 static int distro_rauc_read_bootflow(struct udevice *dev, struct bootflow *bflow) in distro_rauc_read_bootflow() argument 205 static int distro_rauc_read_file(struct udevice *dev, struct bootflow *bflow, in distro_rauc_read_file() argument 250 bflow->dev->name, bflow->part); in distro_rauc_load_boot_script() 321 static int distro_rauc_boot(struct udevice *dev, struct bootflow *bflow) in distro_rauc_boot() argument 408 static int distro_rauc_bootmeth_bind(struct udevice *dev) in distro_rauc_bootmeth_bind() argument 410 struct bootmeth_uc_plat *plat = dev_get_uclass_plat(dev); in distro_rauc_bootmeth_bind()
|
| A D | bootmeth_cros.c | 89 static int cros_check(struct udevice *dev, struct bootflow_iter *iter) in cros_check() argument 365 static int cros_read_bootflow(struct udevice *dev, struct bootflow *bflow) in cros_read_bootflow() argument 416 static int cros_read_file(struct udevice *dev, struct bootflow *bflow, in cros_read_file() argument 424 static int cros_read_all(struct udevice *dev, struct bootflow *bflow) in cros_read_all() argument 438 static int cros_boot(struct udevice *dev, struct bootflow *bflow) in cros_boot() argument 460 static int cros_bootmeth_bind(struct udevice *dev) in cros_bootmeth_bind() argument 462 struct bootmeth_uc_plat *plat = dev_get_uclass_plat(dev); in cros_bootmeth_bind()
|
| 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() 221 struct udevice *dev; in bootflow_menu_setup() local 230 ret = uclass_first_device_err(UCLASS_VIDEO, &dev); in bootflow_menu_setup() 233 ret = expo_set_display(exp, dev); in bootflow_menu_setup()
|
| A D | scene.c | 482 struct udevice *dev = exp->display; in scene_render_background() local 489 vid_priv = dev_get_uclass_priv(dev); in scene_render_background() 508 video_fill_part(dev, sel->x0 - inset, sel->y0 - inset, in scene_render_background() 547 vid_priv = dev_get_uclass_priv(dev); in scene_txt_render() 561 video_fill_part(dev, x - inset, y, in scene_txt_render() 613 struct udevice *dev = exp->display; in scene_obj_render() local 620 vid_priv = dev_get_uclass_priv(dev); in scene_obj_render() 745 struct udevice *dev; in scene_arrange() local 748 dev = scn->expo->display; in scene_arrange() 749 if (dev) { in scene_arrange() [all …]
|
| A D | vbe_simple.h | 48 int vbe_simple_read_bootflow_fw(struct udevice *dev, struct bootflow *bflow); 57 int vbe_simple_read_state(struct udevice *dev, struct simple_state *state);
|
| A D | vbe_abrec.h | 78 int abrec_read_bootflow_fw(struct udevice *dev, struct bootflow *bflow); 87 int abrec_read_state(struct udevice *dev, struct abrec_state *state);
|
| A D | bootmeth_android.c | 53 static int android_check(struct udevice *dev, struct bootflow_iter *iter) in android_check() argument 211 static int android_read_bootflow(struct udevice *dev, struct bootflow *bflow) in android_read_bootflow() argument 326 static int android_read_file(struct udevice *dev, struct bootflow *bflow, in android_read_file() argument 573 static int android_boot(struct udevice *dev, struct bootflow *bflow) in android_boot() argument 599 static int android_bootmeth_bind(struct udevice *dev) in android_bootmeth_bind() argument 601 struct bootmeth_uc_plat *plat = dev_get_uclass_plat(dev); in android_bootmeth_bind()
|