/drivers/infiniband/hw/ipath/ |
D | ipath_keys.c | 75 mr->lkey = (r << (32 - ib_ipath_lkey_table_size)) | in ipath_alloc_lkey() 78 if (mr->lkey == 0) { in ipath_alloc_lkey() 79 mr->lkey |= 1 << 8; in ipath_alloc_lkey() 96 void ipath_free_lkey(struct ipath_lkey_table *rkt, u32 lkey) in ipath_free_lkey() argument 101 if (lkey == 0) in ipath_free_lkey() 103 r = lkey >> (32 - ib_ipath_lkey_table_size); in ipath_free_lkey() 134 if (sge->lkey == 0) { in ipath_lkey_ok() 149 mr = rkt->table[(sge->lkey >> (32 - ib_ipath_lkey_table_size))]; in ipath_lkey_ok() 150 if (unlikely(mr == NULL || mr->lkey != sge->lkey || in ipath_lkey_ok() 233 if (unlikely(mr == NULL || mr->lkey != rkey || in ipath_rkey_ok()
|
D | ipath_mr.c | 107 mr->ibmr.rkey = mr->ibmr.lkey = mr->mr.lkey; in alloc_mr() 260 ipath_free_lkey(&to_idev(ibmr->device)->lk_table, ibmr->lkey); in ipath_dereg_mr() 310 fmr->ibfmr.rkey = fmr->ibfmr.lkey = fmr->mr.lkey; in ipath_alloc_fmr() 419 ipath_free_lkey(&to_idev(ibfmr->device)->lk_table, ibfmr->lkey); in ipath_dealloc_fmr()
|
/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 | 465 srq->mr.ibmr.lkey = ucmd.lkey; in mthca_create_srq() 560 qp->mr.ibmr.lkey = ucmd.lkey; in mthca_create_qp() 681 cq->buf.mr.ibmr.lkey = ucmd.lkey; in mthca_create_cq() 772 u32 lkey; in mthca_resize_cq() local 790 lkey = cq->resize_buf->buf.mr.ibmr.lkey; in mthca_resize_cq() 796 lkey = ucmd.lkey; in mthca_resize_cq() 799 ret = mthca_RESIZE_CQ(dev, cq->cqn, lkey, ilog2(entries)); in mthca_resize_cq()
|
/drivers/infiniband/hw/qib/ |
D | qib_keys.c | 93 mr->lkey = (r << (32 - ib_qib_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_qib_lkey_table_size); in qib_free_lkey() 167 if (sge->lkey == 0) { in qib_lkey_ok() 188 rkt->table[(sge->lkey >> (32 - ib_qib_lkey_table_size))]); in qib_lkey_ok() 189 if (unlikely(!mr || mr->lkey != sge->lkey || mr->pd != &pd->ibpd)) in qib_lkey_ok() 289 if (unlikely(!mr || mr->lkey != rkey || qp->ibqp.pd != mr->pd)) in qib_rkey_ok() [all …]
|
D | qib_mr.c | 160 mr->ibmr.lkey = mr->mr.lkey; in alloc_mr() 161 mr->ibmr.rkey = mr->mr.lkey; in alloc_mr() 404 fmr->ibfmr.rkey = fmr->mr.lkey; in qib_alloc_fmr() 405 fmr->ibfmr.lkey = fmr->mr.lkey; in qib_alloc_fmr()
|
/drivers/infiniband/hw/ehca/ |
D | ehca_mrmw.c | 176 &e_maxmr->ib.ib_mr.lkey, in ehca_get_dma_mr() 260 e_pd, &e_mr->ib.ib_mr.lkey, in ehca_reg_phys_mr() 289 e_pd, &pginfo, &e_mr->ib.ib_mr.lkey, in ehca_reg_phys_mr() 405 e_pd, &pginfo, &e_mr->ib.ib_mr.lkey, in ehca_reg_user_mr() 492 mr, shca->maxmr, mr->lkey); in ehca_rereg_phys_mr() 577 mr->lkey = tmp_lkey; in ehca_rereg_phys_mr() 619 e_mr->ipz_mr_handle.handle, mr->lkey); in ehca_query_mr() 626 mr_attr->lkey = hipzout.lkey; in ehca_query_mr() 658 mr, shca->maxmr, mr->lkey); in ehca_dereg_mr() 669 e_mr->ipz_mr_handle.handle, mr->lkey); in ehca_dereg_mr() [all …]
|
D | ehca_mrmw.h | 57 u32 *lkey, 72 u32 *lkey, 84 u32 *lkey, 96 u32 *lkey,
|
D | ehca_reqs.c | 93 wqe_p->u.all_rcv.sg_list[cnt_ds].lkey = in ehca_write_rwqe() 94 recv_wr->sg_list[cnt_ds].lkey; in ehca_write_rwqe() 141 idx, j, data, sge->length, sge->lkey); in trace_send_wr_ud() 249 wqe_p->u.ud_av.sg_list[idx].lkey = in ehca_write_swqe() 250 send_wr->sg_list[idx].lkey; in ehca_write_swqe() 283 wqe_p->u.nud.sg_list[idx].lkey = in ehca_write_swqe() 284 send_wr->sg_list[idx].lkey; in ehca_write_swqe()
|
D | ehca_qes.h | 52 u32 lkey; member 192 u32 lkey; member
|
/drivers/infiniband/ulp/iser/ |
D | iser_memory.c | 410 regd_buf->reg.lkey = device->mr->lkey; in iser_reg_rdma_mem_fmr() 418 (unsigned int)regd_buf->reg.lkey, in iser_reg_rdma_mem_fmr() 588 sig_sge->lkey = pi_ctx->sig_mr->lkey; in iser_reg_sig_mr() 599 sig_sge->lkey); in iser_reg_sig_mr() 625 sge->lkey = device->mr->lkey; in iser_fast_reg_mr() 630 sge->lkey, sge->addr, sge->length); in iser_fast_reg_mr() 686 sge->lkey = mr->lkey; in iser_fast_reg_mr() 771 regd_buf->reg.lkey = sig_sge.lkey; in iser_reg_rdma_mem_fastreg() 785 regd_buf->reg.lkey = data_sge.lkey; in iser_reg_rdma_mem_fastreg()
|
D | iser_initiator.c | 155 tx_dsg->lkey = regd_buf->reg.lkey; in iser_prepare_write_cmd() 176 if (tx_desc->tx_sg[0].lkey != device->mr->lkey) { in iser_create_send_desc() 177 tx_desc->tx_sg[0].lkey = device->mr->lkey; in iser_create_send_desc() 294 rx_sg->lkey = device->mr->lkey; in iser_alloc_rx_descriptors() 484 tx_dsg->lkey = regd_buf->reg.lkey; in iser_send_data_out() 546 tx_dsg->lkey = device->mr->lkey; in iser_send_control()
|
/drivers/infiniband/ulp/ipoib/ |
D | ipoib_verbs.c | 212 priv->tx_sge[i].lkey = priv->mr->lkey; in ipoib_transport_dev_init() 218 priv->rx_sge[0].lkey = priv->mr->lkey; in ipoib_transport_dev_init() 222 priv->rx_sge[1].lkey = priv->mr->lkey; in ipoib_transport_dev_init()
|
/drivers/infiniband/hw/amso1100/ |
D | c2_user.h | 60 __u32 lkey; member 74 __u32 lkey; member
|
D | c2_mm.c | 280 mr->ibmr.lkey = mr->ibmr.rkey = be32_to_cpu(reply->stag_index); in c2_nsmr_register_phys_kern() 294 cpu_to_be32(mr->ibmr.lkey), in c2_nsmr_register_phys_kern()
|
/drivers/infiniband/ulp/isert/ |
D | ib_isert.c | 202 rx_sg->lkey = isert_conn->conn_mr->lkey; in isert_alloc_rx_descriptors() 1053 if (tx_desc->tx_sg[0].lkey != isert_conn->conn_mr->lkey) { in isert_create_send_desc() 1054 tx_desc->tx_sg[0].lkey = isert_conn->conn_mr->lkey; in isert_create_send_desc() 1076 tx_desc->tx_sg[0].lkey = isert_conn->conn_mr->lkey; in isert_init_tx_hdrs() 1080 tx_desc->tx_sg[0].length, tx_desc->tx_sg[0].lkey); in isert_init_tx_hdrs() 1125 sge.lkey = isert_conn->conn_mr->lkey; in isert_rdma_post_recvl() 1128 sge.addr, sge.length, sge.lkey); in isert_rdma_post_recvl() 1175 tx_dsg->lkey = isert_conn->conn_mr->lkey; in isert_put_login_tx() 2315 tx_dsg->lkey = isert_conn->conn_mr->lkey; in isert_put_response() 2442 tx_dsg->lkey = isert_conn->conn_mr->lkey; in isert_put_reject() [all …]
|
/drivers/infiniband/hw/mlx4/ |
D | mr.c | 75 mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key; in mlx4_ib_get_dma_mr() 172 mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key; in mlx4_ib_reg_user_mr() 374 mr->ibmr.rkey = mr->ibmr.lkey = mr->mmr.key; in mlx4_ib_alloc_fast_reg_mr() 454 fmr->ibfmr.rkey = fmr->ibfmr.lkey = fmr->mfmr.mr.key; in mlx4_ib_fmr_alloc() 474 &ifmr->ibfmr.lkey, &ifmr->ibfmr.rkey); in mlx4_ib_map_phys_fmr() 495 mlx4_fmr_unmap(mdev, &ifmr->mfmr, &ifmr->ibfmr.lkey, &ifmr->ibfmr.rkey); in mlx4_ib_unmap_fmr()
|
D | srq.c | 161 scatter->lkey = cpu_to_be32(MLX4_INVALID_LKEY); in mlx4_ib_create_srq() 343 scat[i].lkey = cpu_to_be32(wr->sg_list[i].lkey); in mlx4_ib_post_srq_recv() 349 scat[i].lkey = cpu_to_be32(MLX4_INVALID_LKEY); in mlx4_ib_post_srq_recv()
|
/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() 208 mhp = get_mhp(rhp, (sg_list[i].lkey) >> 8); in iwch_sgl2pbl_map() 264 wqe->recv.sgl[i].stag = cpu_to_be32(wr->sg_list[i].lkey); in build_rdma_recv() 328 if (wr->sg_list[i].lkey != 0) in build_zero_stag_recv() 497 if (wr->sg_list[0].lkey) in iwch_post_receive() 571 sgl.lkey = mw_bind->bind_info.mr->lkey; in iwch_bind_mw() 579 wqe->bind.mr_stag = cpu_to_be32(mw_bind->bind_info.mr->lkey); in iwch_bind_mw()
|
/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_verbs.c | 623 mr->ibmr.lkey = mr->hwmr.lkey; in ocrdma_alloc_lkey() 625 mr->ibmr.rkey = mr->hwmr.lkey; in ocrdma_alloc_lkey() 823 mr->ibmr.lkey = mr->hwmr.lkey; in ocrdma_reg_user_mr() 825 mr->ibmr.rkey = mr->hwmr.lkey; in ocrdma_reg_user_mr() 842 status = ocrdma_mbx_dealloc_lkey(dev, mr->hwmr.fr_mr, mr->hwmr.lkey); in ocrdma_dereg_mr() 1841 sge[i].lrkey = sg_list[i].lkey; in ocrdma_build_sges() 2026 hdr->lkey = wr->wr.fast_reg.rkey; in ocrdma_build_fr() 2040 qp->dev->stag_arr[(hdr->lkey >> 8) & (OCRDMA_MAX_STAG - 1)]; in ocrdma_build_fr() 2103 hdr->lkey = wr->ex.invalidate_rkey; in ocrdma_post_send() 2124 hdr->lkey = wr->ex.invalidate_rkey; in ocrdma_post_send() [all …]
|
/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() 1633 u32 lkey) in write_swqe2_immediate() argument 1657 sg1entry->l_key = lkey; in write_swqe2_immediate() 1670 struct ehea_swqe *swqe, u32 lkey) in write_swqe2_data() argument 1681 write_swqe2_immediate(skb, swqe, lkey); in write_swqe2_data() 1690 sg1entry->l_key = lkey; in write_swqe2_data() 1703 sgentry->l_key = lkey; in write_swqe2_data() 2026 struct ehea_swqe *swqe, u32 lkey) in ehea_xmit2() argument 2032 write_swqe2_data(skb, dev, swqe, lkey); in ehea_xmit2() 2055 u32 lkey; in ehea_start_xmit() local [all …]
|
/drivers/infiniband/hw/mlx5/ |
D | mr.c | 641 mr->ibmr.lkey = mr->mmr.key; in mlx5_ib_get_dma_mr() 681 sg->lkey = mr->lkey; in prep_umr_reg_wqe() 928 mr->ibmr.lkey = mr->mmr.key; in mlx5_ib_reg_user_mr() 1068 mr->ibmr.lkey = mr->mmr.key; in mlx5_ib_create_mr() 1158 mr->ibmr.lkey = mr->mmr.key; in mlx5_ib_alloc_fast_reg_mr() 1235 if (ibmr->lkey == mmr->sig->err_item.key) in mlx5_ib_check_mr_status()
|