Lines Matching refs:umem
64 BUG_ON(!tx_sa->umem); in sdp_post_srcavail()
65 BUG_ON(!tx_sa->umem->chunk_list.next); in sdp_post_srcavail()
67 chunk = list_entry(tx_sa->umem->chunk_list.next, struct ib_umem_chunk, list); in sdp_post_srcavail()
70 off = tx_sa->umem->offset; in sdp_post_srcavail()
71 len = tx_sa->umem->length; in sdp_post_srcavail()
86 payload_len = MIN(tx_sa->umem->page_size - off, len); in sdp_post_srcavail()
108 tx_sa->bytes_sent = tx_sa->umem->length; in sdp_post_srcavail()
423 struct ib_umem *umem; in sdp_alloc_fmr() local
447 umem = ib_umem_get(&sdp_sk(sk)->context, (unsigned long)uaddr, len, in sdp_alloc_fmr()
450 if (IS_ERR(umem)) { in sdp_alloc_fmr()
451 rc = PTR_ERR(umem); in sdp_alloc_fmr()
461 umem->offset, umem->length); in sdp_alloc_fmr()
470 list_for_each_entry(chunk, &umem->chunk_list, list) { in sdp_alloc_fmr()
478 umem->page_size * k; in sdp_alloc_fmr()
492 *_umem = umem; in sdp_alloc_fmr()
501 ib_umem_release(umem); in sdp_alloc_fmr()
535 sge.addr = rx_sa->umem->offset; in sdp_post_rdma_read()
536 sge.length = rx_sa->umem->length; in sdp_post_rdma_read()
570 rc = sdp_alloc_fmr(sk, iov->iov_base, len, &rx_sa->fmr, &rx_sa->umem); in sdp_rdma_to_iovec()
599 copied = rx_sa->umem->length; in sdp_rdma_to_iovec()
609 sdp_free_fmr(sk, &rx_sa->fmr, &rx_sa->umem); in sdp_rdma_to_iovec()
651 &tx_sa->fmr, &tx_sa->umem); in do_sdp_sendmsg_zcopy()
707 sdp_free_fmr(sk, &tx_sa->fmr, &tx_sa->umem); in do_sdp_sendmsg_zcopy()
788 sdp_free_fmr(sk, &tx_sa->fmr, &tx_sa->umem); in sdp_abort_srcavail()
803 sdp_free_fmr(sk, &rx_sa->fmr, &rx_sa->umem); in sdp_abort_rdma_read()