Lines Matching refs: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()
167 wqe->mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_next_wqe()
185 if (wqe->wr.opcode == IB_WR_LOCAL_INV) in rxe_wqe_is_fenced()
197 static int next_opcode_rc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_rc() argument
199 switch (opcode) { in next_opcode_rc()
201 if (qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_FIRST || in next_opcode_rc()
202 qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_MIDDLE) in next_opcode_rc()
212 if (qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_FIRST || in next_opcode_rc()
213 qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_MIDDLE) in next_opcode_rc()
223 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
224 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
234 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
235 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
254 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
255 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
263 return opcode; in next_opcode_rc()
269 static int next_opcode_uc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_uc() argument
271 switch (opcode) { in next_opcode_uc()
273 if (qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_FIRST || in next_opcode_uc()
274 qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_MIDDLE) in next_opcode_uc()
284 if (qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_FIRST || in next_opcode_uc()
285 qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_MIDDLE) in next_opcode_uc()
295 if (qp->req.opcode == IB_OPCODE_UC_SEND_FIRST || in next_opcode_uc()
296 qp->req.opcode == IB_OPCODE_UC_SEND_MIDDLE) in next_opcode_uc()
306 if (qp->req.opcode == IB_OPCODE_UC_SEND_FIRST || in next_opcode_uc()
307 qp->req.opcode == IB_OPCODE_UC_SEND_MIDDLE) in next_opcode_uc()
321 u32 opcode) in next_opcode() argument
327 return next_opcode_rc(qp, opcode, fits); in next_opcode()
330 return next_opcode_uc(qp, opcode, fits); in next_opcode()
334 switch (opcode) { in next_opcode()
383 int opcode, u32 payload, in init_req_packet() argument
396 paylen = rxe_opcode[opcode].length + payload + pad + RXE_ICRC_SIZE; in init_req_packet()
419 bth_init(pkt, pkt->opcode, solicited, 0, pad, IB_DEFAULT_PKEY_FULL, qp_num, in init_req_packet()
437 if (opcode == IB_OPCODE_RC_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()
626 int opcode; in rxe_requester() local
655 qp->req.opcode = -1; in rxe_requester()
705 opcode = next_opcode(qp, wqe, wqe->wr.opcode); in rxe_requester()
706 if (unlikely(opcode < 0)) { in rxe_requester()
711 mask = rxe_opcode[opcode].mask; in rxe_requester()
731 qp->req.opcode = IB_OPCODE_UD_SEND_ONLY; in rxe_requester()
743 pkt.opcode = opcode; in rxe_requester()
746 pkt.mask = rxe_opcode[opcode].mask; in rxe_requester()
756 skb = init_req_packet(qp, av, wqe, opcode, payload, &pkt); in rxe_requester()