Lines Matching refs: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()
57 qp->req.opcode = -1; in req_retry()
62 mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_retry()
175 wqe->mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_next_wqe()
179 static int next_opcode_rc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_rc() argument
181 switch (opcode) { in next_opcode_rc()
183 if (qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_FIRST || in next_opcode_rc()
184 qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_MIDDLE) in next_opcode_rc()
194 if (qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_FIRST || in next_opcode_rc()
195 qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_MIDDLE) in next_opcode_rc()
205 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
206 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
216 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
217 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
236 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
237 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
245 return opcode; in next_opcode_rc()
251 static int next_opcode_uc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_uc() argument
253 switch (opcode) { in next_opcode_uc()
255 if (qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_FIRST || in next_opcode_uc()
256 qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_MIDDLE) in next_opcode_uc()
266 if (qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_FIRST || in next_opcode_uc()
267 qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_MIDDLE) in next_opcode_uc()
277 if (qp->req.opcode == IB_OPCODE_UC_SEND_FIRST || in next_opcode_uc()
278 qp->req.opcode == IB_OPCODE_UC_SEND_MIDDLE) in next_opcode_uc()
288 if (qp->req.opcode == IB_OPCODE_UC_SEND_FIRST || in next_opcode_uc()
289 qp->req.opcode == IB_OPCODE_UC_SEND_MIDDLE) in next_opcode_uc()
303 u32 opcode) in next_opcode() argument
309 return next_opcode_rc(qp, opcode, fits); in next_opcode()
312 return next_opcode_uc(qp, opcode, fits); in next_opcode()
317 switch (opcode) { in next_opcode()
365 int opcode, int payload, in init_req_packet() argument
380 paylen = rxe_opcode[opcode].length + payload + pad + RXE_ICRC_SIZE; in init_req_packet()
384 pkt->opcode = opcode; in init_req_packet()
387 pkt->mask = rxe_opcode[opcode].mask; in init_req_packet()
417 bth_init(pkt, pkt->opcode, solicited, 0, pad, pkey, qp_num, in init_req_packet()
435 if (opcode == IB_OPCODE_RC_COMPARE_SWAP || in init_req_packet()
436 opcode == IB_OPCODE_RD_COMPARE_SWAP) { in init_req_packet()
551 qp->req.opcode = pkt->opcode; in update_state()
566 u8 opcode = wqe->wr.opcode; in rxe_do_local_ops() local
570 switch (opcode) { in rxe_do_local_ops()
598 pr_err("Unexpected send wqe opcode %d\n", opcode); in rxe_do_local_ops()
623 int opcode; in rxe_requester() local
638 qp->req.opcode = -1; in rxe_requester()
676 opcode = next_opcode(qp, wqe, wqe->wr.opcode); in rxe_requester()
677 if (unlikely(opcode < 0)) { in rxe_requester()
682 mask = rxe_opcode[opcode].mask; in rxe_requester()
702 qp->req.opcode = IB_OPCODE_UD_SEND_ONLY; in rxe_requester()
714 skb = init_req_packet(qp, wqe, opcode, payload, &pkt); in rxe_requester()