• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/infiniband/hw/amso1100/

Lines Matching refs:wr

136 	struct c2wr_qp_modify_req wr;
153 c2_wr_set_id(&wr, CCWR_QP_MODIFY);
154 wr.hdr.context = (unsigned long) vq_req;
155 wr.rnic_handle = c2dev->adapter_handle;
156 wr.qp_handle = qp->adapter_handle;
157 wr.ord = cpu_to_be32(C2_QP_NO_ATTR_CHANGE);
158 wr.ird = cpu_to_be32(C2_QP_NO_ATTR_CHANGE);
159 wr.sq_depth = cpu_to_be32(C2_QP_NO_ATTR_CHANGE);
160 wr.rq_depth = cpu_to_be32(C2_QP_NO_ATTR_CHANGE);
169 wr.next_qp_state = cpu_to_be32(to_c2_state(attr->qp_state));
193 wr.next_qp_state =
206 err = vq_send_wr(c2dev, (union c2wr *) & wr);
255 struct c2wr_qp_modify_req wr;
264 c2_wr_set_id(&wr, CCWR_QP_MODIFY);
265 wr.hdr.context = (unsigned long) vq_req;
266 wr.rnic_handle = c2dev->adapter_handle;
267 wr.qp_handle = qp->adapter_handle;
268 wr.ord = cpu_to_be32(ord);
269 wr.ird = cpu_to_be32(ird);
270 wr.sq_depth = cpu_to_be32(C2_QP_NO_ATTR_CHANGE);
271 wr.rq_depth = cpu_to_be32(C2_QP_NO_ATTR_CHANGE);
272 wr.next_qp_state = cpu_to_be32(C2_QP_NO_ATTR_CHANGE);
277 err = vq_send_wr(c2dev, (union c2wr *) & wr);
304 struct c2wr_qp_destroy_req wr;
320 c2_wr_set_id(&wr, CCWR_QP_DESTROY);
321 wr.hdr.context = (unsigned long) vq_req;
322 wr.rnic_handle = c2dev->adapter_handle;
323 wr.qp_handle = qp->adapter_handle;
344 err = vq_send_wr(c2dev, (union c2wr *) & wr);
416 struct c2wr_qp_create_req wr;
455 memset(&wr, 0, sizeof(wr));
456 c2_wr_set_id(&wr, CCWR_QP_CREATE);
457 wr.hdr.context = (unsigned long) vq_req;
458 wr.rnic_handle = c2dev->adapter_handle;
459 wr.sq_cq_handle = send_cq->adapter_handle;
460 wr.rq_cq_handle = recv_cq->adapter_handle;
461 wr.sq_depth = cpu_to_be32(qp_attrs->cap.max_send_wr + 1);
462 wr.rq_depth = cpu_to_be32(qp_attrs->cap.max_recv_wr + 1);
463 wr.srq_handle = 0;
464 wr.flags = cpu_to_be32(QP_RDMA_READ | QP_RDMA_WRITE | QP_MW_BIND |
466 wr.send_sgl_depth = cpu_to_be32(qp_attrs->cap.max_send_sge);
467 wr.recv_sgl_depth = cpu_to_be32(qp_attrs->cap.max_recv_sge);
468 wr.rdma_write_sgl_depth = cpu_to_be32(qp_attrs->cap.max_send_sge);
469 wr.shared_sq_ht = cpu_to_be64(qp->sq_mq.shared_dma);
470 wr.shared_rq_ht = cpu_to_be64(qp->rq_mq.shared_dma);
471 wr.ord = cpu_to_be32(C2_MAX_ORD_PER_QP);
472 wr.ird = cpu_to_be32(C2_MAX_IRD_PER_QP);
473 wr.pd_id = pd->pd_id;
474 wr.user_context = (unsigned long) qp;
479 err = vq_send_wr(c2dev, (union c2wr *) & wr);
749 * wr - ptr to host-copy of the WR.
758 static int qp_wr_post(struct c2_mq *q, union c2wr * wr, struct c2_qp *qp, u32 size)
767 ((c2wr_hdr_t *) wr)->magic = cpu_to_be32(CCWR_MAGIC);
774 c2_wr_set_result(wr, CCERR_PENDING);
777 * Copy the wr down to the adapter
779 memcpy((void *) msg, (void *) wr, size);
791 union c2wr wr;
806 wr.sqwr.sq_hdr.user_hdr.hdr.context = ib_wr->wr_id;
814 c2_wr_set_id(&wr, C2_WR_TYPE_SEND_SE);
817 c2_wr_set_id(&wr, C2_WR_TYPE_SEND);
821 wr.sqwr.send.remote_stag = 0;
830 err = move_sgl((struct c2_data_addr *) & (wr.sqwr.send.data),
834 wr.sqwr.send.sge_len = cpu_to_be32(tot_len);
835 c2_wr_set_sge_count(&wr, actual_sge_count);
838 c2_wr_set_id(&wr, C2_WR_TYPE_RDMA_WRITE);
848 wr.sqwr.rdma_write.remote_stag =
849 cpu_to_be32(ib_wr->wr.rdma.rkey);
850 wr.sqwr.rdma_write.remote_to =
851 cpu_to_be64(ib_wr->wr.rdma.remote_addr);
853 & (wr.sqwr.rdma_write.data),
857 wr.sqwr.rdma_write.sge_len = cpu_to_be32(tot_len);
858 c2_wr_set_sge_count(&wr, actual_sge_count);
861 c2_wr_set_id(&wr, C2_WR_TYPE_RDMA_READ);
873 wr.sqwr.rdma_read.local_stag =
875 wr.sqwr.rdma_read.local_to =
877 wr.sqwr.rdma_read.remote_stag =
878 cpu_to_be32(ib_wr->wr.rdma.rkey);
879 wr.sqwr.rdma_read.remote_to =
880 cpu_to_be64(ib_wr->wr.rdma.remote_addr);
881 wr.sqwr.rdma_read.length =
892 * If we had an error on the last wr build, then
903 c2_wr_set_flags(&wr, flags);
909 err = qp_wr_post(&qp->sq_mq, &wr, qp, msg_size);
934 union c2wr wr;
956 wr.rqwr.rq_hdr.user_hdr.hdr.context = ib_wr->wr_id;
957 c2_wr_set_id(&wr, CCWR_RECV);
958 c2_wr_set_flags(&wr, 0);
962 err = move_sgl((struct c2_data_addr *) & (wr.rqwr.data),
965 c2_wr_set_sge_count(&wr, actual_sge_count);
968 * If we had an error on the last wr build, then
977 err = qp_wr_post(&qp->rq_mq, &wr, qp, qp->rq_mq.msg_size);