Home
last modified time | relevance | path

Searched refs:sig_attrs (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/drivers/infiniband/ulp/iser/
Diser_memory.c194 struct ib_sig_attrs *sig_attrs) in iser_set_sig_attrs() argument
199 sig_attrs->mem.sig_type = IB_SIG_TYPE_NONE; in iser_set_sig_attrs()
200 iser_set_dif_domain(sc, &sig_attrs->wire); in iser_set_sig_attrs()
201 sig_attrs->wire.sig.dif.bg_type = IB_T10DIF_CRC; in iser_set_sig_attrs()
205 sig_attrs->wire.sig_type = IB_SIG_TYPE_NONE; in iser_set_sig_attrs()
206 iser_set_dif_domain(sc, &sig_attrs->mem); in iser_set_sig_attrs()
207 sig_attrs->mem.sig.dif.bg_type = sc->prot_flags & SCSI_PROT_IP_CHECKSUM ? in iser_set_sig_attrs()
212 iser_set_dif_domain(sc, &sig_attrs->wire); in iser_set_sig_attrs()
213 sig_attrs->wire.sig.dif.bg_type = IB_T10DIF_CRC; in iser_set_sig_attrs()
214 iser_set_dif_domain(sc, &sig_attrs->mem); in iser_set_sig_attrs()
[all …]
/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dwr.c357 struct ib_sig_attrs *sig_attrs, in mlx5_set_bsf() argument
362 struct ib_sig_domain *mem = &sig_attrs->mem; in mlx5_set_bsf()
363 struct ib_sig_domain *wire = &sig_attrs->wire; in mlx5_set_bsf()
370 basic->check_byte_mask = sig_attrs->check_mask; in mlx5_set_bsf()
374 switch (sig_attrs->mem.sig_type) { in mlx5_set_bsf()
387 switch (sig_attrs->wire.sig_type) { in mlx5_set_bsf()
418 struct ib_sig_attrs *sig_attrs, in set_sig_data_segment() argument
480 u16 block_size = sig_attrs->mem.sig.dif.pi_interval; in set_sig_data_segment()
487 prot_size = prot_field_size(sig_attrs->mem.sig_type); in set_sig_data_segment()
517 ret = mlx5_set_bsf(sig_mr, sig_attrs, bsf, data_len); in set_sig_data_segment()
[all …]
Dmr.c2313 ibmr->sig_attrs->meta_length = pi_mr->meta_length; in mlx5_ib_map_mr_sg_pi()
2315 ibmr->sig_attrs->meta_length = mr->meta_length; in mlx5_ib_map_mr_sg_pi()
/linux-6.1.9/drivers/nvme/target/
Drdma.c596 struct ib_sig_attrs *sig_attrs) in nvmet_rdma_set_sig_attrs() argument
605 memset(sig_attrs, 0, sizeof(*sig_attrs)); in nvmet_rdma_set_sig_attrs()
609 sig_attrs->wire.sig_type = IB_SIG_TYPE_NONE; in nvmet_rdma_set_sig_attrs()
610 nvmet_rdma_set_sig_domain(bi, cmd, &sig_attrs->mem, control, in nvmet_rdma_set_sig_attrs()
619 nvmet_rdma_set_sig_domain(bi, cmd, &sig_attrs->wire, control, in nvmet_rdma_set_sig_attrs()
621 nvmet_rdma_set_sig_domain(bi, cmd, &sig_attrs->mem, control, in nvmet_rdma_set_sig_attrs()
626 sig_attrs->check_mask |= IB_SIG_CHECK_REFTAG; in nvmet_rdma_set_sig_attrs()
628 sig_attrs->check_mask |= IB_SIG_CHECK_GUARD; in nvmet_rdma_set_sig_attrs()
630 sig_attrs->check_mask |= IB_SIG_CHECK_APPTAG; in nvmet_rdma_set_sig_attrs()
634 struct ib_sig_attrs *sig_attrs) in nvmet_rdma_rw_ctx_init() argument
[all …]
/linux-6.1.9/drivers/infiniband/ulp/isert/
Dib_isert.c2000 isert_set_sig_attrs(struct se_cmd *se_cmd, struct ib_sig_attrs *sig_attrs) in isert_set_sig_attrs() argument
2002 memset(sig_attrs, 0, sizeof(*sig_attrs)); in isert_set_sig_attrs()
2007 sig_attrs->mem.sig_type = IB_SIG_TYPE_NONE; in isert_set_sig_attrs()
2008 isert_set_dif_domain(se_cmd, &sig_attrs->wire); in isert_set_sig_attrs()
2012 sig_attrs->wire.sig_type = IB_SIG_TYPE_NONE; in isert_set_sig_attrs()
2013 isert_set_dif_domain(se_cmd, &sig_attrs->mem); in isert_set_sig_attrs()
2017 isert_set_dif_domain(se_cmd, &sig_attrs->wire); in isert_set_sig_attrs()
2018 isert_set_dif_domain(se_cmd, &sig_attrs->mem); in isert_set_sig_attrs()
2026 sig_attrs->check_mask |= IB_SIG_CHECK_GUARD; in isert_set_sig_attrs()
2028 sig_attrs->check_mask |= IB_SIG_CHECK_APPTAG; in isert_set_sig_attrs()
[all …]
/linux-6.1.9/drivers/infiniband/core/
Drw.c367 struct ib_sig_attrs *sig_attrs, in rdma_rw_ctx_signature_init() argument
416 memcpy(ctx->reg->mr->sig_attrs, sig_attrs, sizeof(struct ib_sig_attrs)); in rdma_rw_ctx_signature_init()
439 if (sig_attrs->wire.sig_type == IB_SIG_TYPE_NONE) in rdma_rw_ctx_signature_init()
440 ctx->reg->sge.length -= ctx->reg->mr->sig_attrs->meta_length; in rdma_rw_ctx_signature_init()
Dverbs.c2181 struct ib_sig_attrs *sig_attrs = mr->sig_attrs; in ib_dereg_mr_user() local
2191 kfree(sig_attrs); in ib_dereg_mr_user()
2237 mr->sig_attrs = NULL; in ib_alloc_mr()
2265 struct ib_sig_attrs *sig_attrs; in ib_alloc_mr_integrity() local
2278 sig_attrs = kzalloc(sizeof(struct ib_sig_attrs), GFP_KERNEL); in ib_alloc_mr_integrity()
2279 if (!sig_attrs) { in ib_alloc_mr_integrity()
2287 kfree(sig_attrs); in ib_alloc_mr_integrity()
2298 mr->sig_attrs = sig_attrs; in ib_alloc_mr_integrity()
Duverbs_cmd.c738 mr->sig_attrs = NULL; in ib_uverbs_reg_mr()
/linux-6.1.9/include/rdma/
Drw.h55 struct ib_sig_attrs *sig_attrs, u64 remote_addr, u32 rkey,
Dib_verbs.h1834 struct ib_sig_attrs *sig_attrs; /* only for IB_MR_TYPE_INTEGRITY MRs */ member
/linux-6.1.9/drivers/nvme/host/
Drdma.c1395 struct nvme_command *cmd, struct ib_sig_attrs *sig_attrs, in nvme_rdma_set_sig_attrs() argument
1400 memset(sig_attrs, 0, sizeof(*sig_attrs)); in nvme_rdma_set_sig_attrs()
1403 sig_attrs->mem.sig_type = IB_SIG_TYPE_NONE; in nvme_rdma_set_sig_attrs()
1404 nvme_rdma_set_sig_domain(bi, cmd, &sig_attrs->wire, control, in nvme_rdma_set_sig_attrs()
1411 nvme_rdma_set_sig_domain(bi, cmd, &sig_attrs->wire, control, in nvme_rdma_set_sig_attrs()
1413 nvme_rdma_set_sig_domain(bi, cmd, &sig_attrs->mem, control, in nvme_rdma_set_sig_attrs()
1456 req->mr->sig_attrs, ns->pi_type); in nvme_rdma_map_sg_pi()
1457 nvme_rdma_set_prot_checks(c, &req->mr->sig_attrs->check_mask); in nvme_rdma_map_sg_pi()