Lines Matching refs:bflow

39 	struct bootflow *bflow;  in bootdev_first_bootflow()  local
46 bflow = alist_getw(&std->bootflows, 0, struct bootflow); in bootdev_first_bootflow()
47 if (!bflow) in bootdev_first_bootflow()
49 *bflowp = bflow; in bootdev_first_bootflow()
57 struct bootflow *bflow; in bootdev_next_bootflow() local
64 bflow = alist_nextw(&std->bootflows, *bflowp); in bootdev_next_bootflow()
65 if (!bflow) in bootdev_next_bootflow()
67 *bflowp = bflow; in bootdev_next_bootflow()
94 struct bootflow_iter *iter, struct bootflow *bflow) in bootdev_find_in_blk() argument
96 struct bootmeth_uc_plat *plat = dev_get_uclass_plat(bflow->method); in bootdev_find_in_blk()
108 bflow->blk = blk; in bootdev_find_in_blk()
114 bflow->name = strdup(name); in bootdev_find_in_blk()
115 if (!bflow->name) in bootdev_find_in_blk()
118 bflow->part = iter->part; in bootdev_find_in_blk()
120 ret = bootmeth_check(bflow->method, iter); in bootdev_find_in_blk()
141 bflow->state = BOOTFLOWST_MEDIA; in bootdev_find_in_blk()
177 ret = fs_set_blk_dev_with_part(desc, bflow->part); in bootdev_find_in_blk()
178 bflow->state = BOOTFLOWST_PART; in bootdev_find_in_blk()
183 blk->name, bflow->part, in bootdev_find_in_blk()
187 bflow->blk = blk; in bootdev_find_in_blk()
188 bflow->state = BOOTFLOWST_FS; in bootdev_find_in_blk()
191 log_debug("method %s\n", bflow->method->name); in bootdev_find_in_blk()
192 ret = bootmeth_read_bootflow(bflow->method, bflow); in bootdev_find_in_blk()
540 struct bootflow *bflow) in default_get_bootflow() argument
557 ret = bootdev_find_in_blk(dev, blk, iter, bflow); in default_get_bootflow()
565 struct bootflow *bflow) in bootdev_get_bootflow() argument
571 bootflow_init(bflow, dev, iter->method); in bootdev_get_bootflow()
573 return default_get_bootflow(dev, iter, bflow); in bootdev_get_bootflow()
575 return ops->get_bootflow(dev, iter, bflow); in bootdev_get_bootflow()