Lines Matching defs:cb_fn

143 	req->cb_fn(req->cb_arg, lvol, lvolerrno);
148 spdk_lvol_open(struct spdk_lvol *lvol, spdk_lvol_op_with_handle_complete cb_fn, void *cb_arg)
153 assert(cb_fn != NULL);
157 cb_fn(cb_arg, NULL, -ENODEV);
163 cb_fn(cb_arg, lvol, -EBUSY);
169 cb_fn(cb_arg, lvol, 0);
176 cb_fn(cb_arg, NULL, -ENOMEM);
180 req->cb_fn = cb_fn;
195 req->cb_fn(req->cb_arg, NULL, req->lvserrno);
215 req->cb_fn(req->cb_arg, lvs, req->lvserrno);
403 req->cb_fn(req->cb_arg, NULL, lvolerrno);
424 spdk_lvs_op_with_handle_complete cb_fn, void *cb_arg)
430 assert(cb_fn != NULL);
434 cb_fn(cb_arg, NULL, -ENODEV);
442 cb_fn(cb_arg, NULL, -EINVAL);
450 cb_fn(cb_arg, NULL, -ENOMEM);
458 cb_fn(cb_arg, NULL, -ENOMEM);
461 req->cb_fn = cb_fn;
478 spdk_lvs_load(struct spdk_bs_dev *bs_dev, spdk_lvs_op_with_handle_complete cb_fn, void *cb_arg)
480 lvs_load(bs_dev, NULL, cb_fn, cb_arg);
485 spdk_lvs_op_with_handle_complete cb_fn, void *cb_arg)
487 lvs_load(bs_dev, opts, cb_fn, cb_arg);
498 req->cb_fn(req->cb_arg, NULL, lvolerrno);
516 req->cb_fn(req->cb_arg, lvs, lvolerrno);
601 lvs_req->cb_fn(lvs_req->cb_arg, NULL, lvserrno);
681 spdk_lvs_op_with_handle_complete cb_fn, void *cb_arg)
745 assert(cb_fn != NULL);
746 lvs_req->cb_fn = cb_fn;
779 req->cb_fn(req->cb_arg, req->lvserrno);
822 spdk_lvs_op_complete cb_fn, void *cb_arg)
830 cb_fn(cb_arg, 0);
840 cb_fn(cb_arg, -EEXIST);
849 cb_fn(cb_arg, -ENOMEM);
854 req->cb_fn = cb_fn;
866 assert(lvs_req->cb_fn != NULL);
867 lvs_req->cb_fn(lvs_req->cb_arg, lvserrno);
872 spdk_lvs_unload(struct spdk_lvol_store *lvs, spdk_lvs_op_complete cb_fn,
886 cb_fn(cb_arg, -EBUSY);
890 cb_fn(cb_arg, -EBUSY);
907 lvs_req->cb_fn = cb_fn;
923 assert(lvs_req->cb_fn != NULL);
924 lvs_req->cb_fn(lvs_req->cb_arg, lvserrno);
942 spdk_lvs_destroy(struct spdk_lvol_store *lvs, spdk_lvs_op_complete cb_fn,
956 cb_fn(cb_arg, -EBUSY);
960 cb_fn(cb_arg, -EBUSY);
975 lvs_req->cb_fn = cb_fn;
1002 req->cb_fn(req->cb_arg, lvolerrno);
1046 req->cb_fn(req->cb_arg, lvolerrno);
1060 req->cb_fn(req->cb_arg, NULL, lvolerrno);
1072 assert(req->cb_fn != NULL);
1073 req->cb_fn(req->cb_arg, req->lvol, lvolerrno);
1087 assert(req->cb_fn != NULL);
1088 req->cb_fn(req->cb_arg, NULL, lvolerrno);
1176 bool thin_provision, enum lvol_clear_method clear_method, spdk_lvol_op_with_handle_complete cb_fn,
1203 req->cb_fn = cb_fn;
1231 spdk_lvol_op_with_handle_complete cb_fn, void *cb_arg)
1266 req->cb_fn = cb_fn;
1295 spdk_lvol_op_with_handle_complete cb_fn, void *cb_arg)
1307 cb_fn(cb_arg, NULL, -EINVAL);
1315 cb_fn(cb_arg, NULL, -EINVAL);
1321 cb_fn(cb_arg, NULL, rc);
1328 cb_fn(cb_arg, NULL, -ENOMEM);
1337 cb_fn(cb_arg, NULL, -ENOMEM);
1347 req->cb_fn = cb_fn;
1356 spdk_lvol_op_with_handle_complete cb_fn, void *cb_arg)
1368 cb_fn(cb_arg, NULL, -EINVAL);
1376 cb_fn(cb_arg, NULL, -EINVAL);
1382 cb_fn(cb_arg, NULL, rc);
1389 cb_fn(cb_arg, NULL, -ENOMEM);
1397 cb_fn(cb_arg, NULL, -ENOMEM);
1406 req->cb_fn = cb_fn;
1419 req->cb_fn(req->cb_arg, lvolerrno);
1430 req->cb_fn(req->cb_arg, bserrno);
1440 spdk_lvol_op_complete cb_fn, void *cb_arg)
1450 cb_fn(cb_arg, -ENOMEM);
1453 req->cb_fn = cb_fn;
1465 req->cb_fn(req->cb_arg, lvolerrno);
1470 spdk_lvol_set_read_only(struct spdk_lvol *lvol, spdk_lvol_op_complete cb_fn, void *cb_arg)
1477 cb_fn(cb_arg, -ENOMEM);
1480 req->cb_fn = cb_fn;
1498 req->cb_fn(req->cb_arg, lvolerrno);
1504 spdk_lvol_op_complete cb_fn, void *cb_arg)
1514 cb_fn(cb_arg, 0);
1522 cb_fn(cb_arg, -EEXIST);
1530 cb_fn(cb_arg, -ENOMEM);
1533 req->cb_fn = cb_fn;
1541 cb_fn(cb_arg, rc);
1549 spdk_lvol_destroy(struct spdk_lvol *lvol, spdk_lvol_op_complete cb_fn, void *cb_arg)
1558 assert(cb_fn != NULL);
1562 cb_fn(cb_arg, -ENODEV);
1570 cb_fn(cb_arg, -EBUSY);
1577 cb_fn(cb_arg, -ENOMEM);
1581 req->cb_fn = cb_fn;
1594 cb_fn(cb_arg, -EBUSY);
1604 spdk_lvol_close(struct spdk_lvol *lvol, spdk_lvol_op_complete cb_fn, void *cb_arg)
1608 assert(cb_fn != NULL);
1612 cb_fn(cb_arg, -ENODEV);
1618 cb_fn(cb_arg, 0);
1621 cb_fn(cb_arg, -EINVAL);
1628 cb_fn(cb_arg, -ENOMEM);
1632 req->cb_fn = cb_fn;
1658 req->cb_fn(req->cb_arg, lvolerrno);
1663 spdk_lvol_inflate(struct spdk_lvol *lvol, spdk_lvol_op_complete cb_fn, void *cb_arg)
1668 assert(cb_fn != NULL);
1672 cb_fn(cb_arg, -ENODEV);
1679 cb_fn(cb_arg, -ENOMEM);
1683 req->cb_fn = cb_fn;
1689 cb_fn(cb_arg, -ENOMEM);
1699 spdk_lvol_decouple_parent(struct spdk_lvol *lvol, spdk_lvol_op_complete cb_fn, void *cb_arg)
1704 assert(cb_fn != NULL);
1708 cb_fn(cb_arg, -ENODEV);
1715 cb_fn(cb_arg, -ENOMEM);
1719 req->cb_fn = cb_fn;
1725 cb_fn(cb_arg, -ENOMEM);
1739 if (req->cb_fn) {
1740 req->cb_fn(req->cb_arg, lvolerrno);
1747 spdk_lvs_grow_live(struct spdk_lvol_store *lvs, spdk_lvs_op_complete cb_fn, void *cb_arg)
1754 if (cb_fn) {
1755 cb_fn(cb_arg, -ENOMEM);
1760 req->cb_fn = cb_fn;
1768 spdk_lvs_grow(struct spdk_bs_dev *bs_dev, spdk_lvs_op_with_handle_complete cb_fn, void *cb_arg)
1773 assert(cb_fn != NULL);
1777 cb_fn(cb_arg, NULL, -ENODEV);
1784 cb_fn(cb_arg, NULL, -ENOMEM);
1792 cb_fn(cb_arg, NULL, -ENOMEM);
1795 req->cb_fn = cb_fn;
1990 spdk_lvol_op_with_handle_complete cb_fn;
2005 req->cb_fn(req->cb_arg, lvol, bserrno);
2011 spdk_lvol_op_with_handle_complete cb_fn, void *cb_arg)
2042 cb_fn(cb_arg, lvol, -ENOMEM);
2063 cb_fn(cb_arg, lvol, rc);
2069 req->cb_fn = cb_fn;
2096 spdk_lvol_op_with_handle_complete cb_fn, void *cb_arg)
2129 lvs_esnap_degraded_hotplug(found, cb_fn, cb_arg);
2137 spdk_lvol_iter_immediate_clones(struct spdk_lvol *lvol, spdk_lvol_iter_cb cb_fn, void *cb_arg)
2174 rc = cb_fn(cb_arg, clone);
2255 req->cb_fn(req->cb_arg, lvolerrno);
2262 spdk_lvol_op_complete cb_fn, void *cb_arg)
2268 assert(cb_fn != NULL);
2289 req->cb_fn = cb_fn;
2321 req->cb_fn(req->cb_arg, lvolerrno);
2327 spdk_lvol_op_complete cb_fn, void *cb_arg)
2332 assert(cb_fn != NULL);
2336 cb_fn(cb_arg, -EINVAL);
2342 cb_fn(cb_arg, -EINVAL);
2349 cb_fn(cb_arg, -ENOMEM);
2354 req->cb_fn = cb_fn;
2374 req->cb_fn(req->cb_arg, lvolerrno);
2380 spdk_lvol_op_complete cb_fn, void *cb_arg)
2387 assert(cb_fn != NULL);
2391 cb_fn(cb_arg, -EINVAL);
2397 cb_fn(cb_arg, -EINVAL);
2404 cb_fn(cb_arg, -EINVAL);
2410 cb_fn(cb_arg, rc);
2417 cb_fn(cb_arg, -ENOMEM);
2423 req->cb_fn = cb_fn;