Lines Matching refs:ib_wr
3283 const struct ib_send_wr *ib_wr, in irdma_post_send() argument
3300 while (ib_wr) { in irdma_post_send()
3303 info.wr_id = (ib_wr->wr_id); in irdma_post_send()
3304 if ((ib_wr->send_flags & IB_SEND_SIGNALED) || iwqp->sig_all) in irdma_post_send()
3306 if (ib_wr->send_flags & IB_SEND_FENCE) in irdma_post_send()
3308 switch (ib_wr->opcode) { in irdma_post_send()
3312 info.imm_data = ntohl(ib_wr->ex.imm_data); in irdma_post_send()
3320 if (ib_wr->opcode == IB_WR_SEND || in irdma_post_send()
3321 ib_wr->opcode == IB_WR_SEND_WITH_IMM) { in irdma_post_send()
3322 if (ib_wr->send_flags & IB_SEND_SOLICITED) in irdma_post_send()
3327 if (ib_wr->send_flags & IB_SEND_SOLICITED) in irdma_post_send()
3331 info.stag_to_inv = ib_wr->ex.invalidate_rkey; in irdma_post_send()
3334 info.op.send.num_sges = ib_wr->num_sge; in irdma_post_send()
3335 info.op.send.sg_list = ib_wr->sg_list; in irdma_post_send()
3338 ah = to_iwah(ud_wr(ib_wr)->ah); in irdma_post_send()
3340 info.op.send.qkey = ud_wr(ib_wr)->remote_qkey; in irdma_post_send()
3341 info.op.send.dest_qp = ud_wr(ib_wr)->remote_qpn; in irdma_post_send()
3344 if (ib_wr->send_flags & IB_SEND_INLINE) in irdma_post_send()
3352 info.imm_data = ntohl(ib_wr->ex.imm_data); in irdma_post_send()
3359 if (ib_wr->send_flags & IB_SEND_SOLICITED) in irdma_post_send()
3364 info.op.rdma_write.num_lo_sges = ib_wr->num_sge; in irdma_post_send()
3365 info.op.rdma_write.lo_sg_list = ib_wr->sg_list; in irdma_post_send()
3367 rdma_wr(ib_wr)->remote_addr; in irdma_post_send()
3368 info.op.rdma_write.rem_addr.lkey = rdma_wr(ib_wr)->rkey; in irdma_post_send()
3369 if (ib_wr->send_flags & IB_SEND_INLINE) in irdma_post_send()
3378 if (ib_wr->num_sge > in irdma_post_send()
3384 info.op.rdma_read.rem_addr.addr = rdma_wr(ib_wr)->remote_addr; in irdma_post_send()
3385 info.op.rdma_read.rem_addr.lkey = rdma_wr(ib_wr)->rkey; in irdma_post_send()
3386 info.op.rdma_read.lo_sg_list = (void *)ib_wr->sg_list; in irdma_post_send()
3387 info.op.rdma_read.num_lo_sges = ib_wr->num_sge; in irdma_post_send()
3393 info.op.inv_local_stag.target_stag = ib_wr->ex.invalidate_rkey; in irdma_post_send()
3397 struct irdma_mr *iwmr = to_iwmr(reg_wr(ib_wr)->mr); in irdma_post_send()
3403 stag_info.access_rights = irdma_get_mr_access(reg_wr(ib_wr)->access); in irdma_post_send()
3404 stag_info.stag_key = reg_wr(ib_wr)->key & 0xff; in irdma_post_send()
3405 stag_info.stag_idx = reg_wr(ib_wr)->key >> 8; in irdma_post_send()
3406 stag_info.page_size = reg_wr(ib_wr)->mr->page_size; in irdma_post_send()
3407 stag_info.wr_id = ib_wr->wr_id; in irdma_post_send()
3413 stag_info.local_fence = ib_wr->send_flags & IB_SEND_FENCE; in irdma_post_send()
3424 ib_wr->opcode); in irdma_post_send()
3430 ib_wr = ib_wr->next; in irdma_post_send()
3443 *bad_wr = ib_wr; in irdma_post_send()
3455 const struct ib_recv_wr *ib_wr, in irdma_post_recv() argument
3468 while (ib_wr) { in irdma_post_recv()
3469 post_recv.num_sges = ib_wr->num_sge; in irdma_post_recv()
3470 post_recv.wr_id = ib_wr->wr_id; in irdma_post_recv()
3471 post_recv.sg_list = ib_wr->sg_list; in irdma_post_recv()
3479 ib_wr = ib_wr->next; in irdma_post_recv()
3489 *bad_wr = ib_wr; in irdma_post_recv()