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