Lines Matching defs:load_ctx
801 struct reduce_init_load_ctx *load_ctx = cb_arg;
802 struct spdk_reduce_vol *vol = load_ctx->vol;
833 memcpy(vol->pm_file.path, load_ctx->path, sizeof(vol->pm_file.path));
834 if (load_ctx->cb_fn == (*destroy_load_cb)) {
835 load_ctx->cb_fn(load_ctx->cb_arg, vol, 0);
836 _init_load_cleanup(NULL, load_ctx);
897 load_ctx->cb_fn(load_ctx->cb_arg, vol, 0);
901 _init_load_cleanup(NULL, load_ctx);
905 load_ctx->cb_fn(load_ctx->cb_arg, NULL, rc);
906 _init_load_cleanup(vol, load_ctx);
914 struct reduce_init_load_ctx *load_ctx;
945 load_ctx = calloc(1, sizeof(*load_ctx));
946 if (load_ctx == NULL) {
954 _init_load_cleanup(vol, load_ctx);
959 load_ctx->backing_io = backing_io;
961 load_ctx->path = spdk_zmalloc(REDUCE_PATH_MAX, 64, NULL,
963 if (load_ctx->path == NULL) {
964 _init_load_cleanup(vol, load_ctx);
969 load_ctx->vol = vol;
970 load_ctx->cb_fn = cb_fn;
971 load_ctx->cb_arg = cb_arg;
973 load_ctx->iov[0].iov_base = vol->backing_super;
974 load_ctx->iov[0].iov_len = sizeof(*vol->backing_super);
975 load_ctx->iov[1].iov_base = load_ctx->path;
976 load_ctx->iov[1].iov_len = REDUCE_PATH_MAX;
978 backing_io->iov = load_ctx->iov;
983 backing_io->backing_cb_args = &load_ctx->backing_cb_args;
986 load_ctx->backing_cb_args.cb_fn = _load_read_super_and_path_cpl;
987 load_ctx->backing_cb_args.cb_arg = load_ctx;