Lines Matching refs:pgbase
223 * @pgbase: page vector address of destination
231 _copy_to_pages(struct page **pages, size_t pgbase, const char *p, size_t len)
237 pgto = pages + (pgbase >> PAGE_CACHE_SHIFT);
238 pgbase &= ~PAGE_CACHE_MASK;
241 copy = PAGE_CACHE_SIZE - pgbase;
246 memcpy(vto + pgbase, p, copy);
249 pgbase += copy;
250 if (pgbase == PAGE_CACHE_SIZE) {
252 pgbase = 0;
265 * @pgbase: offset of source data
272 _copy_from_pages(char *p, struct page **pages, size_t pgbase, size_t len)
278 pgfrom = pages + (pgbase >> PAGE_CACHE_SHIFT);
279 pgbase &= ~PAGE_CACHE_MASK;
282 copy = PAGE_CACHE_SIZE - pgbase;
287 memcpy(p, vfrom + pgbase, copy);
290 pgbase += copy;
291 if (pgbase == PAGE_CACHE_SIZE) {
292 pgbase = 0;