/Linux-v6.6/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-v6.6/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-v6.6/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-v6.6/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-v6.6/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() 262 rx_sg->lkey = device->pd->local_dma_lkey; in iser_alloc_rx_descriptors() 450 tx_dsg->lkey = mem_reg->sge.lkey; in iser_send_data_out() 509 tx_dsg->lkey = device->pd->local_dma_lkey; in iser_send_control()
|
/Linux-v6.6/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-v6.6/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-v6.6/drivers/infiniband/sw/rxe/ |
D | rxe_mr.c | 57 mr->lkey = mr->ibmr.lkey = key; in rxe_mr_init() 357 mr = lookup_mr(pd, access, sge->lkey, RXE_LOOKUP_LOCAL); in copy_data() 382 mr = lookup_mr(pd, access, sge->lkey, in copy_data() 627 if (unlikely((type == RXE_LOOKUP_LOCAL && mr->lkey != key) || in lookup_mr() 653 if (remote ? (key != mr->rkey) : (key != mr->lkey)) { in rxe_invalidate_mr() 655 key, (remote ? mr->rkey : mr->lkey)); in rxe_invalidate_mr() 696 rxe_dbg_mr(mr, "mr->lkey = 0x%x not free\n", mr->lkey); in rxe_reg_fast_mr() 707 if (unlikely((mr->lkey & ~0xff) != (key & ~0xff))) { in rxe_reg_fast_mr() 709 key, mr->lkey); in rxe_reg_fast_mr() 714 mr->lkey = key; in rxe_reg_fast_mr()
|
/Linux-v6.6/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 | 282 wqe->sqe.sge[0].lkey = 0; in siw_qp_mpa_rts() 489 rreq->source_stag = htonl(wqe->sqe.sge[0].lkey); in siw_send_terminate() 878 rreq->sge[0].lkey = sqe->sge[0].lkey; in siw_read_to_orq() 879 rreq->sge[1].lkey = sqe->sge[1].lkey; in siw_read_to_orq() 915 wqe->sqe.sge[0].lkey = 0; in siw_activate_tx_from_sq() 1011 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-v6.6/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-v6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_send.c | 17 u32 lkey; member 504 wq_dseg->lkey = cpu_to_be32(data_seg->lkey); in dr_rdma_handle_icm_write_segments() 677 send_info->write.lkey = send_ring->mr->mkey; in dr_fill_write_icm_segs() 683 if (!send_info->write.lkey) in dr_fill_write_icm_segs() 696 send_info->read.lkey = send_ring->sync_mr->mkey; in dr_fill_write_icm_segs() 793 send_info.write.lkey = 0; in mlx5dr_send_postsend_ste() 852 send_info.write.lkey = 0; in mlx5dr_send_postsend_htbl() 909 send_info.write.lkey = 0; in mlx5dr_send_postsend_formatted_htbl() 932 send_info.write.lkey = 0; in mlx5dr_send_postsend_action() 977 send_info.write.lkey = 0; in mlx5dr_send_postsend_args() [all …]
|
/Linux-v6.6/net/smc/ |
D | smc_wr.c | 566 lnk->wr_tx_sges[i].lkey = lnk->roce_pd->local_dma_lkey; in smc_wr_init_sge() 567 lnk->wr_tx_rdma_sges[i].tx_rdma_sge[0].wr_tx_rdma_sge[0].lkey = in smc_wr_init_sge() 569 lnk->wr_tx_rdma_sges[i].tx_rdma_sge[0].wr_tx_rdma_sge[1].lkey = in smc_wr_init_sge() 571 lnk->wr_tx_rdma_sges[i].tx_rdma_sge[1].wr_tx_rdma_sge[0].lkey = in smc_wr_init_sge() 573 lnk->wr_tx_rdma_sges[i].tx_rdma_sge[1].wr_tx_rdma_sge[1].lkey = in smc_wr_init_sge() 594 lnk->wr_tx_v2_sge->lkey = lnk->roce_pd->local_dma_lkey; in smc_wr_init_sge() 616 lnk->wr_rx_sges[x].lkey = lnk->roce_pd->local_dma_lkey; in smc_wr_init_sge() 622 lnk->wr_rx_sges[x + 1].lkey = in smc_wr_init_sge()
|
/Linux-v6.6/drivers/infiniband/hw/mana/ |
D | mr.c | 69 mr->ibmr.lkey = resp.lkey; in mana_ib_gd_create_mr()
|
/Linux-v6.6/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-v6.6/drivers/infiniband/hw/bnxt_re/ |
D | ib_verbs.c | 124 sg_list[i].lkey = ib_sg_list[i].lkey; in bnxt_re_build_sgl() 410 wqe->bind.parent_l_key = ib_mr->lkey; in bnxt_re_create_fence_wqe() 465 if (mr->ib_mr.lkey) in bnxt_re_destroy_fence_mr() 517 mr->ib_mr.lkey = mr->qplib_mr.lkey; in bnxt_re_create_fence_mr() 2352 wqe->sg_list[i].lkey = wqe->sg_list[i - 1].lkey; in bnxt_re_build_qp1_send_v2() 2378 wqe->sg_list[0].lkey = sge.lkey; in bnxt_re_build_qp1_send_v2() 2417 ref.lkey = wqe->sg_list[0].lkey; in bnxt_re_build_qp1_shadow_qp_recv() 2424 wqe->sg_list[0].lkey = sge.lkey; in bnxt_re_build_qp1_shadow_qp_recv() 2429 sqp_entry->sge.lkey = ref.lkey; in bnxt_re_build_qp1_shadow_qp_recv() 3407 s_sge[0].lkey = 0xFFFFFFFF; in bnxt_re_process_raw_qp_pkt_rx() [all …]
|