Home
last modified time | relevance | path

Searched refs:rdma_wr (Results 1 – 24 of 24) sorted by relevance

/Linux-v4.19/drivers/infiniband/core/
Drw.c198 struct ib_rdma_wr *rdma_wr = &ctx->map.wrs[i]; in rdma_rw_init_map_wrs() local
202 rdma_wr->wr.opcode = IB_WR_RDMA_WRITE; in rdma_rw_init_map_wrs()
204 rdma_wr->wr.opcode = IB_WR_RDMA_READ; in rdma_rw_init_map_wrs()
205 rdma_wr->remote_addr = remote_addr + total_len; in rdma_rw_init_map_wrs()
206 rdma_wr->rkey = rkey; in rdma_rw_init_map_wrs()
207 rdma_wr->wr.num_sge = nr_sge; in rdma_rw_init_map_wrs()
208 rdma_wr->wr.sg_list = sge; in rdma_rw_init_map_wrs()
221 rdma_wr->wr.next = i + 1 < ctx->nr_ops ? in rdma_rw_init_map_wrs()
239 struct ib_rdma_wr *rdma_wr = &ctx->single.wr; in rdma_rw_init_single_wr() local
247 memset(rdma_wr, 0, sizeof(*rdma_wr)); in rdma_rw_init_single_wr()
[all …]
/Linux-v4.19/net/smc/
Dsmc_tx.c273 struct ib_rdma_wr rdma_wr; in smc_tx_rdma_write() local
277 memset(&rdma_wr, 0, sizeof(rdma_wr)); in smc_tx_rdma_write()
279 rdma_wr.wr.wr_id = smc_wr_tx_get_next_wr_id(link); in smc_tx_rdma_write()
280 rdma_wr.wr.sg_list = sges; in smc_tx_rdma_write()
281 rdma_wr.wr.num_sge = num_sges; in smc_tx_rdma_write()
282 rdma_wr.wr.opcode = IB_WR_RDMA_WRITE; in smc_tx_rdma_write()
283 rdma_wr.remote_addr = in smc_tx_rdma_write()
289 rdma_wr.rkey = lgr->rtokens[conn->rtoken_idx][SMC_SINGLE_LINK].rkey; in smc_tx_rdma_write()
290 rc = ib_post_send(link->roce_qp, &rdma_wr.wr, NULL); in smc_tx_rdma_write()
/Linux-v4.19/drivers/infiniband/hw/qib/
Dqib_ruc.c296 wqe->rdma_wr.remote_addr, in qib_ruc_loopback()
297 wqe->rdma_wr.rkey, in qib_ruc_loopback()
309 wqe->rdma_wr.remote_addr, in qib_ruc_loopback()
310 wqe->rdma_wr.rkey, in qib_ruc_loopback()
Dqib_rc.c359 cpu_to_be64(wqe->rdma_wr.remote_addr); in qib_make_rc_req()
361 cpu_to_be32(wqe->rdma_wr.rkey); in qib_make_rc_req()
369 if (wqe->rdma_wr.wr.opcode == IB_WR_RDMA_WRITE) in qib_make_rc_req()
375 wqe->rdma_wr.wr.ex.imm_data; in qib_make_rc_req()
377 if (wqe->rdma_wr.wr.send_flags & IB_SEND_SOLICITED) in qib_make_rc_req()
402 cpu_to_be64(wqe->rdma_wr.remote_addr); in qib_make_rc_req()
404 cpu_to_be32(wqe->rdma_wr.rkey); in qib_make_rc_req()
564 cpu_to_be64(wqe->rdma_wr.remote_addr + len); in qib_make_rc_req()
566 cpu_to_be32(wqe->rdma_wr.rkey); in qib_make_rc_req()
Dqib_uc.c131 cpu_to_be64(wqe->rdma_wr.remote_addr); in qib_make_uc_req()
133 cpu_to_be32(wqe->rdma_wr.rkey); in qib_make_uc_req()
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Druc.c303 wqe->rdma_wr.remote_addr, in ruc_loopback()
304 wqe->rdma_wr.rkey, in ruc_loopback()
316 wqe->rdma_wr.remote_addr, in ruc_loopback()
317 wqe->rdma_wr.rkey, in ruc_loopback()
Duc.c186 cpu_to_be64(wqe->rdma_wr.remote_addr); in hfi1_make_uc_req()
188 cpu_to_be32(wqe->rdma_wr.rkey); in hfi1_make_uc_req()
Drc.c449 wqe->rdma_wr.remote_addr, in hfi1_make_rc_req()
452 cpu_to_be32(wqe->rdma_wr.rkey); in hfi1_make_rc_req()
492 wqe->rdma_wr.remote_addr, in hfi1_make_rc_req()
495 cpu_to_be32(wqe->rdma_wr.rkey); in hfi1_make_rc_req()
662 wqe->rdma_wr.remote_addr + len, in hfi1_make_rc_req()
665 cpu_to_be32(wqe->rdma_wr.rkey); in hfi1_make_rc_req()
/Linux-v4.19/drivers/infiniband/hw/mthca/
Dmthca_qp.c1692 set_raddr_seg(wqe, rdma_wr(wr)->remote_addr, in mthca_tavor_post_send()
1693 rdma_wr(wr)->rkey); in mthca_tavor_post_send()
1709 set_raddr_seg(wqe, rdma_wr(wr)->remote_addr, in mthca_tavor_post_send()
1710 rdma_wr(wr)->rkey); in mthca_tavor_post_send()
2033 set_raddr_seg(wqe, rdma_wr(wr)->remote_addr, in mthca_arbel_post_send()
2034 rdma_wr(wr)->rkey); in mthca_arbel_post_send()
2050 set_raddr_seg(wqe, rdma_wr(wr)->remote_addr, in mthca_arbel_post_send()
2051 rdma_wr(wr)->rkey); in mthca_arbel_post_send()
/Linux-v4.19/drivers/infiniband/hw/cxgb3/
Diwch_qp.c98 wqe->write.stag_sink = cpu_to_be32(rdma_wr(wr)->rkey); in build_rdma_write()
99 wqe->write.to_sink = cpu_to_be64(rdma_wr(wr)->remote_addr); in build_rdma_write()
140 wqe->read.rem_stag = cpu_to_be32(rdma_wr(wr)->rkey); in build_rdma_read()
141 wqe->read.rem_to = cpu_to_be64(rdma_wr(wr)->remote_addr); in build_rdma_read()
/Linux-v4.19/drivers/infiniband/sw/rxe/
Drxe_verbs.c608 wr->wr.rdma.remote_addr = rdma_wr(ibwr)->remote_addr; in init_send_wr()
609 wr->wr.rdma.rkey = rdma_wr(ibwr)->rkey; in init_send_wr()
675 mask & WR_READ_OR_WRITE_MASK ? rdma_wr(ibwr)->remote_addr : 0; in init_send_wqe()
/Linux-v4.19/include/rdma/
Drdmavt_qp.h170 struct ib_rdma_wr rdma_wr; member
Dib_verbs.h1355 static inline const struct ib_rdma_wr *rdma_wr(const struct ib_send_wr *wr) in rdma_wr() function
/Linux-v4.19/drivers/infiniband/hw/i40iw/
Di40iw_verbs.c2273 info.op.inline_rdma_write.rem_addr.tag_off = rdma_wr(ib_wr)->remote_addr; in i40iw_post_send()
2274 info.op.inline_rdma_write.rem_addr.stag = rdma_wr(ib_wr)->rkey; in i40iw_post_send()
2279 info.op.rdma_write.rem_addr.tag_off = rdma_wr(ib_wr)->remote_addr; in i40iw_post_send()
2280 info.op.rdma_write.rem_addr.stag = rdma_wr(ib_wr)->rkey; in i40iw_post_send()
2300 info.op.rdma_read.rem_addr.tag_off = rdma_wr(ib_wr)->remote_addr; in i40iw_post_send()
2301 info.op.rdma_read.rem_addr.stag = rdma_wr(ib_wr)->rkey; in i40iw_post_send()
/Linux-v4.19/drivers/infiniband/hw/cxgb4/
Dqp.c572 wqe->write.stag_sink = cpu_to_be32(rdma_wr(wr)->rkey); in build_rdma_write()
573 wqe->write.to_sink = cpu_to_be64(rdma_wr(wr)->remote_addr); in build_rdma_write()
632 wcwr->stag_sink = cpu_to_be32(rdma_wr(wr)->rkey); in build_rdma_write_cmpl()
633 wcwr->to_sink = cpu_to_be64(rdma_wr(wr)->remote_addr); in build_rdma_write_cmpl()
661 wqe->read.stag_src = cpu_to_be32(rdma_wr(wr)->rkey); in build_rdma_read()
662 wqe->read.to_src_hi = cpu_to_be32((u32)(rdma_wr(wr)->remote_addr in build_rdma_read()
664 wqe->read.to_src_lo = cpu_to_be32((u32)rdma_wr(wr)->remote_addr); in build_rdma_read()
/Linux-v4.19/drivers/infiniband/hw/ocrdma/
Docrdma_verbs.c2070 ext_rw->addr_lo = rdma_wr(wr)->remote_addr; in ocrdma_build_write()
2071 ext_rw->addr_hi = upper_32_bits(rdma_wr(wr)->remote_addr); in ocrdma_build_write()
2072 ext_rw->lrkey = rdma_wr(wr)->rkey; in ocrdma_build_write()
2090 ext_rw->addr_lo = rdma_wr(wr)->remote_addr; in ocrdma_build_read()
2091 ext_rw->addr_hi = upper_32_bits(rdma_wr(wr)->remote_addr); in ocrdma_build_read()
2092 ext_rw->lrkey = rdma_wr(wr)->rkey; in ocrdma_build_read()
/Linux-v4.19/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma_qp.c752 rdma_wr(wr)->remote_addr; in pvrdma_post_send()
753 wqe_hdr->wr.rdma.rkey = rdma_wr(wr)->rkey; in pvrdma_post_send()
/Linux-v4.19/drivers/infiniband/hw/hns/
Dhns_roce_hw_v2.c416 cpu_to_le32(rdma_wr(wr)->rkey); in hns_roce_v2_post_send()
418 cpu_to_le64(rdma_wr(wr)->remote_addr); in hns_roce_v2_post_send()
426 cpu_to_le32(rdma_wr(wr)->rkey); in hns_roce_v2_post_send()
428 cpu_to_le64(rdma_wr(wr)->remote_addr); in hns_roce_v2_post_send()
436 cpu_to_le32(rdma_wr(wr)->rkey); in hns_roce_v2_post_send()
438 cpu_to_le64(rdma_wr(wr)->remote_addr); in hns_roce_v2_post_send()
Dhns_roce_hw_v1.c262 set_raddr_seg(wqe, rdma_wr(wr)->remote_addr, in hns_roce_v1_post_send()
263 rdma_wr(wr)->rkey); in hns_roce_v1_post_send()
268 set_raddr_seg(wqe, rdma_wr(wr)->remote_addr, in hns_roce_v1_post_send()
269 rdma_wr(wr)->rkey); in hns_roce_v1_post_send()
/Linux-v4.19/drivers/infiniband/hw/nes/
Dnes_verbs.c3113 rdma_wr(ib_wr)->rkey); in nes_post_send()
3115 rdma_wr(ib_wr)->remote_addr); in nes_post_send()
3150 rdma_wr(ib_wr)->remote_addr); in nes_post_send()
3152 rdma_wr(ib_wr)->rkey); in nes_post_send()
/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dqp.c4438 set_raddr_seg(seg, rdma_wr(wr)->remote_addr, in _mlx5_ib_post_send()
4439 rdma_wr(wr)->rkey); in _mlx5_ib_post_send()
4541 set_raddr_seg(seg, rdma_wr(wr)->remote_addr, in _mlx5_ib_post_send()
4542 rdma_wr(wr)->rkey); in _mlx5_ib_post_send()
/Linux-v4.19/drivers/infiniband/hw/bnxt_re/
Dib_verbs.c2154 wqe->rdma.remote_va = rdma_wr(wr)->remote_addr; in bnxt_re_build_rdma_wqe()
2155 wqe->rdma.r_key = rdma_wr(wr)->rkey; in bnxt_re_build_rdma_wqe()
/Linux-v4.19/drivers/infiniband/hw/qedr/
Dverbs.c3153 rwqe2->r_key = cpu_to_le32(rdma_wr(wr)->rkey); in qedr_prepare_sq_rdma_data()
3154 DMA_REGPAIR_LE(rwqe2->remote_va, rdma_wr(wr)->remote_addr); in qedr_prepare_sq_rdma_data()
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dqp.c3560 set_raddr_seg(wqe, rdma_wr(wr)->remote_addr, in _mlx4_ib_post_send()
3561 rdma_wr(wr)->rkey); in _mlx4_ib_post_send()