Lines Matching defs:ch
363 bdev_malloc_readv(struct malloc_disk *mdisk, struct spdk_io_channel *ch,
387 res = spdk_accel_append_copy(&bdev_io->u.bdev.accel_sequence, ch,
408 res = spdk_accel_submit_copy(ch, bdev_io->u.bdev.md_buf, malloc_get_md_buf(bdev_io),
416 bdev_malloc_writev(struct malloc_disk *mdisk, struct spdk_io_channel *ch,
440 res = spdk_accel_append_copy(&bdev_io->u.bdev.accel_sequence, ch, &task->iov, 1, NULL, NULL,
459 res = spdk_accel_submit_copy(ch, malloc_get_md_buf(bdev_io), bdev_io->u.bdev.md_buf,
468 struct spdk_io_channel *ch,
476 return spdk_accel_submit_fill(ch, mdisk->malloc_buf + offset, 0,
481 bdev_malloc_copy(struct malloc_disk *mdisk, struct spdk_io_channel *ch,
495 res = spdk_accel_submit_copy(ch, dst, src, len, malloc_done, task);
601 bdev_malloc_submit_request(struct spdk_io_channel *ch, struct spdk_bdev_io *bdev_io)
603 struct malloc_channel *mch = spdk_io_channel_get_ctx(ch);
916 struct malloc_channel *ch = ctx;
922 TAILQ_SWAP(&completed_tasks, &ch->completed_tasks, malloc_task, tailq);
937 struct malloc_channel *ch = ctx;
939 ch->accel_channel = spdk_accel_get_io_channel();
940 if (!ch->accel_channel) {
945 ch->completion_poller = SPDK_POLLER_REGISTER(malloc_completion_poller, ch, 0);
946 if (!ch->completion_poller) {
948 spdk_put_io_channel(ch->accel_channel);
952 TAILQ_INIT(&ch->completed_tasks);
960 struct malloc_channel *ch = ctx;
962 assert(TAILQ_EMPTY(&ch->completed_tasks));
964 spdk_put_io_channel(ch->accel_channel);
965 spdk_poller_unregister(&ch->completion_poller);