Lines Matching refs:OP
38 #define OP(x) IB_OPCODE_UC_##x macro
108 qp->s_state = OP(SEND_FIRST); in qib_make_uc_req()
113 qp->s_state = OP(SEND_ONLY); in qib_make_uc_req()
116 OP(SEND_ONLY_WITH_IMMEDIATE); in qib_make_uc_req()
137 qp->s_state = OP(RDMA_WRITE_FIRST); in qib_make_uc_req()
142 qp->s_state = OP(RDMA_WRITE_ONLY); in qib_make_uc_req()
145 OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE); in qib_make_uc_req()
162 case OP(SEND_FIRST): in qib_make_uc_req()
163 qp->s_state = OP(SEND_MIDDLE); in qib_make_uc_req()
165 case OP(SEND_MIDDLE): in qib_make_uc_req()
172 qp->s_state = OP(SEND_LAST); in qib_make_uc_req()
174 qp->s_state = OP(SEND_LAST_WITH_IMMEDIATE); in qib_make_uc_req()
186 case OP(RDMA_WRITE_FIRST): in qib_make_uc_req()
187 qp->s_state = OP(RDMA_WRITE_MIDDLE); in qib_make_uc_req()
189 case OP(RDMA_WRITE_MIDDLE): in qib_make_uc_req()
196 qp->s_state = OP(RDMA_WRITE_LAST); in qib_make_uc_req()
199 OP(RDMA_WRITE_LAST_WITH_IMMEDIATE); in qib_make_uc_req()
274 if (qp->r_state == OP(SEND_FIRST) || in qib_uc_rcv()
275 qp->r_state == OP(SEND_MIDDLE)) { in qib_uc_rcv()
280 qp->r_state = OP(SEND_LAST); in qib_uc_rcv()
282 case OP(SEND_FIRST): in qib_uc_rcv()
283 case OP(SEND_ONLY): in qib_uc_rcv()
284 case OP(SEND_ONLY_WITH_IMMEDIATE): in qib_uc_rcv()
287 case OP(RDMA_WRITE_FIRST): in qib_uc_rcv()
288 case OP(RDMA_WRITE_ONLY): in qib_uc_rcv()
289 case OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE): in qib_uc_rcv()
299 case OP(SEND_FIRST): in qib_uc_rcv()
300 case OP(SEND_MIDDLE): in qib_uc_rcv()
301 if (opcode == OP(SEND_MIDDLE) || in qib_uc_rcv()
302 opcode == OP(SEND_LAST) || in qib_uc_rcv()
303 opcode == OP(SEND_LAST_WITH_IMMEDIATE)) in qib_uc_rcv()
307 case OP(RDMA_WRITE_FIRST): in qib_uc_rcv()
308 case OP(RDMA_WRITE_MIDDLE): in qib_uc_rcv()
309 if (opcode == OP(RDMA_WRITE_MIDDLE) || in qib_uc_rcv()
310 opcode == OP(RDMA_WRITE_LAST) || in qib_uc_rcv()
311 opcode == OP(RDMA_WRITE_LAST_WITH_IMMEDIATE)) in qib_uc_rcv()
316 if (opcode == OP(SEND_FIRST) || in qib_uc_rcv()
317 opcode == OP(SEND_ONLY) || in qib_uc_rcv()
318 opcode == OP(SEND_ONLY_WITH_IMMEDIATE) || in qib_uc_rcv()
319 opcode == OP(RDMA_WRITE_FIRST) || in qib_uc_rcv()
320 opcode == OP(RDMA_WRITE_ONLY) || in qib_uc_rcv()
321 opcode == OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE)) in qib_uc_rcv()
331 case OP(SEND_FIRST): in qib_uc_rcv()
332 case OP(SEND_ONLY): in qib_uc_rcv()
333 case OP(SEND_ONLY_WITH_IMMEDIATE): in qib_uc_rcv()
350 if (opcode == OP(SEND_ONLY)) in qib_uc_rcv()
352 else if (opcode == OP(SEND_ONLY_WITH_IMMEDIATE)) in qib_uc_rcv()
355 case OP(SEND_MIDDLE): in qib_uc_rcv()
365 case OP(SEND_LAST_WITH_IMMEDIATE): in qib_uc_rcv()
371 case OP(SEND_LAST): in qib_uc_rcv()
406 case OP(RDMA_WRITE_FIRST): in qib_uc_rcv()
407 case OP(RDMA_WRITE_ONLY): in qib_uc_rcv()
408 case OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE): /* consume RWQE */ in qib_uc_rcv()
437 if (opcode == OP(RDMA_WRITE_ONLY)) in qib_uc_rcv()
439 else if (opcode == OP(RDMA_WRITE_ONLY_WITH_IMMEDIATE)) { in qib_uc_rcv()
444 case OP(RDMA_WRITE_MIDDLE): in qib_uc_rcv()
454 case OP(RDMA_WRITE_LAST_WITH_IMMEDIATE): in qib_uc_rcv()
485 case OP(RDMA_WRITE_LAST): in qib_uc_rcv()