Lines Matching refs:pgbase
231 * @pgbase: page vector address of destination
239 _copy_to_pages(struct page **pages, size_t pgbase, const char *p, size_t len)
245 pgto = pages + (pgbase >> PAGE_CACHE_SHIFT);
246 pgbase &= ~PAGE_CACHE_MASK;
249 copy = PAGE_CACHE_SIZE - pgbase;
254 memcpy(vto + pgbase, p, copy);
261 pgbase += copy;
262 if (pgbase == PAGE_CACHE_SIZE) {
264 pgbase = 0;
276 * @pgbase: offset of source data
283 _copy_from_pages(char *p, struct page **pages, size_t pgbase, size_t len)
289 pgfrom = pages + (pgbase >> PAGE_CACHE_SHIFT);
290 pgbase &= ~PAGE_CACHE_MASK;
293 copy = PAGE_CACHE_SIZE - pgbase;
298 memcpy(p, vfrom + pgbase, copy);
301 pgbase += copy;
302 if (pgbase == PAGE_CACHE_SIZE) {
303 pgbase = 0;