/linux-6.1.9/drivers/infiniband/sw/rdmavt/ |
D | mr.c | 180 mr->lkey = (r << (32 - dev->dparms.lkey_table_size)) | in rvt_alloc_lkey() 183 if (mr->lkey == 0) { in rvt_alloc_lkey() 184 mr->lkey |= 1 << 8; in rvt_alloc_lkey() 208 u32 lkey = mr->lkey; in rvt_free_lkey() local 215 if (!lkey) { in rvt_free_lkey() 225 r = lkey >> (32 - dev->dparms.lkey_table_size); in rvt_free_lkey() 259 mr->ibmr.lkey = mr->mr.lkey; in __rvt_alloc_mr() 260 mr->ibmr.rkey = mr->mr.lkey; in __rvt_alloc_mr() 414 rvt_qp_mr_clean(qp, mr->lkey); in rvt_dereg_clean_qp_cb() 447 if (mr->lkey) { in rvt_check_refs() [all …]
|
D | trace_mr.h | 31 __field(u32, lkey) 42 __entry->lkey = mr->lkey; 52 __entry->lkey, 91 __field(u32, lkey) 106 __entry->lkey = sge->mr->lkey; 122 __entry->lkey,
|
/linux-6.1.9/drivers/infiniband/hw/mthca/ |
D | mthca_wqe.h | 66 __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()
|
D | mthca_mr.c | 57 __be32 lkey; member 442 mr->ibmr.rkey = mr->ibmr.lkey = hw_index_to_key(dev, key); in mthca_mr_alloc() 470 memset_startat(mpt_entry, 0, lkey); in mthca_mr_alloc() 478 mthca_dbg(dev, "Dumping MPT entry %08x:\n", mr->ibmr.lkey); in mthca_mr_alloc() 542 static void mthca_free_region(struct mthca_dev *dev, u32 lkey) in mthca_free_region() argument 545 key_to_hw_index(dev, lkey)); in mthca_free_region() 547 mthca_free(&dev->mr_table.mpt_alloc, key_to_hw_index(dev, lkey)); in mthca_free_region() 555 key_to_hw_index(dev, mr->ibmr.lkey) & in mthca_free_mr() 560 mthca_free_region(dev, mr->ibmr.lkey); in mthca_free_mr()
|
D | mthca_provider.c | 415 srq->mr.ibmr.lkey = ucmd.lkey; in mthca_create_srq() 495 qp->mr.ibmr.lkey = ucmd.lkey; in mthca_create_qp() 614 cq->buf.mr.ibmr.lkey = ucmd.lkey; in mthca_create_cq() 701 u32 lkey; in mthca_resize_cq() local 719 lkey = cq->resize_buf->buf.mr.ibmr.lkey; in mthca_resize_cq() 725 lkey = ucmd.lkey; in mthca_resize_cq() 728 ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries)); in mthca_resize_cq()
|
D | mthca_srq.c | 53 __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()
|
/linux-6.1.9/include/uapi/rdma/ |
D | mthca-abi.h | 75 __u32 lkey; member 89 __u32 lkey; member 94 __u32 lkey; member 105 __u32 lkey; member
|
D | rvt-abi.h | 20 __u32 lkey; member
|
/linux-6.1.9/drivers/infiniband/sw/rxe/ |
D | rxe_mr.c | 53 u32 lkey = mr->elem.index << 8 | rxe_get_next_key(-1); in rxe_mr_init() local 54 u32 rkey = (access & IB_ACCESS_REMOTE) ? lkey : 0; in rxe_mr_init() 61 mr->lkey = mr->ibmr.lkey = lkey; in rxe_mr_init() 389 mr = lookup_mr(pd, access, sge->lkey, RXE_LOOKUP_LOCAL); in copy_data() 414 mr = lookup_mr(pd, access, sge->lkey, in copy_data() 507 if (unlikely((type == RXE_LOOKUP_LOCAL && mr->lkey != key) || in lookup_mr() 531 if (mr->rkey ? (key != mr->rkey) : (key != mr->lkey)) { in rxe_invalidate_mr() 533 __func__, key, (mr->rkey ? mr->rkey : mr->lkey)); in rxe_invalidate_mr() 576 __func__, mr->lkey); in rxe_reg_fast_mr() 588 if (unlikely((mr->lkey & ~0xff) != (key & ~0xff))) { in rxe_reg_fast_mr() [all …]
|
/linux-6.1.9/include/rdma/ |
D | rdmavt_mr.h | 36 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);
|
/linux-6.1.9/drivers/infiniband/ulp/iser/ |
D | iser_memory.c | 128 reg->sge.lkey = device->pd->local_dma_lkey; in iser_reg_dma() 142 " length=0x%x\n", reg->sge.lkey, reg->rkey, in iser_reg_dma() 293 sig_reg->sge.lkey = mr->lkey; in iser_reg_sig_mr() 299 sig_reg->sge.lkey, sig_reg->rkey, sig_reg->sge.addr, in iser_reg_sig_mr() 341 reg->sge.lkey = mr->lkey; in iser_fast_reg_mr() 347 reg->sge.lkey, reg->rkey, reg->sge.addr, reg->sge.length); in iser_fast_reg_mr()
|
D | iser_initiator.c | 131 tx_dsg->lkey = mem_reg->sge.lkey; in iser_prepare_write_cmd() 258 rx_sg->lkey = device->pd->local_dma_lkey; in iser_alloc_rx_descriptors() 447 tx_dsg->lkey = mem_reg->sge.lkey; in iser_send_data_out() 508 tx_dsg->lkey = device->pd->local_dma_lkey; in iser_send_control()
|
/linux-6.1.9/drivers/infiniband/hw/vmw_pvrdma/ |
D | pvrdma_mr.c | 94 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()
|
/linux-6.1.9/drivers/infiniband/core/ |
D | uverbs_std_types_mr.c | 146 ret = uverbs_copy_to(attrs, UVERBS_ATTR_REG_DM_MR_RESP_LKEY, &mr->lkey, in UVERBS_HANDLER() 147 sizeof(mr->lkey)); in UVERBS_HANDLER() 163 ret = uverbs_copy_to(attrs, UVERBS_ATTR_QUERY_MR_RESP_LKEY, &mr->lkey, in UVERBS_HANDLER() 164 sizeof(mr->lkey)); in UVERBS_HANDLER() 260 &mr->lkey, sizeof(mr->lkey)); in UVERBS_HANDLER()
|
D | rw.c | 80 reg->inv_wr.ex.invalidate_rkey = reg->mr->lkey; in rdma_rw_inv_key() 169 reg->wr.wr.ex.invalidate_rkey = reg->mr->lkey; in rdma_rw_init_mr_wrs() 230 sge->lkey = qp->pd->local_dma_lkey; in rdma_rw_init_map_wrs() 259 ctx->single.sge.lkey = qp->pd->local_dma_lkey; in rdma_rw_init_single_wr() 434 ctx->reg->reg_wr.key = ctx->reg->mr->lkey; in rdma_rw_ctx_signature_init() 478 ib_update_fast_reg_key(reg->mr, ib_inc_rkey(reg->mr->lkey)); in rdma_rw_update_lkey() 479 reg->reg_wr.key = reg->mr->lkey; in rdma_rw_update_lkey() 480 reg->sge.lkey = reg->mr->lkey; in rdma_rw_update_lkey()
|
/linux-6.1.9/drivers/infiniband/sw/siw/ |
D | siw_mem.c | 121 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()
|
D | siw_verbs.h | 30 siw_sge->lkey = sge->lkey; in siw_copy_sgl()
|
D | siw_qp.c | 279 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()
|
D | siw_qp_rx.c | 176 srx->ddp_stag = wqe->sqe.sge[0].lkey; in siw_rresp_check_ntoh() 368 wqe->rqe.sge[i].lkey = rqe->sge[i].lkey; in siw_rqe_get() 668 lkey = be32_to_cpu(srx->hdr.rreq.source_stag), in siw_init_rresp() local 705 resp->sge[0].lkey = lkey; in siw_init_rresp() 761 wqe->sqe.sge[0].lkey = orqe->sge[0].lkey; in siw_orqe_start_rx() 1286 rv = siw_invalidate_stag(qp->pd, wqe->sqe.sge[0].lkey); in siw_rdmap_complete()
|
/linux-6.1.9/drivers/infiniband/hw/mlx4/ |
D | srq.c | 160 scatter->lkey = cpu_to_be32(MLX4_INVALID_LKEY); in mlx4_ib_create_srq() 347 scat[i].lkey = cpu_to_be32(wr->sg_list[i].lkey); in mlx4_ib_post_srq_recv() 353 scat[i].lkey = cpu_to_be32(MLX4_INVALID_LKEY); in mlx4_ib_post_srq_recv()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_send.c | 16 u32 lkey; member 256 wq_dseg->lkey = cpu_to_be32(data_seg->lkey); in dr_rdma_segments() 353 send_info->read.lkey = send_ring->mr->mkey; in dr_fill_data_segs() 391 send_info->write.lkey = send_ring->mr->mkey; in dr_postsend_icm_data() 454 send_info.write.lkey = 0; in mlx5dr_send_postsend_ste() 513 send_info.write.lkey = 0; in mlx5dr_send_postsend_htbl() 570 send_info.write.lkey = 0; in mlx5dr_send_postsend_formatted_htbl() 594 send_info.write.lkey = 0; in mlx5dr_send_postsend_action() 1040 send_info.write.lkey = 0; in mlx5dr_send_ring_force_drain()
|
/linux-6.1.9/net/smc/ |
D | smc_wr.c | 567 lnk->wr_tx_sges[i].lkey = lnk->roce_pd->local_dma_lkey; in smc_wr_init_sge() 568 lnk->wr_tx_rdma_sges[i].tx_rdma_sge[0].wr_tx_rdma_sge[0].lkey = in smc_wr_init_sge() 570 lnk->wr_tx_rdma_sges[i].tx_rdma_sge[0].wr_tx_rdma_sge[1].lkey = in smc_wr_init_sge() 572 lnk->wr_tx_rdma_sges[i].tx_rdma_sge[1].wr_tx_rdma_sge[0].lkey = in smc_wr_init_sge() 574 lnk->wr_tx_rdma_sges[i].tx_rdma_sge[1].wr_tx_rdma_sge[1].lkey = in smc_wr_init_sge() 595 lnk->wr_tx_v2_sge->lkey = lnk->roce_pd->local_dma_lkey; in smc_wr_init_sge() 617 lnk->wr_rx_sges[x].lkey = lnk->roce_pd->local_dma_lkey; in smc_wr_init_sge() 623 lnk->wr_rx_sges[x + 1].lkey = in smc_wr_init_sge()
|
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.c | 115 sg_list[i].lkey = ib_sg_list[i].lkey; in bnxt_re_build_sgl() 400 wqe->bind.parent_l_key = ib_mr->lkey; in bnxt_re_create_fence_wqe() 455 if (mr->ib_mr.lkey) in bnxt_re_destroy_fence_mr() 507 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_create_fence_mr() 2241 wqe->sg_list[i].lkey = wqe->sg_list[i - 1].lkey; in bnxt_re_build_qp1_send_v2() 2267 wqe->sg_list[0].lkey = sge.lkey; in bnxt_re_build_qp1_send_v2() 2306 ref.lkey = wqe->sg_list[0].lkey; in bnxt_re_build_qp1_shadow_qp_recv() 2313 wqe->sg_list[0].lkey = sge.lkey; in bnxt_re_build_qp1_shadow_qp_recv() 2318 sqp_entry->sge.lkey = ref.lkey; in bnxt_re_build_qp1_shadow_qp_recv() 3198 s_sge[0].lkey = 0xFFFFFFFF; in bnxt_re_process_raw_qp_pkt_rx() [all …]
|
/linux-6.1.9/net/rds/ |
D | ib_send.c | 208 sge->lkey = ic->i_pd->local_dma_lkey; in rds_ib_send_init_ring() 210 send->s_sge[1].lkey = ic->i_pd->local_dma_lkey; in rds_ib_send_init_ring() 638 send->s_sge[0].lkey = ic->i_pd->local_dma_lkey; in rds_ib_xmit() 658 send->s_sge[1].lkey = ic->i_pd->local_dma_lkey; in rds_ib_xmit() 822 send->s_sge[0].lkey = ic->i_pd->local_dma_lkey; in rds_ib_xmit_atomic() 947 send->s_sge[j].lkey = ic->i_pd->local_dma_lkey; in rds_ib_xmit_rdma() 950 send->s_sge[j].lkey = odp_lkey; in rds_ib_xmit_rdma()
|
/linux-6.1.9/drivers/infiniband/hw/erdma/ |
D | erdma_verbs.c | 117 FIELD_PREP(ERDMA_CMD_MR_KEY_MASK, mr->ibmr.lkey & 0xFF) | in regmr_cmd() 118 FIELD_PREP(ERDMA_CMD_MR_MPT_IDX_MASK, mr->ibmr.lkey >> 8); in regmr_cmd() 786 mr->ibmr.lkey = stag; in erdma_get_dma_mr() 798 mr->ibmr.lkey >> 8); in erdma_get_dma_mr() 830 mr->ibmr.lkey = stag; in erdma_ib_alloc_mr() 869 mr->ibmr.lkey >> 8); in erdma_ib_alloc_mr() 928 mr->ibmr.lkey = mr->ibmr.rkey = stag; in erdma_reg_user_mr() 944 mr->ibmr.lkey >> 8); in erdma_reg_user_mr() 967 req.cfg = FIELD_PREP(ERDMA_CMD_MR_MPT_IDX_MASK, ibmr->lkey >> 8) | in erdma_dereg_mr() 968 FIELD_PREP(ERDMA_CMD_MR_KEY_MASK, ibmr->lkey & 0xFF); in erdma_dereg_mr() [all …]
|