Searched refs:bytes (Results 1 - 10 of 10) sorted by relevance

/mm/
H A Diov_iter.c7 static size_t copy_to_iter_iovec(void *from, size_t bytes, struct iov_iter *i) argument
13 if (unlikely(bytes > i->count))
14 bytes = i->count;
16 if (unlikely(!bytes))
19 wanted = bytes;
23 copy = min(bytes, iov->iov_len - skip);
29 bytes -= copy;
30 while (unlikely(!left && bytes)) {
33 copy = min(bytes, iov->iov_len);
38 bytes
52 copy_from_iter_iovec(void *to, size_t bytes, struct iov_iter *i) argument
97 copy_page_to_iter_iovec(struct page *page, size_t offset, size_t bytes, struct iov_iter *i) argument
178 copy_page_from_iter_iovec(struct page *page, size_t offset, size_t bytes, struct iov_iter *i) argument
259 zero_iovec(size_t bytes, struct iov_iter *i) argument
303 __iovec_copy_from_user_inatomic(char *vaddr, const struct iovec *iov, size_t base, size_t bytes) argument
330 copy_from_user_atomic_iovec(struct page *page, struct iov_iter *i, unsigned long offset, size_t bytes) argument
351 advance_iovec(struct iov_iter *i, size_t bytes) argument
396 iov_iter_fault_in_readable(struct iov_iter *i, size_t bytes) argument
558 copy_to_iter_bvec(void *from, size_t bytes, struct iov_iter *i) argument
597 copy_from_iter_bvec(void *to, size_t bytes, struct iov_iter *i) argument
639 copy_page_to_iter_bvec(struct page *page, size_t offset, size_t bytes, struct iov_iter *i) argument
648 copy_page_from_iter_bvec(struct page *page, size_t offset, size_t bytes, struct iov_iter *i) argument
657 zero_bvec(size_t bytes, struct iov_iter *i) argument
694 copy_from_user_bvec(struct page *page, struct iov_iter *i, unsigned long offset, size_t bytes) argument
716 advance_bvec(struct iov_iter *i, size_t bytes) argument
839 copy_page_to_iter(struct page *page, size_t offset, size_t bytes, struct iov_iter *i) argument
849 copy_page_from_iter(struct page *page, size_t offset, size_t bytes, struct iov_iter *i) argument
859 copy_to_iter(void *addr, size_t bytes, struct iov_iter *i) argument
868 copy_from_iter(void *addr, size_t bytes, struct iov_iter *i) argument
877 iov_iter_zero(size_t bytes, struct iov_iter *i) argument
887 iov_iter_copy_from_user_atomic(struct page *page, struct iov_iter *i, unsigned long offset, size_t bytes) argument
[all...]
H A Ddebug-pagealloc.c48 static void check_poison_mem(unsigned char *mem, size_t bytes) argument
54 start = memchr_inv(mem, PAGE_POISON, bytes);
58 for (end = mem + bytes - 1; end > start; end--) {
H A Dprocess_vm_access.c28 * @len: number of bytes to copy
99 size_t bytes; local
110 bytes = pages * PAGE_SIZE - start_offset;
111 if (bytes > len)
112 bytes = len;
115 start_offset, bytes, iter,
117 len -= bytes;
140 * Returns the number of bytes read/written or error code. May
141 * return less bytes than expected if an error occurs during the copying
221 we return the number of bytes copie
[all...]
H A Dfilemap_xip.c82 /* nr is the maximum number of bytes to copy from this page */
116 * The actor routine returns how many bytes were actually used..
331 size_t bytes; local
345 bytes = PAGE_CACHE_SIZE - offset;
346 if (bytes > count)
347 bytes = count;
365 copied = bytes -
366 __copy_from_user_nocache(xip_mem + offset, buf, bytes);
378 if (unlikely(copied != bytes))
H A Dbootmem.c59 unsigned long bytes = DIV_ROUND_UP(pages, 8); local
61 return ALIGN(bytes, sizeof(long));
70 unsigned long bytes = bootmap_bytes(pages); local
72 return PAGE_ALIGN(bytes) >> PAGE_SHIFT;
126 * Returns the number of bytes needed to hold the bitmap for this node.
139 * Returns the number of bytes needed to hold the bitmap.
151 * @size: size of the range in bytes
386 * @size: size of the range in bytes
408 * @size: size of the range in bytes
430 * @size: size of the range in bytes
[all...]
H A Dfilemap.c260 * @start: offset in bytes where the range starts
261 * @end: offset in bytes where the range ends (inclusive)
325 * @start_byte: offset in bytes where the range starts
326 * @end_byte: offset in bytes where the range ends (inclusive)
418 * @lstart: offset in bytes where the range starts
419 * @lend: offset in bytes where the range ends (inclusive)
1539 /* nr is the maximum number of bytes to copy from this page */
2264 * Can adjust writing position or amount of bytes to write.
2473 unsigned long bytes; /* Bytes to write to page */ local
2478 bytes
[all...]
H A Dslab_common.c643 static inline int size_index_elem(size_t bytes) argument
645 return (bytes - 1) / 8;
691 * Largest permitted alignment is 256 bytes due to the way we
979 * @new_size: how many bytes of memory are required.
999 * @new_size: how many bytes of memory are required.
H A Dmemory.c1386 * @size: number of bytes to zap
1412 * @size: number of bytes to zap
1437 * @size: number of bytes to zap
2365 * @holelen: size of prospective hole in bytes. This will be rounded
3579 int bytes, ret, offset; local
3601 bytes = ret;
3604 bytes = len;
3606 if (bytes > PAGE_SIZE-offset)
3607 bytes = PAGE_SIZE-offset;
3612 maddr + offset, buf, bytes);
[all...]
H A Dmemcontrol.c2341 unsigned long bytes = stock->nr_pages * PAGE_SIZE; local
2343 res_counter_uncharge(&old->res, bytes);
2345 res_counter_uncharge(&old->memsw, bytes);
2614 unsigned long bytes = nr_pages * PAGE_SIZE; local
2619 res_counter_uncharge(&memcg->res, bytes);
2621 res_counter_uncharge(&memcg->memsw, bytes);
2631 unsigned long bytes = nr_pages * PAGE_SIZE; local
2636 res_counter_uncharge_until(&memcg->res, memcg->res.parent, bytes);
2639 memcg->memsw.parent, bytes);
H A Dslub.c675 u8 *start, unsigned int value, unsigned int bytes)
680 fault = memchr_inv(start, value, bytes);
684 end = start + bytes;
754 /* Check the pad bytes at the end of a slab page */
2972 * additional word to have some bytes to store Redzone information.
2979 * With that we have determined the number of bytes in actual use
673 check_bytes_and_report(struct kmem_cache *s, struct page *page, u8 *object, char *what, u8 *start, unsigned int value, unsigned int bytes) argument

Completed in 706 milliseconds