Lines Matching refs:blk
111 int bootdev_find_in_blk(struct udevice *dev, struct udevice *blk, in bootdev_find_in_blk() argument
114 struct blk_desc *desc = dev_get_uclass_plat(blk); in bootdev_find_in_blk()
124 bflow->blk = blk; in bootdev_find_in_blk()
190 blk->name, bflow->part, info.sys_ind, in bootdev_find_in_blk()
193 bflow->blk = blk; in bootdev_find_in_blk()
265 int bootdev_setup_sibling_blk(struct udevice *blk, const char *drv_name) in bootdev_setup_sibling_blk() argument
271 len = bootdev_get_suffix_start(blk, ".blk"); in bootdev_setup_sibling_blk()
272 snprintf(dev_name, sizeof(dev_name), "%.*s.%s", len, blk->name, in bootdev_setup_sibling_blk()
275 parent = dev_get_parent(blk); in bootdev_setup_sibling_blk()
302 struct udevice *blk; in bootdev_get_sibling_blk() local
310 ret = device_find_child_by_namelen(parent, dev->name, len, &blk); in bootdev_get_sibling_blk()
316 ret = device_find_child_by_name(parent, dev_name, &blk); in bootdev_get_sibling_blk()
320 ret = device_probe(blk); in bootdev_get_sibling_blk()
323 *blkp = blk; in bootdev_get_sibling_blk()
328 static int bootdev_get_from_blk(struct udevice *blk, struct udevice **bootdevp) in bootdev_get_from_blk() argument
330 struct udevice *parent = dev_get_parent(blk); in bootdev_get_from_blk()
335 if (device_get_uclass_id(blk) != UCLASS_BLK) in bootdev_get_from_blk()
339 len = bootdev_get_suffix_start(blk, ".blk"); in bootdev_get_from_blk()
340 snprintf(dev_name, sizeof(dev_name), "%.*s.%s", len, blk->name, in bootdev_get_from_blk()
433 struct udevice *bdev, *blk; in bootdev_find_by_label() local
447 ret = blk_find_device(id, seq, &blk); in bootdev_find_by_label()
449 log_debug("- get from blk %s\n", blk->name); in bootdev_find_by_label()
450 ret = bootdev_get_from_blk(blk, &bdev); in bootdev_find_by_label()
534 struct udevice *blk; in default_get_bootflow() local
537 ret = bootdev_get_sibling_blk(dev, &blk); in default_get_bootflow()
546 assert(blk); in default_get_bootflow()
547 ret = bootdev_find_in_blk(dev, blk, iter, bflow); in default_get_bootflow()