Lines Matching refs:rb
1534 struct rpcrdma_regbuf *rb; in rpcrdma_alloc_regbuf() local
1538 rb = kmalloc(sizeof(*rb) + size, flags); in rpcrdma_alloc_regbuf()
1539 if (rb == NULL) in rpcrdma_alloc_regbuf()
1542 rb->rg_size = size; in rpcrdma_alloc_regbuf()
1543 rb->rg_owner = NULL; in rpcrdma_alloc_regbuf()
1544 rc = rpcrdma_register_internal(ia, rb->rg_base, size, in rpcrdma_alloc_regbuf()
1545 &rb->rg_mr, &rb->rg_iov); in rpcrdma_alloc_regbuf()
1549 return rb; in rpcrdma_alloc_regbuf()
1552 kfree(rb); in rpcrdma_alloc_regbuf()
1563 rpcrdma_free_regbuf(struct rpcrdma_ia *ia, struct rpcrdma_regbuf *rb) in rpcrdma_free_regbuf() argument
1565 if (rb) { in rpcrdma_free_regbuf()
1566 rpcrdma_deregister_internal(ia, rb->rg_mr, &rb->rg_iov); in rpcrdma_free_regbuf()
1567 kfree(rb); in rpcrdma_free_regbuf()