Home
last modified time | relevance | path

Searched refs:lkey (Results 1 – 25 of 144) sorted by relevance

123456

/kernel/linux/linux-5.10/drivers/infiniband/sw/rdmavt/
Dmr.c222 mr->lkey = (r << (32 - dev->dparms.lkey_table_size)) | in rvt_alloc_lkey()
225 if (mr->lkey == 0) { in rvt_alloc_lkey()
226 mr->lkey |= 1 << 8; in rvt_alloc_lkey()
250 u32 lkey = mr->lkey; in rvt_free_lkey() local
257 if (!lkey) { in rvt_free_lkey()
267 r = lkey >> (32 - dev->dparms.lkey_table_size); in rvt_free_lkey()
301 mr->ibmr.lkey = mr->mr.lkey; in __rvt_alloc_mr()
302 mr->ibmr.rkey = mr->mr.lkey; in __rvt_alloc_mr()
455 rvt_qp_mr_clean(qp, mr->lkey); in rvt_dereg_clean_qp_cb()
488 if (mr->lkey) { in rvt_check_refs()
[all …]
Dtrace_mr.h73 __field(u32, lkey)
84 __entry->lkey = mr->lkey;
94 __entry->lkey,
133 __field(u32, lkey)
148 __entry->lkey = sge->mr->lkey;
164 __entry->lkey,
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/
Dmthca_wqe.h66 __be32 lkey; member
85 __be32 lkey; member
103 __be32 lkey; member
120 dseg->lkey = cpu_to_be32(sg->lkey); in mthca_set_data_seg()
127 dseg->lkey = cpu_to_be32(MTHCA_INVAL_LKEY); in mthca_set_data_seg_inval()
Dmthca_mr.c57 __be32 lkey; member
444 mr->ibmr.rkey = mr->ibmr.lkey = hw_index_to_key(dev, key); in mthca_mr_alloc()
472 memset(&mpt_entry->lkey, 0, in mthca_mr_alloc()
473 sizeof *mpt_entry - offsetof(struct mthca_mpt_entry, lkey)); in mthca_mr_alloc()
481 mthca_dbg(dev, "Dumping MPT entry %08x:\n", mr->ibmr.lkey); in mthca_mr_alloc()
545 static void mthca_free_region(struct mthca_dev *dev, u32 lkey) in mthca_free_region() argument
548 key_to_hw_index(dev, lkey)); in mthca_free_region()
550 mthca_free(&dev->mr_table.mpt_alloc, key_to_hw_index(dev, lkey)); in mthca_free_region()
558 key_to_hw_index(dev, mr->ibmr.lkey) & in mthca_free_mr()
563 mthca_free_region(dev, mr->ibmr.lkey); in mthca_free_mr()
Dmthca_srq.c53 __be32 lkey; member
62 __be32 lkey; member
110 context->lkey = cpu_to_be32(srq->mr.ibmr.lkey); in mthca_tavor_init_srq_context()
137 context->lkey = cpu_to_be32(srq->mr.ibmr.lkey); in mthca_arbel_init_srq_context()
198 scatter->lkey = cpu_to_be32(MTHCA_INVAL_LKEY); in mthca_alloc_srq_buf()
Dmthca_provider.c423 srq->mr.ibmr.lkey = ucmd.lkey; in mthca_create_srq()
510 qp->mr.ibmr.lkey = ucmd.lkey; in mthca_create_qp()
640 cq->buf.mr.ibmr.lkey = ucmd.lkey; in mthca_create_cq()
727 u32 lkey; in mthca_resize_cq() local
745 lkey = cq->resize_buf->buf.mr.ibmr.lkey; in mthca_resize_cq()
751 lkey = ucmd.lkey; in mthca_resize_cq()
754 ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries)); in mthca_resize_cq()
/kernel/linux/linux-5.10/include/uapi/rdma/
Dmthca-abi.h75 __u32 lkey; member
89 __u32 lkey; member
94 __u32 lkey; member
105 __u32 lkey; member
Drvt-abi.h20 __u32 lkey; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/rdma/
Dmthca-abi.h24 __u32 lkey; member
36 __u32 lkey; member
40 __u32 lkey; member
49 __u32 lkey; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/rdma/
Dmthca-abi.h37 __u32 lkey; member
49 __u32 lkey; member
53 __u32 lkey; member
62 __u32 lkey; member
Drvt-abi.h29 __u32 lkey; member
/kernel/linux/linux-5.10/include/rdma/
Drdmavt_mr.h36 u32 lkey; member
127 } else if (sge->length == 0 && sge->mr->lkey) { in rvt_update_sge()
152 bool rvt_ss_has_lkey(struct rvt_sge_state *ss, u32 lkey);
153 bool rvt_mr_has_lkey(struct rvt_mregion *mr, u32 lkey);
/kernel/linux/linux-5.10/drivers/infiniband/ulp/iser/
Diser_memory.c109 reg->sge.lkey = device->pd->local_dma_lkey; in iser_reg_dma()
123 " length=0x%x\n", reg->sge.lkey, reg->rkey, in iser_reg_dma()
279 sig_reg->sge.lkey = mr->lkey; in iser_reg_sig_mr()
285 sig_reg->sge.lkey, sig_reg->rkey, sig_reg->sge.addr, in iser_reg_sig_mr()
327 reg->sge.lkey = mr->lkey; in iser_fast_reg_mr()
333 reg->sge.lkey, reg->rkey, reg->sge.addr, reg->sge.length); in iser_fast_reg_mr()
Diser_initiator.c155 tx_dsg->lkey = mem_reg->sge.lkey; in iser_prepare_write_cmd()
280 rx_sg->lkey = device->pd->local_dma_lkey; in iser_alloc_rx_descriptors()
476 tx_dsg->lkey = mem_reg->sge.lkey; in iser_send_data_out()
538 tx_dsg->lkey = device->pd->local_dma_lkey; in iser_send_control()
/kernel/linux/linux-5.10/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_mr.c94 mr->ibmr.lkey = resp->lkey; in pvrdma_get_dma_mr()
182 mr->ibmr.lkey = resp->lkey; in pvrdma_reg_user_mr()
254 mr->ibmr.lkey = resp->lkey; in pvrdma_alloc_mr()
/kernel/linux/linux-5.10/drivers/infiniband/core/
Duverbs_std_types_mr.c145 ret = uverbs_copy_to(attrs, UVERBS_ATTR_REG_DM_MR_RESP_LKEY, &mr->lkey, in UVERBS_HANDLER()
146 sizeof(mr->lkey)); in UVERBS_HANDLER()
162 ret = uverbs_copy_to(attrs, UVERBS_ATTR_QUERY_MR_RESP_LKEY, &mr->lkey, in UVERBS_HANDLER()
163 sizeof(mr->lkey)); in UVERBS_HANDLER()
Drw.c79 reg->inv_wr.ex.invalidate_rkey = reg->mr->lkey; in rdma_rw_inv_key()
168 reg->wr.wr.ex.invalidate_rkey = reg->mr->lkey; in rdma_rw_init_mr_wrs()
229 sge->lkey = qp->pd->local_dma_lkey; in rdma_rw_init_map_wrs()
258 ctx->single.sge.lkey = qp->pd->local_dma_lkey; in rdma_rw_init_single_wr()
444 ctx->reg->reg_wr.key = ctx->reg->mr->lkey; in rdma_rw_ctx_signature_init()
488 ib_update_fast_reg_key(reg->mr, ib_inc_rkey(reg->mr->lkey)); in rdma_rw_update_lkey()
489 reg->reg_wr.key = reg->mr->lkey; in rdma_rw_update_lkey()
490 reg->sge.lkey = reg->mr->lkey; in rdma_rw_update_lkey()
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_mr.c52 u32 lkey = mem->pelem.index << 8 | rxe_get_key(); in rxe_mem_init() local
53 u32 rkey = (access & IB_ACCESS_REMOTE) ? lkey : 0; in rxe_mem_init()
55 mem->ibmr.lkey = lkey; in rxe_mem_init()
213 mem->ibmr.rkey = mem->ibmr.lkey; in rxe_mem_init_fast()
428 mem = lookup_mem(pd, access, sge->lkey, lookup_local); in copy_data()
453 mem = lookup_mem(pd, access, sge->lkey, in copy_data()
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/
Dsiw_mem.c121 mr->base_mr.lkey = mr->base_mr.rkey = mem->stag; in siw_mr_add_mem()
234 new = siw_mem_id2obj(sdev, sge->lkey >> 8); in siw_check_sge()
236 siw_dbg_pd(pd, "STag unknown: 0x%08x\n", sge->lkey); in siw_check_sge()
243 if (unlikely((*mem)->stag != sge->lkey)) { in siw_check_sge()
244 siw_dbg_mem((*mem), "STag mismatch: 0x%08x\n", sge->lkey); in siw_check_sge()
Dsiw_verbs.h30 siw_sge->lkey = sge->lkey; in siw_copy_sgl()
Dsiw_qp.c279 wqe->sqe.sge[0].lkey = 0; in siw_qp_mpa_rts()
486 rreq->source_stag = htonl(wqe->sqe.sge[0].lkey); in siw_send_terminate()
875 rreq->sge[0].lkey = sqe->sge[0].lkey; in siw_read_to_orq()
876 rreq->sge[1].lkey = sqe->sge[1].lkey; in siw_read_to_orq()
912 wqe->sqe.sge[0].lkey = 0; in siw_activate_tx_from_sq()
1008 wqe->sqe.sge[0].lkey = irqe->sge[0].lkey; in siw_activate_tx()
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/
Dsrq.c156 scatter->lkey = cpu_to_be32(MLX4_INVALID_LKEY); in mlx4_ib_create_srq()
344 scat[i].lkey = cpu_to_be32(wr->sg_list[i].lkey); in mlx4_ib_post_srq_recv()
350 scat[i].lkey = cpu_to_be32(MLX4_INVALID_LKEY); in mlx4_ib_post_srq_recv()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/steering/
Ddr_send.c16 u32 lkey; member
252 wq_dseg->lkey = cpu_to_be32(data_seg->lkey); in dr_rdma_segments()
345 send_info->read.lkey = send_ring->mr->mkey.key; in dr_fill_data_segs()
375 send_info->write.lkey = send_ring->mr->mkey.key; in dr_postsend_icm_data()
436 send_info.write.lkey = 0; in mlx5dr_send_postsend_ste()
488 send_info.write.lkey = 0; in mlx5dr_send_postsend_htbl()
542 send_info.write.lkey = 0; in mlx5dr_send_postsend_formatted_htbl()
566 send_info.write.lkey = 0; in mlx5dr_send_postsend_action()
984 send_info.write.lkey = 0; in mlx5dr_send_ring_force_drain()
/kernel/linux/linux-5.10/net/smc/
Dsmc_wr.c496 lnk->wr_tx_sges[i].lkey = lnk->roce_pd->local_dma_lkey; in smc_wr_init_sge()
497 lnk->wr_tx_rdma_sges[i].tx_rdma_sge[0].wr_tx_rdma_sge[0].lkey = in smc_wr_init_sge()
499 lnk->wr_tx_rdma_sges[i].tx_rdma_sge[0].wr_tx_rdma_sge[1].lkey = in smc_wr_init_sge()
501 lnk->wr_tx_rdma_sges[i].tx_rdma_sge[1].wr_tx_rdma_sge[0].lkey = in smc_wr_init_sge()
503 lnk->wr_tx_rdma_sges[i].tx_rdma_sge[1].wr_tx_rdma_sge[1].lkey = in smc_wr_init_sge()
522 lnk->wr_rx_sges[i].lkey = lnk->roce_pd->local_dma_lkey; in smc_wr_init_sge()
/kernel/linux/linux-5.10/drivers/infiniband/hw/bnxt_re/
Dib_verbs.c114 sg_list[i].lkey = ib_sg_list[i].lkey; in bnxt_re_build_sgl()
396 wqe->bind.parent_l_key = ib_mr->lkey; in bnxt_re_create_fence_wqe()
451 if (mr->ib_mr.lkey) in bnxt_re_destroy_fence_mr()
504 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_create_fence_mr()
2253 wqe->sg_list[i].lkey = wqe->sg_list[i - 1].lkey; in bnxt_re_build_qp1_send_v2()
2279 wqe->sg_list[0].lkey = sge.lkey; in bnxt_re_build_qp1_send_v2()
2318 ref.lkey = wqe->sg_list[0].lkey; in bnxt_re_build_qp1_shadow_qp_recv()
2325 wqe->sg_list[0].lkey = sge.lkey; in bnxt_re_build_qp1_shadow_qp_recv()
2330 sqp_entry->sge.lkey = ref.lkey; in bnxt_re_build_qp1_shadow_qp_recv()
3206 s_sge[0].lkey = 0xFFFFFFFF; in bnxt_re_process_raw_qp_pkt_rx()
[all …]

123456