Lines Matching refs:page_base

142 		offset = offset_in_page(xdr->page_base);  in rpcrdma_args_inline()
194 ppages = buf->pages + (buf->page_base >> PAGE_SHIFT); in rpcrdma_alloc_sparse_pages()
236 unsigned long page_base; in rpcrdma_convert_iovs() local
245 ppages = xdrbuf->pages + (xdrbuf->page_base >> PAGE_SHIFT); in rpcrdma_convert_iovs()
246 page_base = offset_in_page(xdrbuf->page_base); in rpcrdma_convert_iovs()
249 seg->mr_offset = page_base; in rpcrdma_convert_iovs()
250 seg->mr_len = min_t(u32, PAGE_SIZE - page_base, len); in rpcrdma_convert_iovs()
255 page_base = 0; in rpcrdma_convert_iovs()
605 unsigned int page_base, len, remaining; in rpcrdma_prepare_pagelist() local
609 ppages = xdr->pages + (xdr->page_base >> PAGE_SHIFT); in rpcrdma_prepare_pagelist()
610 page_base = offset_in_page(xdr->page_base); in rpcrdma_prepare_pagelist()
614 len = min_t(unsigned int, PAGE_SIZE - page_base, remaining); in rpcrdma_prepare_pagelist()
616 page_base, len, DMA_TO_DEVICE); in rpcrdma_prepare_pagelist()
626 page_base = 0; in rpcrdma_prepare_pagelist()
642 unsigned int page_base, unsigned int len) in rpcrdma_prepare_tail_iov() argument
649 sge->addr = ib_dma_map_page(rdmab_device(rb), page, page_base, len, in rpcrdma_prepare_tail_iov()
684 unsigned int len, page_base, remaining; in rpcrdma_pullup_pagelist() local
690 ppages = xdr->pages + (xdr->page_base >> PAGE_SHIFT); in rpcrdma_pullup_pagelist()
691 page_base = offset_in_page(xdr->page_base); in rpcrdma_pullup_pagelist()
695 src += page_base; in rpcrdma_pullup_pagelist()
696 len = min_t(unsigned int, PAGE_SIZE - page_base, remaining); in rpcrdma_pullup_pagelist()
703 page_base = 0; in rpcrdma_pullup_pagelist()
765 unsigned int page_base, len; in rpcrdma_prepare_readch() local
772 page_base = offset_in_page(xdr->tail[0].iov_base); in rpcrdma_prepare_readch()
774 page_base += len & 3; in rpcrdma_prepare_readch()
776 if (!rpcrdma_prepare_tail_iov(req, xdr, page_base, len)) in rpcrdma_prepare_readch()
1050 int page_base; in rpcrdma_inline_fixup() local
1068 (rqst->rq_rcv_buf.page_base >> PAGE_SHIFT); in rpcrdma_inline_fixup()
1069 page_base = offset_in_page(rqst->rq_rcv_buf.page_base); in rpcrdma_inline_fixup()
1077 npages = PAGE_ALIGN(page_base + pagelist_len) >> PAGE_SHIFT; in rpcrdma_inline_fixup()
1079 curlen = PAGE_SIZE - page_base; in rpcrdma_inline_fixup()
1084 memcpy(destp + page_base, srcp, curlen); in rpcrdma_inline_fixup()
1093 page_base = 0; in rpcrdma_inline_fixup()