Lines Matching defs:opcode
106 if (e->opcode == OP(RDMA_READ_REQUEST)) {
313 switch (wqe->wr.opcode) {
324 if (wqe->wr.opcode == IB_WR_SEND)
359 if (wqe->rdma_wr.wr.opcode == IB_WR_RDMA_WRITE)
421 if (wqe->atomic_wr.wr.opcode == IB_WR_ATOMIC_CMP_AND_SWP) {
458 if (wqe->wr.opcode == IB_WR_RDMA_READ)
466 * qp->s_state is normally set to the opcode of the
487 if (wqe->wr.opcode == IB_WR_SEND)
505 * qp->s_state is normally set to the opcode of the
526 if (wqe->wr.opcode == IB_WR_RDMA_WRITE)
544 * qp->s_state is normally set to the opcode of the
740 u32 opcode;
753 /* Find the work request opcode corresponding to the given PSN. */
754 opcode = wqe->wr.opcode;
775 opcode = wqe->wr.opcode;
783 switch (opcode) {
840 if (wqe->wr.opcode == IB_WR_RDMA_READ)
866 if (wqe->wr.opcode == IB_WR_RDMA_READ)
886 u32 opcode;
898 opcode = be32_to_cpu(ohdr->bth[0]) >> 24;
899 if (opcode >= OP(RDMA_READ_RESPONSE_FIRST) &&
900 opcode <= OP(ATOMIC_ACKNOWLEDGE)) {
925 ib_qib_wc_opcode[wqe->wr.opcode],
964 ib_qib_wc_opcode[wqe->wr.opcode],
1000 * @opcode: the opcode of the request that resulted in the ACK
1007 static int do_rc_ack(struct rvt_qp *qp, u32 aeth, u32 psn, int opcode,
1040 if (wqe->wr.opcode == IB_WR_RDMA_READ &&
1041 opcode == OP(RDMA_READ_RESPONSE_ONLY) &&
1055 if ((wqe->wr.opcode == IB_WR_RDMA_READ &&
1056 (opcode != OP(RDMA_READ_RESPONSE_LAST) || diff != 0)) ||
1057 ((wqe->wr.opcode == IB_WR_ATOMIC_CMP_AND_SWP ||
1058 wqe->wr.opcode == IB_WR_ATOMIC_FETCH_AND_ADD) &&
1059 (opcode != OP(ATOMIC_ACKNOWLEDGE) || diff != 0))) {
1077 if (wqe->wr.opcode == IB_WR_ATOMIC_CMP_AND_SWP ||
1078 wqe->wr.opcode == IB_WR_ATOMIC_FETCH_AND_ADD) {
1083 (wqe->wr.opcode == IB_WR_RDMA_READ ||
1084 wqe->wr.opcode == IB_WR_ATOMIC_CMP_AND_SWP ||
1085 wqe->wr.opcode == IB_WR_ATOMIC_FETCH_AND_ADD)) {
1235 if (wqe->wr.opcode == IB_WR_RDMA_READ ||
1236 wqe->wr.opcode == IB_WR_ATOMIC_CMP_AND_SWP ||
1237 wqe->wr.opcode == IB_WR_ATOMIC_FETCH_AND_ADD)
1259 * @opcode: the opcode for this packet
1273 u32 opcode,
1286 if (opcode != OP(RDMA_READ_RESPONSE_MIDDLE)) {
1321 if (diff == 0 && opcode == OP(ACKNOWLEDGE)) {
1344 switch (opcode) {
1349 if (opcode == OP(ATOMIC_ACKNOWLEDGE))
1353 if (!do_rc_ack(qp, aeth, psn, opcode, val, rcd) ||
1354 opcode != OP(RDMA_READ_RESPONSE_FIRST))
1358 if (unlikely(wqe->wr.opcode != IB_WR_RDMA_READ))
1373 if (unlikely(wqe->wr.opcode != IB_WR_RDMA_READ))
1391 if (opcode == OP(RDMA_READ_RESPONSE_MIDDLE))
1407 if (!do_rc_ack(qp, aeth, psn, opcode, 0, rcd))
1432 if (unlikely(wqe->wr.opcode != IB_WR_RDMA_READ))
1482 * @opcode: the opcode for this packet
1496 u32 opcode,
1566 if (!e->opcode) {
1577 switch (opcode) {
1587 if (!e || e->opcode != OP(RDMA_READ_REQUEST))
1635 if (!e || e->opcode != (u8) opcode || old_req)
1719 u32 opcode;
1739 opcode = be32_to_cpu(ohdr->bth[0]);
1740 if (qib_ruc_check_hdr(ibp, hdr, has_grh, qp, opcode))
1744 opcode >>= 24;
1752 if (opcode >= OP(RDMA_READ_RESPONSE_FIRST) &&
1753 opcode <= OP(ATOMIC_ACKNOWLEDGE)) {
1754 qib_rc_rcv_resp(ibp, ohdr, data, tlen, qp, opcode, psn,
1762 if (qib_rc_rcv_error(ohdr, data, qp, opcode, psn, diff, rcd))
1767 /* Check for opcode sequence errors. */
1771 if (opcode == OP(SEND_MIDDLE) ||
1772 opcode == OP(SEND_LAST) ||
1773 opcode == OP(SEND_LAST_WITH_IMMEDIATE))
1779 if (opcode == OP(RDMA_WRITE_MIDDLE) ||
1780 opcode == OP(RDMA_WRITE_LAST) ||
1781 opcode == OP(RDMA_WRITE_LAST_WITH_IMMEDIATE))
1786 if (opcode == OP(SEND_MIDDLE) ||
1787 opcode == OP(SEND_LAST) ||
1788 opcode == OP(SEND_LAST_WITH_IMMEDIATE) ||
1789 opcode == OP(RDMA_WRITE_MIDDLE) ||
1790 opcode == OP(RDMA_WRITE_LAST) ||
1791 opcode == OP(RDMA_WRITE_LAST_WITH_IMMEDIATE))
1805 switch (opcode) {
1843 if (opcode == OP(SEND_ONLY))
1876 if (opcode == OP(RDMA_WRITE_LAST_WITH_IMMEDIATE) ||
1877 opcode == OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE))
1878 wc.opcode = IB_WC_RECV_RDMA_WITH_IMM;
1880 wc.opcode = IB_WC_RECV;
1923 if (opcode == OP(RDMA_WRITE_FIRST))
1925 else if (opcode == OP(RDMA_WRITE_ONLY))
1957 if (e->opcode == OP(RDMA_READ_REQUEST) && e->rdma_sge.mr) {
1984 e->opcode = opcode;
1995 qp->r_state = opcode;
2028 if (e->opcode == OP(RDMA_READ_REQUEST) && e->rdma_sge.mr) {
2045 e->atomic_data = (opcode == OP(FETCH_ADD)) ?
2052 e->opcode = opcode;
2058 qp->r_state = opcode;
2074 qp->r_state = opcode;