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()
62 qp->req.opcode = -1; in req_retry()
67 mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_retry()
186 wqe->mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_next_wqe()
190 static int next_opcode_rc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_rc() argument
192 switch (opcode) { 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_RDMA_WRITE_FIRST || in next_opcode_rc()
206 qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_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()
227 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
228 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
247 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
248 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
256 return opcode; in next_opcode_rc()
262 static int next_opcode_uc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_uc() argument
264 switch (opcode) { 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_RDMA_WRITE_FIRST || in next_opcode_uc()
278 qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_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()
299 if (qp->req.opcode == IB_OPCODE_UC_SEND_FIRST || in next_opcode_uc()
300 qp->req.opcode == IB_OPCODE_UC_SEND_MIDDLE) in next_opcode_uc()
314 u32 opcode) in next_opcode() argument
320 return next_opcode_rc(qp, opcode, fits); in next_opcode()
323 return next_opcode_uc(qp, opcode, fits); in next_opcode()
328 switch (opcode) { in next_opcode()
376 int opcode, int payload, in init_req_packet() argument
391 paylen = rxe_opcode[opcode].length + payload + pad + RXE_ICRC_SIZE; in init_req_packet()
396 pkt->opcode = opcode; in init_req_packet()
399 pkt->mask = rxe_opcode[opcode].mask; in init_req_packet()
426 bth_init(pkt, pkt->opcode, solicited, 0, pad, pkey, qp_num, in init_req_packet()
444 if (opcode == IB_OPCODE_RC_COMPARE_SWAP || in init_req_packet()
445 opcode == IB_OPCODE_RD_COMPARE_SWAP) { in init_req_packet()
560 qp->req.opcode = pkt->opcode; in update_state()
574 u8 opcode = wqe->wr.opcode; in rxe_do_local_ops() local
579 switch (opcode) { in rxe_do_local_ops()
610 pr_err("Unexpected send wqe opcode %d\n", opcode); in rxe_do_local_ops()
635 int opcode; in rxe_requester() local
649 qp->req.opcode = -1; in rxe_requester()
687 opcode = next_opcode(qp, wqe, wqe->wr.opcode); in rxe_requester()
688 if (unlikely(opcode < 0)) { in rxe_requester()
693 mask = rxe_opcode[opcode].mask; in rxe_requester()
713 qp->req.opcode = IB_OPCODE_UD_SEND_ONLY; in rxe_requester()
725 skb = init_req_packet(qp, wqe, opcode, payload, &pkt); in rxe_requester()