Lines Matching refs:from

22  * Can only be invoked from preemptible task context because on 32bit
68 * Can be invoked from any context, including interrupts.
129 * Context: Can be invoked from any context.
149 * page that might be allocated from high memory (see __GFP_HIGHMEM), for
168 * If you need to map two pages because you want to copy from one page to
217 * VMA at this virtual address. It may be allocated from highmem or
303 static inline void copy_user_highpage(struct page *to, struct page *from,
308 vfrom = kmap_local_page(from);
320 static inline void copy_highpage(struct page *to, struct page *from)
324 vfrom = kmap_local_page(from);
327 kmsan_copy_page_meta(to, from);
338 * page with #MC in source page (@from) handled, and return the number
341 static inline int copy_mc_user_highpage(struct page *to, struct page *from,
347 vfrom = kmap_local_page(from);
358 static inline int copy_mc_highpage(struct page *to, struct page *from)
363 vfrom = kmap_local_page(from);
367 kmsan_copy_page_meta(to, from);
374 static inline int copy_mc_user_highpage(struct page *to, struct page *from,
377 copy_user_highpage(to, from, vaddr, vma);
381 static inline int copy_mc_highpage(struct page *to, struct page *from)
383 copy_highpage(to, from);
414 char *from = kmap_local_page(page);
417 memcpy(to, from + offset, len);
418 kunmap_local(from);
422 const char *from, size_t len)
427 memcpy(to + offset, from, len);
443 * memcpy_from_folio - Copy a range of bytes from a folio.
445 * @folio: The folio to read from.
455 const char *from = kmap_local_folio(folio, offset);
461 memcpy(to, from, chunk);
462 kunmap_local(from);
474 * @from: The memory to copy from.
478 const char *from, size_t len)
489 memcpy(to, from, chunk);
492 from += chunk;
542 * @from: The data to copy.
546 * When they want to copy data from the inode into the page cache, this
551 const char *from, size_t len)
561 memcpy(to, from, max);
564 from += max;
571 memcpy(to, from, len);
577 * memcpy_from_file_folio - Copy some bytes from a file folio.
579 * @folio: The folio to copy from.
583 * Copy up to @len bytes from this folio. This may be limited by PAGE_SIZE
584 * if the folio comes from HIGHMEM, and by the size of the folio.
586 * Return: The number of bytes copied from the folio.
592 char *from = kmap_local_folio(folio, offset);
600 memcpy(to, from, len);
601 kunmap_local(from);