Lines Matching defs:unmap_ctx
653 struct nvmf_bdev_ctrlr_unmap *unmap_ctx = cb_arg;
654 struct spdk_nvmf_request *req = unmap_ctx->req;
659 unmap_ctx->count--;
669 if (unmap_ctx->count == 0) {
671 free(unmap_ctx);
678 struct nvmf_bdev_ctrlr_unmap *unmap_ctx);
682 struct nvmf_bdev_ctrlr_unmap *unmap_ctx = arg;
683 struct spdk_nvmf_request *req = unmap_ctx->req;
684 struct spdk_bdev_desc *desc = unmap_ctx->desc;
685 struct spdk_bdev *bdev = unmap_ctx->bdev;
686 struct spdk_io_channel *ch = unmap_ctx->ch;
688 nvmf_bdev_ctrlr_unmap(bdev, desc, ch, req, unmap_ctx);
694 struct nvmf_bdev_ctrlr_unmap *unmap_ctx)
713 if (unmap_ctx == NULL) {
714 unmap_ctx = calloc(1, sizeof(*unmap_ctx));
715 if (!unmap_ctx) {
720 unmap_ctx->req = req;
721 unmap_ctx->desc = desc;
722 unmap_ctx->ch = ch;
723 unmap_ctx->bdev = bdev;
728 unmap_ctx->count--; /* dequeued */
733 for (i = unmap_ctx->range_index; i < nr; i++) {
748 unmap_ctx->count++;
751 nvmf_bdev_ctrlr_unmap_cpl, unmap_ctx);
754 nvmf_bdev_ctrl_queue_io(req, bdev, ch, nvmf_bdev_ctrlr_unmap_resubmit, unmap_ctx);
756 /* unmap_ctx->count will be decremented when the request is dequeued */
760 unmap_ctx->count--;
765 unmap_ctx->range_index++;
768 if (unmap_ctx->count == 0) {
769 free(unmap_ctx);