Lines Matching +full:byte +full:- +full:len

1 /* SPDX-License-Identifier: GPL-2.0 */
14 #include "highmem-internal.h"
17 * kmap - Map a page for long term usage
40 * kunmap - Unmap the virtual address mapped by kmap()
49 * kmap_to_page - Get the page for a kmap'ed address
57 * kmap_flush_unused - Flush all unused kmap mappings in order to
63 * kmap_local_page - Map a page for temporary usage
99 * kmap_local_folio - Map a page in this folio for temporary usage
101 * @offset: The byte offset within the folio which identifies the page.
136 * kmap_atomic - Atomically map a page for temporary usage - Deprecated!
213 …* alloc_zeroed_user_highpage_movable - Allocate a zeroed HIGHMEM page for a VMA that the caller kn…
282 memset(kaddr + start1, 0, end1 - start1); in zero_user_segments()
285 memset(kaddr + start2, 0, end2 - start2); in zero_user_segments()
340 size_t len) in memcpy_page() argument
345 VM_BUG_ON(dst_off + len > PAGE_SIZE || src_off + len > PAGE_SIZE); in memcpy_page()
346 memcpy(dst + dst_off, src + src_off, len); in memcpy_page()
352 size_t len) in memset_page() argument
356 VM_BUG_ON(offset + len > PAGE_SIZE); in memset_page()
357 memset(addr + offset, val, len); in memset_page()
362 size_t offset, size_t len) in memcpy_from_page() argument
366 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_from_page()
367 memcpy(to, from + offset, len); in memcpy_from_page()
372 const char *from, size_t len) in memcpy_to_page() argument
376 VM_BUG_ON(offset + len > PAGE_SIZE); in memcpy_to_page()
377 memcpy(to + offset, from, len); in memcpy_to_page()
382 static inline void memzero_page(struct page *page, size_t offset, size_t len) in memzero_page() argument
386 VM_BUG_ON(offset + len > PAGE_SIZE); in memzero_page()
387 memset(addr + offset, 0, len); in memzero_page()
393 * folio_zero_segments() - Zero two byte ranges in a folio.
395 * @start1: The first byte to zero.
396 * @xend1: One more than the last byte in the first range.
397 * @start2: The first byte to zero in the second range.
398 * @xend2: One more than the last byte in the second range.
403 zero_user_segments(&folio->page, start1, xend1, start2, xend2); in folio_zero_segments()
407 * folio_zero_segment() - Zero a byte range in a folio.
409 * @start: The first byte to zero.
410 * @xend: One more than the last byte to zero.
415 zero_user_segments(&folio->page, start, xend, 0, 0); in folio_zero_segment()
419 * folio_zero_range() - Zero a byte range in a folio.
421 * @start: The first byte to zero.
427 zero_user_segments(&folio->page, start, start + length, 0, 0); in folio_zero_range()