Lines Matching refs:last
499 struct ib_send_wr *first, **prev, *last; in frwr_unmap_sync() local
516 last = &mr->mr_invwr; in frwr_unmap_sync()
517 last->next = NULL; in frwr_unmap_sync()
518 last->wr_cqe = &mr->mr_cqe; in frwr_unmap_sync()
519 last->sg_list = NULL; in frwr_unmap_sync()
520 last->num_sge = 0; in frwr_unmap_sync()
521 last->opcode = IB_WR_LOCAL_INV; in frwr_unmap_sync()
522 last->send_flags = IB_SEND_SIGNALED; in frwr_unmap_sync()
523 last->ex.invalidate_rkey = mr->mr_handle; in frwr_unmap_sync()
525 last->wr_cqe->done = frwr_wc_localinv; in frwr_unmap_sync()
527 *prev = last; in frwr_unmap_sync()
528 prev = &last->next; in frwr_unmap_sync()
531 mr = container_of(last, struct rpcrdma_mr, mr_invwr); in frwr_unmap_sync()
537 last->wr_cqe->done = frwr_wc_localinv_wake; in frwr_unmap_sync()
605 struct ib_send_wr *first, *last, **prev; in frwr_unmap_async() local
619 last = &mr->mr_invwr; in frwr_unmap_async()
620 last->next = NULL; in frwr_unmap_async()
621 last->wr_cqe = &mr->mr_cqe; in frwr_unmap_async()
622 last->sg_list = NULL; in frwr_unmap_async()
623 last->num_sge = 0; in frwr_unmap_async()
624 last->opcode = IB_WR_LOCAL_INV; in frwr_unmap_async()
625 last->send_flags = IB_SEND_SIGNALED; in frwr_unmap_async()
626 last->ex.invalidate_rkey = mr->mr_handle; in frwr_unmap_async()
628 last->wr_cqe->done = frwr_wc_localinv; in frwr_unmap_async()
630 *prev = last; in frwr_unmap_async()
631 prev = &last->next; in frwr_unmap_async()
639 last->wr_cqe->done = frwr_wc_localinv_done; in frwr_unmap_async()