Lines Matching defs:channel

30 	struct spdk_io_channel *channel;
64 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, bserrno);
69 bdev_blob_queue_io(struct spdk_bs_dev *dev, struct spdk_io_channel *channel, void *payload,
82 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, -ENOMEM);
88 ctx->channel = channel;
100 rc = spdk_bdev_queue_io_wait(bdev, channel, &ctx->bdev_io_wait);
103 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, rc);
110 bdev_blob_read(struct spdk_bs_dev *dev, struct spdk_io_channel *channel, void *payload,
115 rc = spdk_bdev_read_blocks(__get_desc(dev), channel, payload, lba,
118 bdev_blob_queue_io(dev, channel, payload, 0, lba, 0,
121 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, rc);
126 bdev_blob_write(struct spdk_bs_dev *dev, struct spdk_io_channel *channel, void *payload,
131 rc = spdk_bdev_write_blocks(__get_desc(dev), channel, payload, lba,
134 bdev_blob_queue_io(dev, channel, payload, 0, lba, 0,
137 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, rc);
142 bdev_blob_readv(struct spdk_bs_dev *dev, struct spdk_io_channel *channel,
148 rc = spdk_bdev_readv_blocks(__get_desc(dev), channel, iov, iovcnt, lba,
151 bdev_blob_queue_io(dev, channel, iov, iovcnt, lba, 0,
154 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, rc);
159 bdev_blob_writev(struct spdk_bs_dev *dev, struct spdk_io_channel *channel,
165 rc = spdk_bdev_writev_blocks(__get_desc(dev), channel, iov, iovcnt, lba,
168 bdev_blob_queue_io(dev, channel, iov, iovcnt, lba, 0,
171 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, rc);
185 bdev_blob_readv_ext(struct spdk_bs_dev *dev, struct spdk_io_channel *channel,
194 rc = spdk_bdev_readv_blocks_ext(__get_desc(dev), channel, iov, iovcnt, lba, lba_count,
197 bdev_blob_queue_io(dev, channel, iov, iovcnt, lba, 0, lba_count, SPDK_BDEV_IO_TYPE_READ, cb_args,
200 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, rc);
205 bdev_blob_writev_ext(struct spdk_bs_dev *dev, struct spdk_io_channel *channel,
214 rc = spdk_bdev_writev_blocks_ext(__get_desc(dev), channel, iov, iovcnt, lba, lba_count,
217 bdev_blob_queue_io(dev, channel, iov, iovcnt, lba, 0, lba_count, SPDK_BDEV_IO_TYPE_WRITE, cb_args,
220 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, rc);
225 bdev_blob_write_zeroes(struct spdk_bs_dev *dev, struct spdk_io_channel *channel, uint64_t lba,
230 rc = spdk_bdev_write_zeroes_blocks(__get_desc(dev), channel, lba,
233 bdev_blob_queue_io(dev, channel, NULL, 0, lba, 0,
236 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, rc);
241 bdev_blob_unmap(struct spdk_bs_dev *dev, struct spdk_io_channel *channel, uint64_t lba,
248 rc = spdk_bdev_unmap_blocks(__get_desc(dev), channel, lba, lba_count,
251 bdev_blob_queue_io(dev, channel, NULL, 0, lba, 0,
254 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, rc);
262 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, 0);
267 bdev_blob_copy(struct spdk_bs_dev *dev, struct spdk_io_channel *channel,
273 rc = spdk_bdev_copy_blocks(__get_desc(dev), channel,
277 bdev_blob_queue_io(dev, channel, NULL, 0, dst_lba, src_lba,
280 cb_args->cb_fn(cb_args->channel, cb_args->cb_arg, rc);
293 bdev_blob_readv_ext(ctx->dev, ctx->channel, (struct iovec *) ctx->payload, ctx->iovcnt,
296 bdev_blob_readv(ctx->dev, ctx->channel, (struct iovec *) ctx->payload, ctx->iovcnt,
300 bdev_blob_read(ctx->dev, ctx->channel, ctx->payload,
307 bdev_blob_writev_ext(ctx->dev, ctx->channel, (struct iovec *) ctx->payload, ctx->iovcnt,
310 bdev_blob_writev(ctx->dev, ctx->channel, (struct iovec *) ctx->payload, ctx->iovcnt,
314 bdev_blob_write(ctx->dev, ctx->channel, ctx->payload,
319 bdev_blob_unmap(ctx->dev, ctx->channel,
323 bdev_blob_write_zeroes(ctx->dev, ctx->channel,
327 bdev_blob_copy(ctx->dev, ctx->channel,
383 bdev_blob_destroy_channel(struct spdk_bs_dev *dev, struct spdk_io_channel *channel)
396 spdk_put_io_channel(channel);
400 * this channel have been destroyed. This means that dev->destroy() has been called and it