Lines Matching refs:dev
26 static int bootstd_of_to_plat(struct udevice *dev) in bootstd_of_to_plat() argument
28 struct bootstd_priv *priv = dev_get_priv(dev); in bootstd_of_to_plat()
33 ret = dev_read_string_list(dev, "filename-prefixes", in bootstd_of_to_plat()
35 dev_read_string_list(dev, "bootdev-order", in bootstd_of_to_plat()
38 priv->theme = ofnode_find_subnode(dev_ofnode(dev), "theme"); in bootstd_of_to_plat()
80 int bootstd_clear_bootflows_for_bootdev(struct udevice *dev) in bootstd_clear_bootflows_for_bootdev() argument
91 if (from->dev == dev) in bootstd_clear_bootflows_for_bootdev()
101 static int bootstd_remove(struct udevice *dev) in bootstd_remove() argument
103 struct bootstd_priv *priv = dev_get_priv(dev); in bootstd_remove()
112 const char *const *const bootstd_get_bootdev_order(struct udevice *dev, in bootstd_get_bootdev_order() argument
115 struct bootstd_priv *std = dev_get_priv(dev); in bootstd_get_bootdev_order()
133 const char *const *const bootstd_get_prefixes(struct udevice *dev) in bootstd_get_prefixes() argument
135 struct bootstd_priv *std = dev_get_priv(dev); in bootstd_get_prefixes()
142 struct udevice *dev; in bootstd_try_priv() local
144 dev = uclass_try_first_device(UCLASS_BOOTSTD); in bootstd_try_priv()
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
156 ret = uclass_first_device_err(UCLASS_BOOTSTD, &dev); in bootstd_get_priv()
159 *stdp = dev_get_priv(dev); in bootstd_get_priv()
164 static int bootstd_probe(struct udevice *dev) in bootstd_probe() argument
166 struct bootstd_priv *std = dev_get_priv(dev); in bootstd_probe()
178 struct udevice *dev, *bootstd; in dm_scan_other() local
195 uclass_find_first_device(UCLASS_BOOTMETH, &dev); in dm_scan_other()
196 if (dev) in dm_scan_other()
206 &dev); in dm_scan_other()