Lines Matching full:opcode
15 u32 opcode);
26 qp->req.opcode = next_opcode(qp, wqe, in retry_first_write_send()
27 wqe->wr.opcode); in retry_first_write_send()
54 qp->req.opcode = -1; in req_retry()
59 mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_retry()
194 wqe->mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_next_wqe()
212 if (wqe->wr.opcode == IB_WR_LOCAL_INV) in rxe_wqe_is_fenced()
224 static int next_opcode_rc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_rc() argument
226 switch (opcode) { in next_opcode_rc()
228 if (qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_FIRST || in next_opcode_rc()
229 qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_MIDDLE) in next_opcode_rc()
239 if (qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_FIRST || in next_opcode_rc()
240 qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_MIDDLE) in next_opcode_rc()
250 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
251 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
261 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
262 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
284 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
285 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
297 return opcode; in next_opcode_rc()
303 static int next_opcode_uc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_uc() argument
305 switch (opcode) { in next_opcode_uc()
307 if (qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_FIRST || in next_opcode_uc()
308 qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_MIDDLE) in next_opcode_uc()
318 if (qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_FIRST || in next_opcode_uc()
319 qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_MIDDLE) in next_opcode_uc()
329 if (qp->req.opcode == IB_OPCODE_UC_SEND_FIRST || in next_opcode_uc()
330 qp->req.opcode == IB_OPCODE_UC_SEND_MIDDLE) in next_opcode_uc()
340 if (qp->req.opcode == IB_OPCODE_UC_SEND_FIRST || in next_opcode_uc()
341 qp->req.opcode == IB_OPCODE_UC_SEND_MIDDLE) in next_opcode_uc()
355 u32 opcode) in next_opcode() argument
361 return next_opcode_rc(qp, opcode, fits); in next_opcode()
364 return next_opcode_uc(qp, opcode, fits); in next_opcode()
368 switch (opcode) { in next_opcode()
417 int opcode, u32 payload, in init_req_packet() argument
430 paylen = rxe_opcode[opcode].length + payload + pad + RXE_ICRC_SIZE; in init_req_packet()
454 bth_init(pkt, pkt->opcode, solicited, 0, pad, IB_DEFAULT_PKEY_FULL, qp_num, in init_req_packet()
479 if (opcode == IB_OPCODE_RC_COMPARE_SWAP) { in init_req_packet()
581 qp->req.opcode = pkt->opcode; in update_state()
596 u8 opcode = wqe->wr.opcode; in rxe_do_local_ops() local
600 switch (opcode) { in rxe_do_local_ops()
628 rxe_dbg_qp(qp, "Unexpected send wqe opcode %d\n", opcode); in rxe_do_local_ops()
649 int opcode; in rxe_requester() local
677 qp->req.opcode = -1; in rxe_requester()
729 opcode = next_opcode(qp, wqe, wqe->wr.opcode); in rxe_requester()
730 if (unlikely(opcode < 0)) { in rxe_requester()
735 mask = rxe_opcode[opcode].mask; in rxe_requester()
757 qp->req.opcode = IB_OPCODE_UD_SEND_ONLY; in rxe_requester()
768 pkt.opcode = opcode; in rxe_requester()
771 pkt.mask = rxe_opcode[opcode].mask; in rxe_requester()
781 skb = init_req_packet(qp, av, wqe, opcode, payload, &pkt); in rxe_requester()