Lines Matching defs:cb_fn
43 static void _vbdev_lvol_destroy(struct spdk_lvol *lvol, spdk_lvol_op_complete cb_fn, void *cb_arg);
206 req->cb_fn(req->cb_arg, lvs, lvserrno);
215 uint32_t md_page_size, spdk_lvs_op_with_handle_complete cb_fn, void *cb_arg)
287 lvs_req->cb_fn = cb_fn;
303 spdk_lvs_op_with_handle_complete cb_fn, void *cb_arg)
308 num_md_pages_per_cluster_ratio, md_page_size, cb_fn, cb_arg);
326 req->cb_fn(req->cb_arg, lvserrno);
332 spdk_lvs_op_complete cb_fn, void *cb_arg)
341 cb_fn(cb_arg, -ENODEV);
348 cb_fn(cb_arg, -ENOMEM);
351 req->cb_fn = cb_fn;
371 if (req->cb_fn != NULL) {
372 req->cb_fn(req->cb_arg, lvserrno);
437 _vbdev_lvs_remove(struct spdk_lvol_store *lvs, spdk_lvs_op_complete cb_fn, void *cb_arg,
447 if (cb_fn != NULL) {
448 cb_fn(cb_arg, -ENODEV);
456 if (cb_fn != NULL) {
457 cb_fn(cb_arg, -ENOMEM);
464 req->cb_fn = cb_fn;
490 vbdev_lvs_unload(struct spdk_lvol_store *lvs, spdk_lvs_op_complete cb_fn, void *cb_arg)
492 _vbdev_lvs_remove(lvs, cb_fn, cb_arg, false);
496 vbdev_lvs_destruct(struct spdk_lvol_store *lvs, spdk_lvs_op_complete cb_fn, void *cb_arg)
498 _vbdev_lvs_remove(lvs, cb_fn, cb_arg, true);
578 spdk_lvol_op_complete cb_fn;
641 ctx->cb_fn(ctx->cb_arg, bdeverrno);
646 spdk_lvol_destroy(lvol, ctx->cb_fn, ctx->cb_arg);
651 _vbdev_lvol_destroy(struct spdk_lvol *lvol, spdk_lvol_op_complete cb_fn, void *cb_arg)
657 assert(cb_fn != NULL);
660 assert(cb_fn == _vbdev_lvs_remove_lvol_cb ||
668 cb_fn(cb_arg, -EPERM);
674 cb_fn(cb_arg, -ENOMEM);
679 ctx->cb_fn = cb_fn;
691 vbdev_lvol_destroy(struct spdk_lvol *lvol, spdk_lvol_op_complete cb_fn, void *cb_arg)
703 cb_fn(cb_arg, -ENODEV);
707 _vbdev_lvol_destroy(lvol, cb_fn, cb_arg);
1226 req->cb_fn(req->cb_arg, lvol, lvolerrno);
1232 bool thin_provision, enum lvol_clear_method clear_method, spdk_lvol_op_with_handle_complete cb_fn,
1242 req->cb_fn = cb_fn;
1256 spdk_lvol_op_with_handle_complete cb_fn, void *cb_arg)
1262 cb_fn(cb_arg, NULL, -ENOMEM);
1266 req->cb_fn = cb_fn;
1274 spdk_lvol_op_with_handle_complete cb_fn, void *cb_arg)
1280 cb_fn(cb_arg, NULL, -ENOMEM);
1284 req->cb_fn = cb_fn;
1298 spdk_lvol_op_with_handle_complete cb_fn, void *cb_arg)
1309 cb_fn(cb_arg, NULL, -EINVAL);
1316 cb_fn(cb_arg, NULL, rc);
1326 cb_fn(cb_arg, NULL, -ENODEV);
1333 cb_fn(cb_arg, NULL, -ENOMEM);
1337 req->cb_fn = cb_fn;
1345 cb_fn(cb_arg, NULL, rc);
1359 req->cb_fn(req->cb_arg, lvolerrno);
1365 spdk_lvol_op_complete cb_fn, void *cb_arg)
1373 cb_fn(cb_arg, rc);
1379 cb_fn(cb_arg, -ENOMEM);
1382 req->cb_fn = cb_fn;
1412 req->cb_fn(req->cb_arg, lvolerrno);
1417 vbdev_lvol_resize(struct spdk_lvol *lvol, uint64_t sz, spdk_lvol_op_complete cb_fn, void *cb_arg)
1423 cb_fn(cb_arg, -EINVAL);
1431 cb_fn(cb_arg, -ENOMEM);
1435 req->cb_fn = cb_fn;
1453 req->cb_fn(req->cb_arg, lvolerrno);
1458 vbdev_lvol_set_read_only(struct spdk_lvol *lvol, spdk_lvol_op_complete cb_fn, void *cb_arg)
1464 cb_fn(cb_arg, -EINVAL);
1472 cb_fn(cb_arg, -ENOMEM);
1476 req->cb_fn = cb_fn;
1541 req->cb_fn(req->cb_arg, lvserrno);
1705 void (*action)(struct spdk_bs_dev *bs_dev, spdk_lvs_op_with_handle_complete cb_fn, void *cb_arg))
1743 vbdev_lvs_load(struct spdk_bs_dev *bs_dev, spdk_lvs_op_with_handle_complete cb_fn, void *cb_arg)
1749 spdk_lvs_load_ext(bs_dev, &lvs_opts, cb_fn, cb_arg);
1771 req->cb_fn = vbdev_lvs_examine_done;
1806 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, -EIO);
1815 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, -EIO);
1825 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, -EIO);
1991 req->cb_fn(req->cb_arg, lvolerrno);
1998 spdk_lvol_op_complete cb_fn, void *cb_arg)
2038 req->cb_fn = cb_fn;
2056 spdk_lvol_op_complete cb_fn, void *cb_arg)
2066 cb_fn(cb_arg, -ENODEV);
2076 cb_fn(cb_arg, -ENODEV);
2087 spdk_lvol_set_external_parent(lvol, bdev_uuid, sizeof(bdev_uuid), cb_fn, cb_arg);