/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_user.h | 74 __u32 lkey; member 88 __u32 lkey; member 93 __u32 lkey; member 104 __u32 lkey; member
|
D | mthca_mr.c | 57 __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() [all …]
|
D | mthca_srq.c | 51 __be32 lkey; member 60 __be32 lkey; member 104 context->lkey = cpu_to_be32(srq->mr.ibmr.lkey); in mthca_tavor_init_srq_context() 129 context->lkey = cpu_to_be32(srq->mr.ibmr.lkey); in mthca_arbel_init_srq_context() 191 scatter->lkey = cpu_to_be32(MTHCA_INVAL_LKEY); in mthca_alloc_srq_buf()
|
D | mthca_provider.c | 470 srq->mr.ibmr.lkey = ucmd.lkey; in mthca_create_srq() 565 qp->mr.ibmr.lkey = ucmd.lkey; in mthca_create_qp() 690 cq->buf.mr.ibmr.lkey = ucmd.lkey; in mthca_create_cq() 781 u32 lkey; in mthca_resize_cq() local 799 lkey = cq->resize_buf->buf.mr.ibmr.lkey; in mthca_resize_cq() 805 lkey = ucmd.lkey; in mthca_resize_cq() 808 ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries)); in mthca_resize_cq()
|
/drivers/infiniband/sw/rdmavt/ |
D | mr.c | 206 mr->lkey = (r << (32 - dev->dparms.lkey_table_size)) | in rvt_alloc_lkey() 209 if (mr->lkey == 0) { in rvt_alloc_lkey() 210 mr->lkey |= 1 << 8; in rvt_alloc_lkey() 233 u32 lkey = mr->lkey; in rvt_free_lkey() local 242 if (lkey == 0) { in rvt_free_lkey() 245 r = lkey >> (32 - dev->dparms.lkey_table_size); in rvt_free_lkey() 280 mr->ibmr.lkey = mr->mr.lkey; in __rvt_alloc_mr() 281 mr->ibmr.rkey = mr->mr.lkey; in __rvt_alloc_mr() 552 if (!mr->mr.lkey || mr->umem) in rvt_fast_reg_mr() 555 if ((key & 0xFFFFFF00) != (mr->mr.lkey & 0xFFFFFF00)) in rvt_fast_reg_mr() [all …]
|
/drivers/infiniband/hw/qib/ |
D | qib_keys.c | 93 mr->lkey = (r << (32 - ib_rvt_lkey_table_size)) | in qib_alloc_lkey() 96 if (mr->lkey == 0) { in qib_alloc_lkey() 97 mr->lkey |= 1 << 8; in qib_alloc_lkey() 120 u32 lkey = mr->lkey; in qib_free_lkey() local 128 if (lkey == 0) in qib_free_lkey() 131 r = lkey >> (32 - ib_rvt_lkey_table_size); in qib_free_lkey() 190 if (unlikely(!mr || mr->lkey != rkey || qp->ibqp.pd != mr->pd)) in qib_rkey_ok()
|
/drivers/infiniband/sw/rxe/ |
D | rxe_mr.c | 79 u32 lkey = mem->pelem.index << 8 | rxe_get_key(); in rxe_mem_init() local 80 u32 rkey = (access & IB_ACCESS_REMOTE) ? lkey : 0; in rxe_mem_init() 83 mem->ibmr.lkey = lkey; in rxe_mem_init() 87 mem->lkey = lkey; in rxe_mem_init() 249 mem->ibmr.rkey = mem->ibmr.lkey; in rxe_mem_init_fast() 460 mem = lookup_mem(pd, access, sge->lkey, lookup_local); in copy_data() 485 mem = lookup_mem(pd, access, sge->lkey, in copy_data() 582 if ((type == lookup_local && mem->lkey != key) || in lookup_mem()
|
/drivers/infiniband/ulp/iser/ |
D | iser_memory.c | 197 reg->sge.lkey = device->pd->local_dma_lkey; in iser_reg_dma() 211 " length=0x%x\n", reg->sge.lkey, reg->rkey, in iser_reg_dma() 259 reg->sge.lkey = fmr->fmr->lkey; in iser_fast_reg_fmr() 266 " length=0x%x\n", reg->sge.lkey, reg->rkey, in iser_fast_reg_fmr() 425 sig_reg->sge.lkey = mr->lkey; in iser_reg_sig_mr() 431 sig_reg->sge.lkey, sig_reg->rkey, sig_reg->sge.addr, in iser_reg_sig_mr() 473 reg->sge.lkey = mr->lkey; in iser_fast_reg_mr() 479 reg->sge.lkey, reg->rkey, reg->sge.addr, reg->sge.length); in iser_fast_reg_mr()
|
D | iser_initiator.c | 154 tx_dsg->lkey = mem_reg->sge.lkey; in iser_prepare_write_cmd() 278 rx_sg->lkey = device->pd->local_dma_lkey; in iser_alloc_rx_descriptors() 472 tx_dsg->lkey = mem_reg->sge.lkey; in iser_send_data_out() 535 tx_dsg->lkey = device->pd->local_dma_lkey; in iser_send_control()
|
/drivers/infiniband/core/ |
D | rw.c | 82 reg->inv_wr.ex.invalidate_rkey = reg->mr->lkey; in rdma_rw_init_one_mr() 151 reg->wr.wr.ex.invalidate_rkey = reg->mr->lkey; in rdma_rw_init_mr_wrs() 213 sge->lkey = qp->pd->local_dma_lkey; in rdma_rw_init_map_wrs() 243 ctx->single.sge.lkey = qp->pd->local_dma_lkey; in rdma_rw_init_single_wr() 476 ib_update_fast_reg_key(reg->mr, ib_inc_rkey(reg->mr->lkey)); in rdma_rw_update_lkey() 477 reg->reg_wr.key = reg->mr->lkey; in rdma_rw_update_lkey() 478 reg->sge.lkey = reg->mr->lkey; in rdma_rw_update_lkey() 509 ib_inc_rkey(ctx->sig->sig_mr->lkey)); in rdma_rw_ctx_wrs() 510 ctx->sig->sig_sge.lkey = ctx->sig->sig_mr->lkey; in rdma_rw_ctx_wrs()
|
/drivers/infiniband/hw/mlx4/ |
D | mr.c | 76 mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key; in mlx4_ib_get_dma_mr() 173 mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key; in mlx4_ib_reg_user_mr() 413 mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key; in mlx4_ib_alloc_mr() 449 fmr->ibfmr.rkey = fmr->ibfmr.lkey = fmr->mfmr.mr.key; in mlx4_ib_fmr_alloc() 469 &ifmr->ibfmr.lkey, &ifmr->ibfmr.rkey); in mlx4_ib_map_phys_fmr() 490 mlx4_fmr_unmap(mdev, &ifmr->mfmr, &ifmr->ibfmr.lkey, &ifmr->ibfmr.rkey); in mlx4_ib_unmap_fmr()
|
D | srq.c | 162 scatter->lkey = cpu_to_be32(MLX4_INVALID_LKEY); in mlx4_ib_create_srq() 356 scat[i].lkey = cpu_to_be32(wr->sg_list[i].lkey); in mlx4_ib_post_srq_recv() 362 scat[i].lkey = cpu_to_be32(MLX4_INVALID_LKEY); in mlx4_ib_post_srq_recv()
|
/drivers/net/ethernet/ibm/ehea/ |
D | ehea_main.c | 503 rwqe->sg_list[0].l_key = pr->recv_mr.lkey; in ehea_refill_rq_def() 1632 u32 lkey) in write_swqe2_immediate() argument 1656 sg1entry->l_key = lkey; in write_swqe2_immediate() 1669 struct ehea_swqe *swqe, u32 lkey) in write_swqe2_data() argument 1680 write_swqe2_immediate(skb, swqe, lkey); in write_swqe2_data() 1689 sg1entry->l_key = lkey; in write_swqe2_data() 1702 sgentry->l_key = lkey; in write_swqe2_data() 2025 struct ehea_swqe *swqe, u32 lkey) in ehea_xmit2() argument 2031 write_swqe2_data(skb, dev, swqe, lkey); in ehea_xmit2() 2054 u32 lkey; in ehea_start_xmit() local [all …]
|
D | ehea_phyp.c | 464 mr->lkey = (u32)outs[2]; in ehea_h_register_smr() 493 const u32 pd, u64 *mr_handle, u32 *lkey) in ehea_h_alloc_resource_mr() argument 509 *lkey = (u32)outs[2]; in ehea_h_alloc_resource_mr()
|
/drivers/infiniband/hw/cxgb3/ |
D | iwch_qp.c | 77 wqe->send.sgl[i].stag = cpu_to_be32(wr->sg_list[i].lkey); in build_rdma_send() 115 cpu_to_be32(wr->sg_list[i].lkey); in build_rdma_write() 142 wqe->read.local_stag = cpu_to_be32(wr->sg_list[0].lkey); in build_rdma_read() 209 mhp = get_mhp(rhp, (sg_list[i].lkey) >> 8); in iwch_sgl2pbl_map() 265 wqe->recv.sgl[i].stag = cpu_to_be32(wr->sg_list[i].lkey); in build_rdma_recv() 329 if (wr->sg_list[i].lkey != 0) in build_zero_stag_recv() 498 if (wr->sg_list[0].lkey) in iwch_post_receive()
|
D | iwch_mem.c | 50 mhp->ibmr.rkey = mhp->ibmr.lkey = stag; in iwch_finish_mem_reg()
|
/drivers/infiniband/hw/mlx5/ |
D | srq.c | 472 scat[i].lkey = cpu_to_be32(wr->sg_list[i].lkey); in mlx5_ib_post_srq_recv() 478 scat[i].lkey = cpu_to_be32(MLX5_INVALID_LKEY); in mlx5_ib_post_srq_recv()
|
D | mr.c | 735 mr->ibmr.lkey = mr->mmkey.key; in mlx5_ib_get_dma_mr() 805 sg->lkey = dev->umrc.pd->local_dma_lkey; in prep_umr_wqe_common() 1052 sg.lkey = dev->umrc.pd->local_dma_lkey; in mlx5_ib_update_mtt() 1175 mr->ibmr.lkey = mr->mmkey.key; in set_mr_fileds() 1656 mr->ibmr.lkey = mr->mmkey.key; in mlx5_ib_alloc_mr() 1793 if (ibmr->lkey == mmr->sig->err_item.key) in mlx5_ib_check_mr_status() 1819 u32 lkey = mr->ibmr.pd->local_dma_lkey; in mlx5_ib_sg_to_klms() local 1830 klms[i].key = cpu_to_be32(lkey); in mlx5_ib_sg_to_klms()
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_verbs.c | 220 priv->tx_sge[i].lkey = priv->pd->local_dma_lkey; in ipoib_transport_dev_init() 226 priv->rx_sge[0].lkey = priv->pd->local_dma_lkey; in ipoib_transport_dev_init()
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 796 mr->ibmr.lkey = mr->hwmr.lkey; in ocrdma_alloc_lkey() 798 mr->ibmr.rkey = mr->hwmr.lkey; in ocrdma_alloc_lkey() 996 mr->ibmr.lkey = mr->hwmr.lkey; in ocrdma_reg_user_mr() 998 mr->ibmr.rkey = mr->hwmr.lkey; in ocrdma_reg_user_mr() 1014 (void) ocrdma_mbx_dealloc_lkey(dev, mr->hwmr.fr_mr, mr->hwmr.lkey); in ocrdma_dereg_mr() 2018 sge[i].lrkey = sg_list[i].lkey; in ocrdma_build_sges() 2167 hdr->lkey = wr->key; in ocrdma_build_reg() 2258 hdr->lkey = wr->ex.invalidate_rkey; in ocrdma_post_send() 2277 hdr->lkey = wr->ex.invalidate_rkey; in ocrdma_post_send() 3058 mr->ibmr.rkey = mr->hwmr.lkey; in ocrdma_alloc_mr() [all …]
|
D | ocrdma_hw.h | 119 int ocrdma_mbx_dealloc_lkey(struct ocrdma_dev *, int fmr, u32 lkey);
|
/drivers/infiniband/ulp/isert/ |
D | ib_isert.c | 202 rx_sg->lkey = device->pd->local_dma_lkey; in isert_alloc_rx_descriptors() 897 if (tx_desc->tx_sg[0].lkey != device->pd->local_dma_lkey) { in isert_create_send_desc() 898 tx_desc->tx_sg[0].lkey = device->pd->local_dma_lkey; in isert_create_send_desc() 921 tx_desc->tx_sg[0].lkey = device->pd->local_dma_lkey; in isert_init_tx_hdrs() 925 tx_desc->tx_sg[0].lkey); in isert_init_tx_hdrs() 961 sge.lkey = isert_conn->device->pd->local_dma_lkey; in isert_login_post_recv() 964 sge.addr, sge.length, sge.lkey); in isert_login_post_recv() 1010 tx_dsg->lkey = isert_conn->device->pd->local_dma_lkey; in isert_put_login_tx() 1859 tx_dsg->lkey = device->pd->local_dma_lkey; in isert_put_response() 1985 tx_dsg->lkey = device->pd->local_dma_lkey; in isert_put_reject() [all …]
|
/drivers/infiniband/ulp/srp/ |
D | ib_srp.h | 185 u32 lkey; member
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | mr.c | 1000 int npages, u64 iova, u32 *lkey, u32 *rkey) in mlx4_map_phys_fmr() argument 1013 *lkey = *rkey = fmr->mr.key = hw_index_to_key(key); in mlx4_map_phys_fmr() 1030 fmr->mpt->lkey = cpu_to_be32(key); in mlx4_map_phys_fmr() 1108 u32 *lkey, u32 *rkey) in mlx4_fmr_unmap() argument
|