Lines Matching refs:ib_wr

790 int c2_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr,  in c2_post_send()  argument
809 while (ib_wr) { in c2_post_send()
812 wr.sqwr.sq_hdr.user_hdr.hdr.context = ib_wr->wr_id; in c2_post_send()
813 if (ib_wr->send_flags & IB_SEND_SIGNALED) { in c2_post_send()
817 switch (ib_wr->opcode) { in c2_post_send()
820 if (ib_wr->opcode == IB_WR_SEND) { in c2_post_send()
821 if (ib_wr->send_flags & IB_SEND_SOLICITED) in c2_post_send()
827 if (ib_wr->send_flags & IB_SEND_SOLICITED) in c2_post_send()
832 cpu_to_be32(ib_wr->ex.invalidate_rkey); in c2_post_send()
836 sizeof(struct c2_data_addr) * ib_wr->num_sge; in c2_post_send()
837 if (ib_wr->num_sge > qp->send_sgl_depth) { in c2_post_send()
841 if (ib_wr->send_flags & IB_SEND_FENCE) { in c2_post_send()
845 ib_wr->sg_list, in c2_post_send()
846 ib_wr->num_sge, in c2_post_send()
854 (sizeof(struct c2_data_addr) * ib_wr->num_sge); in c2_post_send()
855 if (ib_wr->num_sge > qp->rdma_write_sgl_depth) { in c2_post_send()
859 if (ib_wr->send_flags & IB_SEND_FENCE) { in c2_post_send()
863 cpu_to_be32(ib_wr->wr.rdma.rkey); in c2_post_send()
865 cpu_to_be64(ib_wr->wr.rdma.remote_addr); in c2_post_send()
868 ib_wr->sg_list, in c2_post_send()
869 ib_wr->num_sge, in c2_post_send()
879 if (ib_wr->num_sge > 1) { in c2_post_send()
888 cpu_to_be32(ib_wr->sg_list->lkey); in c2_post_send()
890 cpu_to_be64(ib_wr->sg_list->addr); in c2_post_send()
892 cpu_to_be32(ib_wr->wr.rdma.rkey); in c2_post_send()
894 cpu_to_be64(ib_wr->wr.rdma.remote_addr); in c2_post_send()
896 cpu_to_be32(ib_wr->sg_list->length); in c2_post_send()
935 ib_wr = ib_wr->next; in c2_post_send()
940 *bad_wr = ib_wr; in c2_post_send()
944 int c2_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *ib_wr, in c2_post_receive() argument
961 while (ib_wr) { in c2_post_receive()
965 if (ib_wr->num_sge > qp->recv_sgl_depth) { in c2_post_receive()
973 wr.rqwr.rq_hdr.user_hdr.hdr.context = ib_wr->wr_id; in c2_post_receive()
978 BUG_ON(ib_wr->num_sge >= 256); in c2_post_receive()
980 ib_wr->sg_list, in c2_post_receive()
981 ib_wr->num_sge, &tot_len, &actual_sge_count); in c2_post_receive()
1006 ib_wr = ib_wr->next; in c2_post_receive()
1011 *bad_wr = ib_wr; in c2_post_receive()