Lines Matching refs:opcode
42 u32 opcode);
54 qp->req.opcode = next_opcode(qp, wqe, in retry_first_write_send()
55 wqe->wr.opcode); in retry_first_write_send()
81 qp->req.opcode = -1; in req_retry()
87 mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_retry()
187 wqe->mask = wr_opcode_mask(wqe->wr.opcode, qp); in req_next_wqe()
191 static int next_opcode_rc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_rc() argument
193 switch (opcode) { in next_opcode_rc()
195 if (qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_FIRST || in next_opcode_rc()
196 qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_MIDDLE) in next_opcode_rc()
206 if (qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_FIRST || in next_opcode_rc()
207 qp->req.opcode == IB_OPCODE_RC_RDMA_WRITE_MIDDLE) in next_opcode_rc()
217 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
218 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
228 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
229 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
248 if (qp->req.opcode == IB_OPCODE_RC_SEND_FIRST || in next_opcode_rc()
249 qp->req.opcode == IB_OPCODE_RC_SEND_MIDDLE) in next_opcode_rc()
257 return opcode; in next_opcode_rc()
263 static int next_opcode_uc(struct rxe_qp *qp, u32 opcode, int fits) in next_opcode_uc() argument
265 switch (opcode) { in next_opcode_uc()
267 if (qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_FIRST || in next_opcode_uc()
268 qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_MIDDLE) in next_opcode_uc()
278 if (qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_FIRST || in next_opcode_uc()
279 qp->req.opcode == IB_OPCODE_UC_RDMA_WRITE_MIDDLE) in next_opcode_uc()
289 if (qp->req.opcode == IB_OPCODE_UC_SEND_FIRST || in next_opcode_uc()
290 qp->req.opcode == IB_OPCODE_UC_SEND_MIDDLE) in next_opcode_uc()
300 if (qp->req.opcode == IB_OPCODE_UC_SEND_FIRST || in next_opcode_uc()
301 qp->req.opcode == IB_OPCODE_UC_SEND_MIDDLE) in next_opcode_uc()
315 u32 opcode) in next_opcode() argument
321 return next_opcode_rc(qp, opcode, fits); in next_opcode()
324 return next_opcode_uc(qp, opcode, fits); in next_opcode()
329 switch (opcode) { in next_opcode()
377 int opcode, int payload, in init_req_packet() argument
393 paylen = rxe_opcode[opcode].length + payload + pad + RXE_ICRC_SIZE; in init_req_packet()
398 pkt->opcode = opcode; in init_req_packet()
401 pkt->mask = rxe_opcode[opcode].mask; in init_req_packet()
431 bth_init(pkt, pkt->opcode, solicited, 0, pad, pkey, qp_num, in init_req_packet()
449 if (opcode == IB_OPCODE_RC_COMPARE_SWAP || in init_req_packet()
450 opcode == IB_OPCODE_RD_COMPARE_SWAP) { in init_req_packet()
568 qp->req.opcode = pkt->opcode; in update_state()
589 int opcode; in rxe_requester() local
602 qp->req.opcode = -1; in rxe_requester()
619 if (wqe->wr.opcode == IB_WR_LOCAL_INV) { in rxe_requester()
636 } else if (wqe->wr.opcode == IB_WR_REG_MR) { in rxe_requester()
669 opcode = next_opcode(qp, wqe, wqe->wr.opcode); in rxe_requester()
670 if (unlikely(opcode < 0)) { in rxe_requester()
675 mask = rxe_opcode[opcode].mask; in rxe_requester()
695 qp->req.opcode = IB_OPCODE_UD_SEND_ONLY; in rxe_requester()
707 skb = init_req_packet(qp, wqe, opcode, payload, &pkt); in rxe_requester()