Lines Matching defs:crypto_ch

58 	struct crypto_io_channel *crypto_ch;		/* need to store for crypto completion handling */
85 struct crypto_io_channel *crypto_ch = crypto_io->crypto_ch;
88 spdk_accel_put_buf(crypto_ch->accel_channel, crypto_io->aux_buf_raw,
99 crypto_write(struct crypto_io_channel *crypto_ch, struct spdk_bdev_io *bdev_io)
113 rc = spdk_bdev_writev_blocks_ext(crypto_bdev->base_desc, crypto_ch->base_ch,
130 crypto_encrypt(struct crypto_io_channel *crypto_ch, struct spdk_bdev_io *bdev_io)
152 rc = spdk_accel_append_encrypt(&crypto_io->seq, crypto_ch->accel_channel,
153 crypto_ch->crypto_key, &crypto_io->aux_buf_iov, 1,
161 spdk_accel_put_buf(crypto_ch->accel_channel, crypto_io->aux_buf_raw,
174 crypto_write(crypto_ch, bdev_io);
182 struct crypto_io_channel *crypto_ch = crypto_io->crypto_ch;
185 spdk_accel_put_buf(crypto_ch->accel_channel, crypto_io->aux_buf_raw,
193 static void crypto_read(struct crypto_io_channel *crypto_ch, struct spdk_bdev_io *bdev_io);
203 crypto_write(crypto_io->crypto_ch, bdev_io);
206 crypto_read(crypto_io->crypto_ch, bdev_io);
224 rc = spdk_bdev_queue_io_wait(bdev_io->bdev, crypto_io->crypto_ch->base_ch,
233 crypto_read(struct crypto_io_channel *crypto_ch, struct spdk_bdev_io *bdev_io)
246 rc = spdk_bdev_readv_blocks_ext(crypto_bdev->base_desc, crypto_ch->base_ch,
269 struct crypto_io_channel *crypto_ch = spdk_io_channel_get_ctx(ch);
279 rc = spdk_accel_append_decrypt(&crypto_io->seq, crypto_ch->accel_channel,
280 crypto_ch->crypto_key,
301 crypto_read(crypto_ch, bdev_io);
316 struct crypto_io_channel *crypto_ch = spdk_io_channel_get_ctx(ch);
322 crypto_io->crypto_ch = crypto_ch;
335 rc = spdk_accel_get_buf(crypto_ch->accel_channel,
340 crypto_encrypt(crypto_ch, bdev_io);
344 rc = spdk_bdev_unmap_blocks(crypto_bdev->base_desc, crypto_ch->base_ch,
350 rc = spdk_bdev_flush_blocks(crypto_bdev->base_desc, crypto_ch->base_ch,
356 rc = spdk_bdev_reset(crypto_bdev->base_desc, crypto_ch->base_ch,
515 struct crypto_io_channel *crypto_ch = ctx_buf;
518 crypto_ch->base_ch = spdk_bdev_get_io_channel(crypto_bdev->base_desc);
519 if (crypto_ch->base_ch == NULL) {
525 crypto_ch->accel_channel = spdk_accel_get_io_channel();
526 if (crypto_ch->accel_channel == NULL) {
529 spdk_put_io_channel(crypto_ch->base_ch);
533 crypto_ch->crypto_key = crypto_bdev->opts->key;
545 struct crypto_io_channel *crypto_ch = ctx_buf;
547 spdk_put_io_channel(crypto_ch->base_ch);
548 spdk_put_io_channel(crypto_ch->accel_channel);