Lines Matching full:opcode
15 u32 opcode);
27 qp->req.opcode = next_opcode(qp, wqe, in retry_first_write_send()
28 wqe->wr.opcode); in retry_first_write_send()
51 qp->req.opcode = -1; in req_retry()
57 mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_retry()
163 wqe->mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_next_wqe()
167 static int next_opcode_rc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_rc() argument
169 switch (opcode) { in next_opcode_rc()
171 if (qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_FIRST || in next_opcode_rc()
172 qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_MIDDLE) in next_opcode_rc()
182 if (qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_FIRST || in next_opcode_rc()
183 qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_MIDDLE) in next_opcode_rc()
193 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
194 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
204 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
205 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
224 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
225 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
233 return opcode; in next_opcode_rc()
239 static int next_opcode_uc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_uc() argument
241 switch (opcode) { in next_opcode_uc()
243 if (qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_FIRST || in next_opcode_uc()
244 qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_MIDDLE) in next_opcode_uc()
254 if (qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_FIRST || in next_opcode_uc()
255 qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_MIDDLE) in next_opcode_uc()
265 if (qp->req.opcode == IB_OPCODE_UC_SEND_FIRST || in next_opcode_uc()
266 qp->req.opcode == IB_OPCODE_UC_SEND_MIDDLE) in next_opcode_uc()
276 if (qp->req.opcode == IB_OPCODE_UC_SEND_FIRST || in next_opcode_uc()
277 qp->req.opcode == IB_OPCODE_UC_SEND_MIDDLE) in next_opcode_uc()
291 u32 opcode) in next_opcode() argument
297 return next_opcode_rc(qp, opcode, fits); in next_opcode()
300 return next_opcode_uc(qp, opcode, fits); in next_opcode()
305 switch (opcode) { in next_opcode()
353 int opcode, int payload, in init_req_packet() argument
368 paylen = rxe_opcode[opcode].length + payload + pad + RXE_ICRC_SIZE; in init_req_packet()
373 pkt->opcode = opcode; in init_req_packet()
376 pkt->mask = rxe_opcode[opcode].mask; in init_req_packet()
404 bth_init(pkt, pkt->opcode, solicited, 0, pad, pkey, qp_num, in init_req_packet()
422 if (opcode == IB_OPCODE_RC_COMPARE_SWAP || in init_req_packet()
423 opcode == IB_OPCODE_RD_COMPARE_SWAP) { in init_req_packet()
547 qp->req.opcode = pkt->opcode; in update_state()
568 int opcode; in rxe_requester() local
581 qp->req.opcode = -1; in rxe_requester()
598 if (wqe->wr.opcode == IB_WR_LOCAL_INV) { in rxe_requester()
615 } else if (wqe->wr.opcode == IB_WR_REG_MR) { in rxe_requester()
650 opcode = next_opcode(qp, wqe, wqe->wr.opcode); in rxe_requester()
651 if (unlikely(opcode < 0)) { in rxe_requester()
656 mask = rxe_opcode[opcode].mask; in rxe_requester()
676 qp->req.opcode = IB_OPCODE_UD_SEND_ONLY; in rxe_requester()
688 skb = init_req_packet(qp, wqe, opcode, payload, &pkt); in rxe_requester()