Lines Matching refs:ib_wr
788 int c2_post_send(struct ib_qp *ibqp, struct ib_send_wr *ib_wr,
807 while (ib_wr) {
810 wr.sqwr.sq_hdr.user_hdr.hdr.context = ib_wr->wr_id;
811 if (ib_wr->send_flags & IB_SEND_SIGNALED) {
815 switch (ib_wr->opcode) {
818 if (ib_wr->opcode == IB_WR_SEND) {
819 if (ib_wr->send_flags & IB_SEND_SOLICITED)
825 if (ib_wr->send_flags & IB_SEND_SOLICITED)
830 cpu_to_be32(ib_wr->ex.invalidate_rkey);
834 sizeof(struct c2_data_addr) * ib_wr->num_sge;
835 if (ib_wr->num_sge > qp->send_sgl_depth) {
839 if (ib_wr->send_flags & IB_SEND_FENCE) {
843 ib_wr->sg_list,
844 ib_wr->num_sge,
852 (sizeof(struct c2_data_addr) * ib_wr->num_sge);
853 if (ib_wr->num_sge > qp->rdma_write_sgl_depth) {
857 if (ib_wr->send_flags & IB_SEND_FENCE) {
861 cpu_to_be32(ib_wr->wr.rdma.rkey);
863 cpu_to_be64(ib_wr->wr.rdma.remote_addr);
866 ib_wr->sg_list,
867 ib_wr->num_sge,
877 if (ib_wr->num_sge > 1) {
886 cpu_to_be32(ib_wr->sg_list->lkey);
888 cpu_to_be64(ib_wr->sg_list->addr);
890 cpu_to_be32(ib_wr->wr.rdma.rkey);
892 cpu_to_be64(ib_wr->wr.rdma.remote_addr);
894 cpu_to_be32(ib_wr->sg_list->length);
933 ib_wr = ib_wr->next;
938 *bad_wr = ib_wr;
942 int c2_post_receive(struct ib_qp *ibqp, struct ib_recv_wr *ib_wr,
959 while (ib_wr) {
963 if (ib_wr->num_sge > qp->recv_sgl_depth) {
971 wr.rqwr.rq_hdr.user_hdr.hdr.context = ib_wr->wr_id;
976 BUG_ON(ib_wr->num_sge >= 256);
978 ib_wr->sg_list,
979 ib_wr->num_sge, &tot_len, &actual_sge_count);
1004 ib_wr = ib_wr->next;
1009 *bad_wr = ib_wr;