Lines Matching refs:ret

115 	int ret;  in bootmeth_setup_iter_order()  local
117 ret = bootstd_get_priv(&std); in bootmeth_setup_iter_order()
118 if (ret) in bootmeth_setup_iter_order()
119 return ret; in bootmeth_setup_iter_order()
140 ret = log_msg_ret("glob", -EPERM); in bootmeth_setup_iter_order()
152 ret = device_probe(dev); in bootmeth_setup_iter_order()
153 if (ret) { in bootmeth_setup_iter_order()
154 ret = log_msg_ret("probe", ret); in bootmeth_setup_iter_order()
188 ret = uclass_get_device_by_seq(UCLASS_BOOTMETH, in bootmeth_setup_iter_order()
190 if (ret) in bootmeth_setup_iter_order()
203 ret = log_msg_ret("count2", -ENOENT); in bootmeth_setup_iter_order()
219 return ret; in bootmeth_setup_iter_order()
226 int count, ret, i, len; in bootmeth_set_order() local
229 ret = bootstd_get_priv(&std); in bootmeth_set_order()
230 if (ret) in bootmeth_set_order()
231 return ret; in bootmeth_set_order()
254 ret = uclass_find_device_by_namelen(UCLASS_BOOTMETH, s, len, in bootmeth_set_order()
256 if (ret) { in bootmeth_set_order()
259 return ret; in bootmeth_set_order()
273 int ret; in bootmeth_set_property() local
280 ret = uclass_find_device_by_namelen(UCLASS_BOOTMETH, name, len, in bootmeth_set_property()
282 if (ret) { in bootmeth_set_property()
284 return ret; in bootmeth_set_property()
298 int ret; in bootmeth_setup_fs() local
301 ret = fs_set_blk_dev_with_part(desc, bflow->part); in bootmeth_setup_fs()
302 if (ret) in bootmeth_setup_fs()
303 return log_msg_ret("set", ret); in bootmeth_setup_fs()
316 int ret, ret2; in bootmeth_try_file() local
329 ret = fs_size(path, &size); in bootmeth_try_file()
330 log_debug(" %s - err=%d\n", path, ret); in bootmeth_try_file()
337 if (ret) in bootmeth_try_file()
338 return log_msg_ret("size", ret); in bootmeth_try_file()
352 int ret; in bootmeth_alloc_file() local
359 ret = fs_read_alloc(bflow->fname, bflow->size, align, &buf); in bootmeth_alloc_file()
360 if (ret) in bootmeth_alloc_file()
361 return log_msg_ret("all", ret); in bootmeth_alloc_file()
383 int ret; in bootmeth_alloc_other() local
391 ret = bootmeth_setup_fs(bflow, desc); in bootmeth_alloc_other()
392 if (ret) in bootmeth_alloc_other()
393 return log_msg_ret("fs", ret); in bootmeth_alloc_other()
395 ret = fs_size(path, &size); in bootmeth_alloc_other()
396 log_debug(" %s - err=%d\n", path, ret); in bootmeth_alloc_other()
398 ret = bootmeth_setup_fs(bflow, desc); in bootmeth_alloc_other()
399 if (ret) in bootmeth_alloc_other()
400 return log_msg_ret("fs", ret); in bootmeth_alloc_other()
402 ret = fs_read_alloc(path, size, 0, &buf); in bootmeth_alloc_other()
403 if (ret) in bootmeth_alloc_other()
404 return log_msg_ret("all", ret); in bootmeth_alloc_other()
423 int ret; in bootmeth_common_read_file() local
428 ret = bootmeth_setup_fs(bflow, desc); in bootmeth_common_read_file()
429 if (ret) in bootmeth_common_read_file()
430 return log_msg_ret("fs", ret); in bootmeth_common_read_file()
432 ret = fs_size(file_path, &size); in bootmeth_common_read_file()
433 if (ret) in bootmeth_common_read_file()
434 return log_msg_ret("size", ret); in bootmeth_common_read_file()
438 ret = bootmeth_setup_fs(bflow, desc); in bootmeth_common_read_file()
439 if (ret) in bootmeth_common_read_file()
440 return log_msg_ret("fs", ret); in bootmeth_common_read_file()
442 ret = fs_read(file_path, addr, 0, 0, &len_read); in bootmeth_common_read_file()
443 if (ret) in bootmeth_common_read_file()
444 return ret; in bootmeth_common_read_file()
462 int ret; in on_bootmeths() local
467 ret = bootmeth_set_order(value); in on_bootmeths()
468 if (ret) in on_bootmeths()