Lines Matching refs:page_base
138 offset = offset_in_page(xdr->page_base); in rpcrdma_args_inline()
190 ppages = buf->pages + (buf->page_base >> PAGE_SHIFT); in rpcrdma_alloc_sparse_pages()
232 unsigned long page_base; in rpcrdma_convert_iovs() local
241 ppages = xdrbuf->pages + (xdrbuf->page_base >> PAGE_SHIFT); in rpcrdma_convert_iovs()
242 page_base = offset_in_page(xdrbuf->page_base); in rpcrdma_convert_iovs()
245 seg->mr_offset = page_base; in rpcrdma_convert_iovs()
246 seg->mr_len = min_t(u32, PAGE_SIZE - page_base, len); in rpcrdma_convert_iovs()
251 page_base = 0; in rpcrdma_convert_iovs()
601 unsigned int page_base, len, remaining; in rpcrdma_prepare_pagelist() local
605 ppages = xdr->pages + (xdr->page_base >> PAGE_SHIFT); in rpcrdma_prepare_pagelist()
606 page_base = offset_in_page(xdr->page_base); in rpcrdma_prepare_pagelist()
610 len = min_t(unsigned int, PAGE_SIZE - page_base, remaining); in rpcrdma_prepare_pagelist()
612 page_base, len, DMA_TO_DEVICE); in rpcrdma_prepare_pagelist()
622 page_base = 0; in rpcrdma_prepare_pagelist()
638 unsigned int page_base, unsigned int len) in rpcrdma_prepare_tail_iov() argument
645 sge->addr = ib_dma_map_page(rdmab_device(rb), page, page_base, len, in rpcrdma_prepare_tail_iov()
680 unsigned int len, page_base, remaining; in rpcrdma_pullup_pagelist() local
686 ppages = xdr->pages + (xdr->page_base >> PAGE_SHIFT); in rpcrdma_pullup_pagelist()
687 page_base = offset_in_page(xdr->page_base); in rpcrdma_pullup_pagelist()
691 src += page_base; in rpcrdma_pullup_pagelist()
692 len = min_t(unsigned int, PAGE_SIZE - page_base, remaining); in rpcrdma_pullup_pagelist()
699 page_base = 0; in rpcrdma_pullup_pagelist()
761 unsigned int page_base, len; in rpcrdma_prepare_readch() local
768 page_base = offset_in_page(xdr->tail[0].iov_base); in rpcrdma_prepare_readch()
770 page_base += len & 3; in rpcrdma_prepare_readch()
772 if (!rpcrdma_prepare_tail_iov(req, xdr, page_base, len)) in rpcrdma_prepare_readch()
1046 int page_base; in rpcrdma_inline_fixup() local
1064 (rqst->rq_rcv_buf.page_base >> PAGE_SHIFT); in rpcrdma_inline_fixup()
1065 page_base = offset_in_page(rqst->rq_rcv_buf.page_base); in rpcrdma_inline_fixup()
1073 npages = PAGE_ALIGN(page_base + pagelist_len) >> PAGE_SHIFT; in rpcrdma_inline_fixup()
1075 curlen = PAGE_SIZE - page_base; in rpcrdma_inline_fixup()
1080 memcpy(destp + page_base, srcp, curlen); in rpcrdma_inline_fixup()
1089 page_base = 0; in rpcrdma_inline_fixup()