Lines Matching refs:opcode

14 		       u32 opcode);
25 qp->req.opcode = next_opcode(qp, wqe, in retry_first_write_send()
26 wqe->wr.opcode); in retry_first_write_send()
53 qp->req.opcode = -1; in req_retry()
58 mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_retry()
193 wqe->mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_next_wqe()
211 if (wqe->wr.opcode == IB_WR_LOCAL_INV) in rxe_wqe_is_fenced()
223 static int next_opcode_rc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_rc() argument
225 switch (opcode) { in next_opcode_rc()
227 if (qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_FIRST || in next_opcode_rc()
228 qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_MIDDLE) in next_opcode_rc()
238 if (qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_FIRST || in next_opcode_rc()
239 qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_MIDDLE) in next_opcode_rc()
249 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
250 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
260 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
261 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
283 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
284 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
296 return opcode; in next_opcode_rc()
302 static int next_opcode_uc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_uc() argument
304 switch (opcode) { in next_opcode_uc()
306 if (qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_FIRST || in next_opcode_uc()
307 qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_MIDDLE) in next_opcode_uc()
317 if (qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_FIRST || in next_opcode_uc()
318 qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_MIDDLE) in next_opcode_uc()
328 if (qp->req.opcode == IB_OPCODE_UC_SEND_FIRST || in next_opcode_uc()
329 qp->req.opcode == IB_OPCODE_UC_SEND_MIDDLE) in next_opcode_uc()
339 if (qp->req.opcode == IB_OPCODE_UC_SEND_FIRST || in next_opcode_uc()
340 qp->req.opcode == IB_OPCODE_UC_SEND_MIDDLE) in next_opcode_uc()
354 u32 opcode) in next_opcode() argument
360 return next_opcode_rc(qp, opcode, fits); in next_opcode()
363 return next_opcode_uc(qp, opcode, fits); in next_opcode()
367 switch (opcode) { in next_opcode()
416 int opcode, u32 payload, in init_req_packet() argument
429 paylen = rxe_opcode[opcode].length + payload + pad + RXE_ICRC_SIZE; in init_req_packet()
453 bth_init(pkt, pkt->opcode, solicited, 0, pad, IB_DEFAULT_PKEY_FULL, qp_num, in init_req_packet()
478 if (opcode == IB_OPCODE_RC_COMPARE_SWAP) { in init_req_packet()
580 qp->req.opcode = pkt->opcode; in update_state()
595 u8 opcode = wqe->wr.opcode; in rxe_do_local_ops() local
599 switch (opcode) { in rxe_do_local_ops()
627 rxe_dbg_qp(qp, "Unexpected send wqe opcode %d\n", opcode); in rxe_do_local_ops()
648 int opcode; in rxe_requester() local
676 qp->req.opcode = -1; in rxe_requester()
728 opcode = next_opcode(qp, wqe, wqe->wr.opcode); in rxe_requester()
729 if (unlikely(opcode < 0)) { in rxe_requester()
734 mask = rxe_opcode[opcode].mask; in rxe_requester()
756 qp->req.opcode = IB_OPCODE_UD_SEND_ONLY; in rxe_requester()
767 pkt.opcode = opcode; in rxe_requester()
770 pkt.mask = rxe_opcode[opcode].mask; in rxe_requester()
780 skb = init_req_packet(qp, av, wqe, opcode, payload, &pkt); in rxe_requester()