Lines Matching defs:opcode

106 		if (e->opcode == OP(RDMA_READ_REQUEST)) {
312 switch (wqe->wr.opcode) {
323 if (wqe->wr.opcode == IB_WR_SEND)
358 if (wqe->rdma_wr.wr.opcode == IB_WR_RDMA_WRITE)
420 if (wqe->atomic_wr.wr.opcode == IB_WR_ATOMIC_CMP_AND_SWP) {
457 if (wqe->wr.opcode == IB_WR_RDMA_READ)
465 * qp->s_state is normally set to the opcode of the
486 if (wqe->wr.opcode == IB_WR_SEND)
504 * qp->s_state is normally set to the opcode of the
525 if (wqe->wr.opcode == IB_WR_RDMA_WRITE)
543 * qp->s_state is normally set to the opcode of the
739 u32 opcode;
752 /* Find the work request opcode corresponding to the given PSN. */
753 opcode = wqe->wr.opcode;
774 opcode = wqe->wr.opcode;
782 switch (opcode) {
839 if (wqe->wr.opcode == IB_WR_RDMA_READ)
865 if (wqe->wr.opcode == IB_WR_RDMA_READ)
885 u32 opcode;
897 opcode = be32_to_cpu(ohdr->bth[0]) >> 24;
898 if (opcode >= OP(RDMA_READ_RESPONSE_FIRST) &&
899 opcode <= OP(ATOMIC_ACKNOWLEDGE)) {
924 ib_qib_wc_opcode[wqe->wr.opcode],
963 ib_qib_wc_opcode[wqe->wr.opcode],
999 * @opcode: the opcode of the request that resulted in the ACK
1006 static int do_rc_ack(struct rvt_qp *qp, u32 aeth, u32 psn, int opcode,
1039 if (wqe->wr.opcode == IB_WR_RDMA_READ &&
1040 opcode == OP(RDMA_READ_RESPONSE_ONLY) &&
1054 if ((wqe->wr.opcode == IB_WR_RDMA_READ &&
1055 (opcode != OP(RDMA_READ_RESPONSE_LAST) || diff != 0)) ||
1056 ((wqe->wr.opcode == IB_WR_ATOMIC_CMP_AND_SWP ||
1057 wqe->wr.opcode == IB_WR_ATOMIC_FETCH_AND_ADD) &&
1058 (opcode != OP(ATOMIC_ACKNOWLEDGE) || diff != 0))) {
1076 if (wqe->wr.opcode == IB_WR_ATOMIC_CMP_AND_SWP ||
1077 wqe->wr.opcode == IB_WR_ATOMIC_FETCH_AND_ADD) {
1082 (wqe->wr.opcode == IB_WR_RDMA_READ ||
1083 wqe->wr.opcode == IB_WR_ATOMIC_CMP_AND_SWP ||
1084 wqe->wr.opcode == IB_WR_ATOMIC_FETCH_AND_ADD)) {
1234 if (wqe->wr.opcode == IB_WR_RDMA_READ ||
1235 wqe->wr.opcode == IB_WR_ATOMIC_CMP_AND_SWP ||
1236 wqe->wr.opcode == IB_WR_ATOMIC_FETCH_AND_ADD)
1258 * @opcode: the opcode for this packet
1271 u32 opcode,
1284 if (opcode != OP(RDMA_READ_RESPONSE_MIDDLE)) {
1319 if (diff == 0 && opcode == OP(ACKNOWLEDGE)) {
1342 switch (opcode) {
1347 if (opcode == OP(ATOMIC_ACKNOWLEDGE))
1351 if (!do_rc_ack(qp, aeth, psn, opcode, val, rcd) ||
1352 opcode != OP(RDMA_READ_RESPONSE_FIRST))
1356 if (unlikely(wqe->wr.opcode != IB_WR_RDMA_READ))
1371 if (unlikely(wqe->wr.opcode != IB_WR_RDMA_READ))
1389 if (opcode == OP(RDMA_READ_RESPONSE_MIDDLE))
1405 if (!do_rc_ack(qp, aeth, psn, opcode, 0, rcd))
1430 if (unlikely(wqe->wr.opcode != IB_WR_RDMA_READ))
1480 * @opcode: the opcode for this packet
1493 u32 opcode,
1563 if (!e->opcode) {
1574 switch (opcode) {
1584 if (!e || e->opcode != OP(RDMA_READ_REQUEST))
1632 if (!e || e->opcode != (u8) opcode || old_req)
1716 u32 opcode;
1736 opcode = be32_to_cpu(ohdr->bth[0]);
1737 if (qib_ruc_check_hdr(ibp, hdr, has_grh, qp, opcode))
1741 opcode >>= 24;
1749 if (opcode >= OP(RDMA_READ_RESPONSE_FIRST) &&
1750 opcode <= OP(ATOMIC_ACKNOWLEDGE)) {
1751 qib_rc_rcv_resp(ibp, ohdr, data, tlen, qp, opcode, psn,
1759 if (qib_rc_rcv_error(ohdr, data, qp, opcode, psn, diff, rcd))
1764 /* Check for opcode sequence errors. */
1768 if (opcode == OP(SEND_MIDDLE) ||
1769 opcode == OP(SEND_LAST) ||
1770 opcode == OP(SEND_LAST_WITH_IMMEDIATE))
1776 if (opcode == OP(RDMA_WRITE_MIDDLE) ||
1777 opcode == OP(RDMA_WRITE_LAST) ||
1778 opcode == OP(RDMA_WRITE_LAST_WITH_IMMEDIATE))
1783 if (opcode == OP(SEND_MIDDLE) ||
1784 opcode == OP(SEND_LAST) ||
1785 opcode == OP(SEND_LAST_WITH_IMMEDIATE) ||
1786 opcode == OP(RDMA_WRITE_MIDDLE) ||
1787 opcode == OP(RDMA_WRITE_LAST) ||
1788 opcode == OP(RDMA_WRITE_LAST_WITH_IMMEDIATE))
1802 switch (opcode) {
1840 if (opcode == OP(SEND_ONLY))
1873 if (opcode == OP(RDMA_WRITE_LAST_WITH_IMMEDIATE) ||
1874 opcode == OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE))
1875 wc.opcode = IB_WC_RECV_RDMA_WITH_IMM;
1877 wc.opcode = IB_WC_RECV;
1920 if (opcode == OP(RDMA_WRITE_FIRST))
1922 else if (opcode == OP(RDMA_WRITE_ONLY))
1954 if (e->opcode == OP(RDMA_READ_REQUEST) && e->rdma_sge.mr) {
1981 e->opcode = opcode;
1992 qp->r_state = opcode;
2025 if (e->opcode == OP(RDMA_READ_REQUEST) && e->rdma_sge.mr) {
2042 e->atomic_data = (opcode == OP(FETCH_ADD)) ?
2049 e->opcode = opcode;
2055 qp->r_state = opcode;
2071 qp->r_state = opcode;