Home
last modified time | relevance | path

Searched refs:dif_ctx (Results 1 – 25 of 30) sorted by relevance

12

/spdk/test/unit/lib/idxd/idxd.c/
H A Didxd_ut.c16 struct spdk_dif_ctx dif_ctx; in test_idxd_validate_dif_common_params() local
25 rc = spdk_dif_ctx_init(&dif_ctx, in test_idxd_validate_dif_common_params()
35 rc = idxd_validate_dif_common_params(&dif_ctx); in test_idxd_validate_dif_common_params()
39 rc = spdk_dif_ctx_init(&dif_ctx, in test_idxd_validate_dif_common_params()
49 rc = idxd_validate_dif_common_params(&dif_ctx); in test_idxd_validate_dif_common_params()
53 rc = spdk_dif_ctx_init(&dif_ctx, in test_idxd_validate_dif_common_params()
63 rc = idxd_validate_dif_common_params(&dif_ctx); in test_idxd_validate_dif_common_params()
67 rc = spdk_dif_ctx_init(&dif_ctx, in test_idxd_validate_dif_common_params()
77 rc = idxd_validate_dif_common_params(&dif_ctx); in test_idxd_validate_dif_common_params()
82 rc = spdk_dif_ctx_init(&dif_ctx, in test_idxd_validate_dif_common_params()
205 struct spdk_dif_ctx dif_ctx; test_idxd_validate_dif_check_params() local
229 struct spdk_dif_ctx dif_ctx; test_idxd_validate_dif_insert_params() local
294 struct spdk_dif_ctx dif_ctx; test_idxd_validate_dif_check_buf_align() local
323 struct spdk_dif_ctx dif_ctx; test_idxd_validate_dif_insert_buf_align() local
361 struct spdk_dif_ctx dif_ctx; test_idxd_validate_dif_strip_buf_align() local
399 struct spdk_dif_ctx dif_ctx; test_idxd_get_dif_flags() local
475 struct spdk_dif_ctx dif_ctx; test_idxd_get_source_dif_flags() local
535 struct spdk_dif_ctx dif_ctx; test_idxd_get_app_tag_mask() local
[all...]
/spdk/test/accel/dif/
H A Ddif.c42 struct spdk_dif_ctx dif_ctx;
617 rc = spdk_dif_ctx_init(&task->dif_ctx, in accel_dif_verify_op_apptag_incorrect_no_apptag_check()
627 rc = spdk_dif_generate(task->src_iovs, task->src_iovcnt, task->num_blocks, &task->dif_ctx); in accel_dif_verify_op_reftag_init_correct_reftag_check()
630 rc = spdk_dif_ctx_init(&task->dif_ctx, in accel_dif_verify_op_reftag_init_correct_reftag_check()
642 req.ctx = &task->dif_ctx; in accel_dif_verify_op_reftag_init_correct_reftag_check()
667 rc = spdk_dif_ctx_init(&task->dif_ctx, in accel_dif_verify_op_reftag_init_incorrect_reftag_check()
676 &task->dif_ctx); in accel_dif_verify_op_reftag_init_incorrect_reftag_check()
679 rc = spdk_dif_ctx_init(&task->dif_ctx, in accel_dif_verify_op_reftag_init_incorrect_reftag_check()
692 req->ctx = &task->dif_ctx; in accel_dif_verify_op_reftag_init_incorrect_reftag_check()
826 rc = spdk_dif_ctx_init(&task->dif_ctx, in accel_dif_verify_copy_op_dif_not_generated_guard_check()
39 struct spdk_dif_ctx dif_ctx; global() member
[all...]
/spdk/module/bdev/malloc/
H A Dbdev_malloc.c44 struct spdk_dif_ctx dif_ctx; in malloc_verify_pi()
52 rc = spdk_dif_ctx_init(&dif_ctx, in malloc_verify_pi()
70 &dif_ctx, in malloc_verify_pi()
86 &dif_ctx, in malloc_verify_pi()
137 struct spdk_dif_ctx dif_ctx; in malloc_unmap_write_zeroes_generate_pi()
145 rc = spdk_dif_ctx_init(&dif_ctx, in malloc_unmap_write_zeroes_generate_pi()
166 rc = spdk_dif_generate(&iov, 1, bdev_io->u.bdev.num_blocks, &dif_ctx); in malloc_done()
178 rc = spdk_dix_generate(&iov, 1, &md_iov, bdev_io->u.bdev.num_blocks, &dif_ctx); in malloc_done()
710 struct spdk_dif_ctx dif_ctx; in create_malloc_disk()
721 rc = spdk_dif_ctx_init(&dif_ctx, in create_malloc_disk()
43 struct spdk_dif_ctx dif_ctx; malloc_verify_pi() local
109 struct spdk_dif_ctx dif_ctx; malloc_unmap_write_zeroes_generate_pi() local
659 struct spdk_dif_ctx dif_ctx; malloc_disk_setup_pi() local
[all...]
/spdk/test/unit/lib/bdev/raid/raid0.c/
H A Draid0_ut.c142 struct spdk_dif_ctx dif_ctx; in generate_dif() local
158 rc = spdk_dif_ctx_init(&dif_ctx, in generate_dif()
173 rc = spdk_dix_generate(iovs, iovcnt, &md_iov, num_blocks, &dif_ctx); in generate_dif()
182 struct spdk_dif_ctx dif_ctx; in verify_dif() local
199 rc = spdk_dif_ctx_init(&dif_ctx, in verify_dif()
215 &md_iov, num_blocks, &dif_ctx, &errblk); in verify_dif()
223 struct spdk_dif_ctx dif_ctx; in remap_dif() local
240 rc = spdk_dif_ctx_init(&dif_ctx, in remap_dif()
255 spdk_dif_ctx_set_remapped_init_ref_tag(&dif_ctx, remapped_offset); in remap_dif()
257 rc = spdk_dix_remap_ref_tag(&md_iov, num_blocks, &dif_ctx, &errblk, false); in remap_dif()
/spdk/test/unit/lib/scsi/scsi_bdev.c/
H A Dscsi_bdev_ut.c1001 struct spdk_dif_ctx dif_ctx = {}; in get_dif_ctx_test() local
1012 ret = bdev_scsi_get_dif_ctx(&bdev, &task, &dif_ctx); in get_dif_ctx_test()
1014 CU_ASSERT(dif_ctx.init_ref_tag + dif_ctx.ref_tag_offset == 0x123456); in get_dif_ctx_test()
1020 ret = bdev_scsi_get_dif_ctx(&bdev, &task, &dif_ctx); in get_dif_ctx_test()
1022 CU_ASSERT(dif_ctx.init_ref_tag + dif_ctx.ref_tag_offset == 0x12345678); in get_dif_ctx_test()
1028 ret = bdev_scsi_get_dif_ctx(&bdev, &task, &dif_ctx); in get_dif_ctx_test()
1030 CU_ASSERT(dif_ctx.init_ref_tag + dif_ctx.ref_tag_offset == 0x12345678); in get_dif_ctx_test()
/spdk/module/bdev/null/
H A Dbdev_null.c93 struct spdk_dif_ctx dif_ctx; in bdev_null_submit_request() local
103 rc = spdk_dif_ctx_init(&dif_ctx, in bdev_null_submit_request()
137 bdev_io->u.bdev.num_blocks, &dif_ctx); in bdev_null_submit_request()
151 bdev_io->u.bdev.num_blocks, &dif_ctx, &err_blk); in bdev_null_submit_request()
245 struct spdk_dif_ctx dif_ctx; in bdev_null_create()
251 return spdk_dif_ctx_init(&dif_ctx, in bdev_null_create()
/spdk/test/unit/lib/nvmf/ctrlr_bdev.c/
H A Dctrlr_bdev_ut.c400 struct spdk_dif_ctx dif_ctx = {}; in test_spdk_nvmf_bdev_ctrlr_compare_and_write_cmd()
405 ret = nvmf_bdev_ctrlr_get_dif_ctx(&desc, &cmd, &dif_ctx); in test_spdk_nvmf_bdev_ctrlr_compare_and_write_cmd()
412 ret = nvmf_bdev_ctrlr_get_dif_ctx(&desc, &cmd, &dif_ctx); in test_spdk_nvmf_bdev_ctrlr_compare_and_write_cmd()
414 CU_ASSERT(dif_ctx.block_size == 520); in test_spdk_nvmf_bdev_ctrlr_compare_and_write_cmd()
415 CU_ASSERT(dif_ctx.md_size == 8); in test_spdk_nvmf_bdev_ctrlr_compare_and_write_cmd()
416 CU_ASSERT(dif_ctx.init_ref_tag == 0x90ABCDEF); in test_spdk_nvmf_bdev_ctrlr_compare_and_write_cmd()
344 struct spdk_dif_ctx dif_ctx = {}; test_get_dif_ctx() local
/spdk/test/unit/lib/nvme/nvme_tcp.c/
H A Dnvme_tcp_ut.c310 struct spdk_dif_ctx dif_ctx = {}; in test_nvme_tcp_pdu_set_data_buf_with_md()
314 pdu.dif_ctx = &dif_ctx; in test_nvme_tcp_pdu_set_data_buf_with_md()
318 rc = spdk_dif_ctx_init(&dif_ctx, 520, 8, true, false, SPDK_DIF_DISABLE, 0, in test_nvme_tcp_pdu_set_data_buf_with_md()
328 CU_ASSERT(dif_ctx.data_offset == 0); in test_nvme_tcp_pdu_set_data_buf_with_md()
336 CU_ASSERT(dif_ctx.data_offset == 500); in test_nvme_tcp_pdu_set_data_buf_with_md()
344 CU_ASSERT(dif_ctx.data_offset == 1500); in test_nvme_tcp_pdu_set_data_buf_with_md()
368 CU_ASSERT(dif_ctx.data_offset == 0); in test_nvme_tcp_pdu_set_data_buf_with_md()
378 CU_ASSERT(dif_ctx.data_offset == 500); in test_nvme_tcp_pdu_set_data_buf_with_md()
394 CU_ASSERT(dif_ctx in test_nvme_tcp_pdu_set_data_buf_with_md()
309 struct spdk_dif_ctx dif_ctx = {}; test_nvme_tcp_pdu_set_data_buf_with_md() local
407 struct spdk_dif_ctx dif_ctx = {}; test_nvme_tcp_build_iovs_with_md() local
[all...]
/spdk/lib/scsi/
H A Dscsi_internal.h186 struct spdk_dif_ctx *dif_ctx);
H A Dlun.c646 struct spdk_dif_ctx *dif_ctx) in spdk_scsi_lun_get_dif_ctx() argument
648 return bdev_scsi_get_dif_ctx(lun->bdev, task, dif_ctx); in spdk_scsi_lun_get_dif_ctx()
H A Dscsi_bdev.c2173 struct spdk_dif_ctx *dif_ctx) in bdev_scsi_get_dif_ctx() argument
2219 rc = spdk_dif_ctx_init(dif_ctx, in bdev_scsi_get_dif_ctx()
/spdk/test/unit/lib/nvmf/rdma.c/
H A Drdma_ut.c45 struct spdk_dif_ctx *dif_ctx), false);
887 spdk_dif_ctx_init(&rdma_req.req.dif.dif_ctx, data_bs + md_size, md_size, true, false, in test_spdk_nvmf_rdma_request_parse_sgl_with_md()
917 spdk_dif_ctx_init(&rdma_req.req.dif.dif_ctx, data_bs + md_size, md_size, true, false, in test_spdk_nvmf_rdma_request_parse_sgl_with_md()
955 spdk_dif_ctx_init(&rdma_req.req.dif.dif_ctx, data_bs + md_size, md_size, true, false, in test_spdk_nvmf_rdma_request_parse_sgl_with_md()
991 spdk_dif_ctx_init(&rdma_req.req.dif.dif_ctx, data_bs + md_size, md_size, true, false, in test_spdk_nvmf_rdma_request_parse_sgl_with_md()
1020 spdk_dif_ctx_init(&rdma_req.req.dif.dif_ctx, data_bs + md_size, md_size, true, false, in test_spdk_nvmf_rdma_request_parse_sgl_with_md()
1050 spdk_dif_ctx_init(&rdma_req.req.dif.dif_ctx, data_bs + md_size, md_size, true, false, in test_spdk_nvmf_rdma_request_parse_sgl_with_md()
1098 spdk_dif_ctx_init(&rdma_req.req.dif.dif_ctx, data_bs + md_size, md_size, true, false, in test_spdk_nvmf_rdma_request_parse_sgl_with_md()
1141 spdk_dif_ctx_init(&rdma_req.req.dif.dif_ctx, data_bs + md_size, md_size, true, false, in test_spdk_nvmf_rdma_request_parse_sgl_with_md()
1181 spdk_dif_ctx_init(&rdma_req.req.dif.dif_ctx, data_b in test_spdk_nvmf_rdma_request_parse_sgl_with_md()
[all...]
/spdk/lib/nvmf/
H A Dtcp.c1276 if (spdk_likely(!pdu->dif_ctx && (pdu->data_len % SPDK_NVME_TCP_DIGEST_ALIGNMENT == 0) in nvmf_tcp_qpair_init_mem_resource()
2007 pdu->dif_ctx = &tcp_req->req.dif.dif_ctx; in nvmf_tcp_h2c_data_payload_handle()
2259 if (tqpair->qpair.qid != 0 && !pdu->dif_ctx && tqpair->group && in nvmf_tcp_pdu_psh_handle()
2615 if (spdk_unlikely(pdu->dif_ctx != NULL) && in nvmf_tcp_req_parse_sgl()
2617 pdu->dif_ctx) != 0) { in nvmf_tcp_req_parse_sgl()
2718 length = spdk_dif_get_length_with_md(length, &req->dif.dif_ctx); in _nvmf_tcp_send_c2h_data()
2806 length = spdk_dif_get_length_with_md(length, &req->dif.dif_ctx); in _nvmf_tcp_send_c2h_data()
2901 rsp_pdu->dif_ctx = &tcp_req->req.dif.dif_ctx; in nvmf_tcp_check_fused_ordering()
[all...]
H A Drdma.c1532 struct spdk_dif_ctx *dif_ctx = &rdma_req->req.dif.dif_ctx; in nvmf_rdma_fill_wr_sgl_with_dif()
1541 data_block_size = dif_ctx->block_size - dif_ctx->md_size; in nvmf_rdma_fill_wr_sgl_with_dif()
1546 md_size = dif_ctx->md_size; in nvmf_rdma_fill_wr_sgl_with_dif()
1549 total_length = total_length / dif_ctx->block_size * data_block_size; in nvmf_rdma_fill_wr_sgl_with_dif()
1661 length = spdk_dif_get_length_with_md(length, &req->dif.dif_ctx); in nvmf_rdma_request_fill_iovs()
1676 && (req->dif.elba_length > req->dif.dif_ctx.block_size))) { in nvmf_rdma_request_fill_iovs()
1688 req->dif.dif_ctx.block_size); in nvmf_rdma_request_fill_iovs()
1754 lengths[i] = spdk_dif_get_length_with_md(desc->keyed.length, &req->dif.dif_ctx); in nvmf_rdma_request_fill_iovs_multi_sgl()
1531 struct spdk_dif_ctx *dif_ctx = &rdma_req->req.dif.dif_ctx; nvmf_rdma_fill_wr_sgl_with_dif() local
[all...]
H A Dtransport.c1037 uint32_t block_size = req->dif.dif_ctx.block_size;
1038 uint32_t data_block_size = block_size - req->dif.dif_ctx.md_size;
H A Dnvmf_internal.h415 struct spdk_dif_ctx *dif_ctx);
H A Dctrlr_bdev.c952 struct spdk_dif_ctx *dif_ctx) in nvmf_bdev_ctrlr_zcopy_start()
975 rc = spdk_dif_ctx_init(dif_ctx, in nvmf_bdev_ctrlr_zcopy_start()
876 nvmf_bdev_ctrlr_get_dif_ctx(struct spdk_bdev * bdev,struct spdk_nvme_cmd * cmd,struct spdk_dif_ctx * dif_ctx) nvmf_bdev_ctrlr_get_dif_ctx() argument
/spdk/include/spdk/
H A Dscsi.h572 struct spdk_dif_ctx *dif_ctx);
/spdk/lib/iscsi/
H A Dconn.c1385 iscsi_dif_verify(struct spdk_iscsi_pdu *pdu, struct spdk_dif_ctx *dif_ctx) in iscsi_dif_verify()
1394 num_blocks = pdu->data_buf_len / dif_ctx->block_size; in _iscsi_conn_pdu_write_done()
1396 rc = spdk_dif_verify(&iov, 1, num_blocks, dif_ctx, &err_blk); in _iscsi_conn_pdu_write_done()
1450 rc = iscsi_dif_verify(pdu, &pdu->dif_ctx); in iscsi_conn_write_pdu()
1373 iscsi_dif_verify(struct spdk_iscsi_pdu * pdu,struct spdk_dif_ctx * dif_ctx) iscsi_dif_verify() argument
H A Discsi.c292 num_blocks = pdu->data_buf_len / pdu->dif_ctx.block_size; in iscsi_pdu_calc_partial_data_digest()
294 spdk_dif_update_crc32c(&iov, 1, num_blocks, &pdu->crc32c, &pdu->dif_ctx); in iscsi_pdu_calc_partial_data_digest()
337 num_blocks = pdu->data_buf_len / pdu->dif_ctx.block_size; in iscsi_pdu_calc_data_digest()
339 spdk_dif_update_crc32c(&iov, 1, num_blocks, &crc32c, &pdu->dif_ctx); in iscsi_pdu_calc_data_digest()
371 &pdu->dif_ctx); in iscsi_conn_read_data_segment()
376 &pdu->dif_ctx); in iscsi_conn_read_data_segment()
395 struct spdk_dif_ctx *dif_ctx) in _iscsi_sgl_append_with_md() argument
408 &total_size, dif_ctx); in _iscsi_sgl_append_with_md()
479 data_len, &pdu->dif_ctx)) { in iscsi_build_iovs()
2995 &rsp_pdu->dif_ctx))) { in iscsi_send_datain()
[all...]
H A Discsi.h167 struct spdk_dif_ctx dif_ctx; member
/spdk/module/bdev/raid/
H A Dbdev_raid.c531 struct spdk_dif_ctx dif_ctx; in raid_bdev_remap_dix_reftag()
546 rc = spdk_dif_ctx_init(&dif_ctx, in raid_bdev_remap_dix_reftag()
556 spdk_dif_ctx_set_remapped_init_ref_tag(&dif_ctx, remapped_offset); in raid_bdev_verify_dix_reftag()
558 rc = spdk_dix_remap_ref_tag(&md_iov, num_blocks, &dif_ctx, &err_blk, false); in raid_bdev_verify_dix_reftag()
571 struct spdk_dif_ctx dif_ctx; in raid_bdev_verify_dix_reftag()
586 rc = spdk_dif_ctx_init(&dif_ctx,
596 rc = spdk_dix_verify(iovs, iovcnt, &md_iov, num_blocks, &dif_ctx, &err_blk); in raid_bdev_io_complete()
513 struct spdk_dif_ctx dif_ctx; raid_bdev_remap_dix_reftag() local
553 struct spdk_dif_ctx dif_ctx; raid_bdev_verify_dix_reftag() local
/spdk/test/unit/lib/nvmf/ctrlr.c/
H A Dctrlr_ut.c177 struct spdk_dif_ctx *dif_ctx),
1771 struct spdk_dif_ctx dif_ctx = {}; in test_identify_ctrlr()
1787 ret = spdk_nvmf_request_get_dif_ctx(&req, &dif_ctx); in test_identify_ctrlr()
1793 ret = spdk_nvmf_request_get_dif_ctx(&req, &dif_ctx); in test_identify_ctrlr()
1799 ret = spdk_nvmf_request_get_dif_ctx(&req, &dif_ctx); in test_identify_ctrlr()
1804 ret = spdk_nvmf_request_get_dif_ctx(&req, &dif_ctx); in test_identify_ctrlr()
1809 ret = spdk_nvmf_request_get_dif_ctx(&req, &dif_ctx); in test_identify_ctrlr()
1814 ret = spdk_nvmf_request_get_dif_ctx(&req, &dif_ctx); in test_identify_ctrlr_iocs_specific()
1821 ret = spdk_nvmf_request_get_dif_ctx(&req, &dif_ctx); in test_identify_ctrlr_iocs_specific()
1826 ret = spdk_nvmf_request_get_dif_ctx(&req, &dif_ctx); in test_identify_ctrlr_iocs_specific()
1708 struct spdk_dif_ctx dif_ctx = {}; test_get_dif_ctx() local
[all...]
/spdk/test/unit/lib/nvmf/transport.c/
H A Dtransport_ut.c33 struct spdk_dif_ctx *dif_ctx), false);
/spdk/test/unit/lib/scsi/lun.c/
H A Dlun_ut.c32 struct spdk_dif_ctx *dif_ctx), false);

12