Lines Matching refs:OP
38 #define OP(x) IB_OPCODE_UC_##x macro
109 qp->s_state = OP(SEND_FIRST); in qib_make_uc_req()
114 qp->s_state = OP(SEND_ONLY); in qib_make_uc_req()
117 OP(SEND_ONLY_WITH_IMMEDIATE); in qib_make_uc_req()
138 qp->s_state = OP(RDMA_WRITE_FIRST); in qib_make_uc_req()
143 qp->s_state = OP(RDMA_WRITE_ONLY); in qib_make_uc_req()
146 OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE); in qib_make_uc_req()
163 case OP(SEND_FIRST): in qib_make_uc_req()
164 qp->s_state = OP(SEND_MIDDLE); in qib_make_uc_req()
166 case OP(SEND_MIDDLE): in qib_make_uc_req()
173 qp->s_state = OP(SEND_LAST); in qib_make_uc_req()
175 qp->s_state = OP(SEND_LAST_WITH_IMMEDIATE); in qib_make_uc_req()
187 case OP(RDMA_WRITE_FIRST): in qib_make_uc_req()
188 qp->s_state = OP(RDMA_WRITE_MIDDLE); in qib_make_uc_req()
190 case OP(RDMA_WRITE_MIDDLE): in qib_make_uc_req()
197 qp->s_state = OP(RDMA_WRITE_LAST); in qib_make_uc_req()
200 OP(RDMA_WRITE_LAST_WITH_IMMEDIATE); in qib_make_uc_req()
275 if (qp->r_state == OP(SEND_FIRST) || in qib_uc_rcv()
276 qp->r_state == OP(SEND_MIDDLE)) { in qib_uc_rcv()
281 qp->r_state = OP(SEND_LAST); in qib_uc_rcv()
283 case OP(SEND_FIRST): in qib_uc_rcv()
284 case OP(SEND_ONLY): in qib_uc_rcv()
285 case OP(SEND_ONLY_WITH_IMMEDIATE): in qib_uc_rcv()
288 case OP(RDMA_WRITE_FIRST): in qib_uc_rcv()
289 case OP(RDMA_WRITE_ONLY): in qib_uc_rcv()
290 case OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE): in qib_uc_rcv()
300 case OP(SEND_FIRST): in qib_uc_rcv()
301 case OP(SEND_MIDDLE): in qib_uc_rcv()
302 if (opcode == OP(SEND_MIDDLE) || in qib_uc_rcv()
303 opcode == OP(SEND_LAST) || in qib_uc_rcv()
304 opcode == OP(SEND_LAST_WITH_IMMEDIATE)) in qib_uc_rcv()
308 case OP(RDMA_WRITE_FIRST): in qib_uc_rcv()
309 case OP(RDMA_WRITE_MIDDLE): in qib_uc_rcv()
310 if (opcode == OP(RDMA_WRITE_MIDDLE) || in qib_uc_rcv()
311 opcode == OP(RDMA_WRITE_LAST) || in qib_uc_rcv()
312 opcode == OP(RDMA_WRITE_LAST_WITH_IMMEDIATE)) in qib_uc_rcv()
317 if (opcode == OP(SEND_FIRST) || in qib_uc_rcv()
318 opcode == OP(SEND_ONLY) || in qib_uc_rcv()
319 opcode == OP(SEND_ONLY_WITH_IMMEDIATE) || in qib_uc_rcv()
320 opcode == OP(RDMA_WRITE_FIRST) || in qib_uc_rcv()
321 opcode == OP(RDMA_WRITE_ONLY) || in qib_uc_rcv()
322 opcode == OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE)) in qib_uc_rcv()
332 case OP(SEND_FIRST): in qib_uc_rcv()
333 case OP(SEND_ONLY): in qib_uc_rcv()
334 case OP(SEND_ONLY_WITH_IMMEDIATE): in qib_uc_rcv()
351 if (opcode == OP(SEND_ONLY)) in qib_uc_rcv()
353 else if (opcode == OP(SEND_ONLY_WITH_IMMEDIATE)) in qib_uc_rcv()
356 case OP(SEND_MIDDLE): in qib_uc_rcv()
366 case OP(SEND_LAST_WITH_IMMEDIATE): in qib_uc_rcv()
372 case OP(SEND_LAST): in qib_uc_rcv()
407 case OP(RDMA_WRITE_FIRST): in qib_uc_rcv()
408 case OP(RDMA_WRITE_ONLY): in qib_uc_rcv()
409 case OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE): /* consume RWQE */ in qib_uc_rcv()
438 if (opcode == OP(RDMA_WRITE_ONLY)) in qib_uc_rcv()
440 else if (opcode == OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE)) { in qib_uc_rcv()
445 case OP(RDMA_WRITE_MIDDLE): in qib_uc_rcv()
455 case OP(RDMA_WRITE_LAST_WITH_IMMEDIATE): in qib_uc_rcv()
486 case OP(RDMA_WRITE_LAST): in qib_uc_rcv()