Home
last modified time | relevance | path

Searched refs:nr_pages (Results 1 – 7 of 7) sorted by relevance

/kernel/power/
Dswap.c321 int nr_pages; in save_image() local
332 nr_pages = 0; in save_image()
342 if (!(nr_pages % m)) in save_image()
343 printk("\b\b\b\b%3d%%", nr_pages / m); in save_image()
344 nr_pages++; in save_image()
364 static int enough_swap(unsigned int nr_pages) in enough_swap() argument
369 return free_swap > nr_pages + PAGES_FOR_IO; in enough_swap()
508 unsigned nr_pages; in load_image() local
515 nr_pages = 0; in load_image()
529 if (!(nr_pages % m)) in load_image()
[all …]
Dsnapshot.c1091 static int enough_free_mem(unsigned int nr_pages, unsigned int nr_highmem) in enough_free_mem() argument
1102 nr_pages += count_pages_for_highmem(nr_highmem); in enough_free_mem()
1104 nr_pages, PAGES_FOR_IO, meta, free); in enough_free_mem()
1106 return free > nr_pages + PAGES_FOR_IO + meta; in enough_free_mem()
1165 unsigned int nr_pages, unsigned int nr_highmem) in swsusp_alloc() argument
1182 nr_pages += alloc_highmem_image_pages(copy_bm, nr_highmem); in swsusp_alloc()
1184 while (nr_pages-- > 0) { in swsusp_alloc()
1214 unsigned int nr_pages, nr_highmem; in swsusp_save() local
1219 nr_pages = count_data_pages(); in swsusp_save()
1221 printk(KERN_INFO "PM: Need to copy %u pages\n", nr_pages + nr_highmem); in swsusp_save()
[all …]
Dswsusp.c177 unsigned nr_pages, char *msg) in swsusp_show_speed() argument
189 k = nr_pages * (PAGE_SIZE / 1024); in swsusp_show_speed()
/kernel/
Drelay.c1225 unsigned int pidx, poff, total_len, subbuf_pages, nr_pages, ret; in subbuf_splice_actor() local
1238 .nr_pages = 0, in subbuf_splice_actor()
1257 nr_pages = min_t(unsigned int, subbuf_pages, PIPE_BUFFERS); in subbuf_splice_actor()
1259 for (total_len = 0; spd.nr_pages < nr_pages; spd.nr_pages++) { in subbuf_splice_actor()
1269 spd.pages[spd.nr_pages] = rbuf->page_array[pidx]; in subbuf_splice_actor()
1270 spd.partial[spd.nr_pages].offset = poff; in subbuf_splice_actor()
1277 spd.partial[spd.nr_pages].len = this_len; in subbuf_splice_actor()
1278 spd.partial[spd.nr_pages].private = private; in subbuf_splice_actor()
1286 spd.nr_pages++; in subbuf_splice_actor()
1291 if (!spd.nr_pages) in subbuf_splice_actor()
Dcompat.c1013 asmlinkage long compat_sys_move_pages(pid_t pid, unsigned long nr_pages, in compat_sys_move_pages() argument
1022 pages = compat_alloc_user_space(nr_pages * sizeof(void *)); in compat_sys_move_pages()
1023 for (i = 0; i < nr_pages; i++) { in compat_sys_move_pages()
1030 return sys_move_pages(pid, nr_pages, pages, nodes, status, flags); in compat_sys_move_pages()
Dresource.c266 walk_memory_resource(unsigned long start_pfn, unsigned long nr_pages, void *arg, in walk_memory_resource() argument
274 res.end = ((u64)(start_pfn + nr_pages) << PAGE_SHIFT) - 1; in walk_memory_resource()
/kernel/trace/
Dring_buffer.c332 unsigned nr_pages) in rb_allocate_pages() argument
340 for (i = 0; i < nr_pages; i++) { in rb_allocate_pages()
534 rb_remove_pages(struct ring_buffer_per_cpu *cpu_buffer, unsigned nr_pages) in rb_remove_pages() argument
543 for (i = 0; i < nr_pages; i++) { in rb_remove_pages()
564 struct list_head *pages, unsigned nr_pages) in rb_insert_pages() argument
573 for (i = 0; i < nr_pages; i++) { in rb_insert_pages()
605 unsigned nr_pages, rm_pages, new_pages; in ring_buffer_resize() local
631 nr_pages = DIV_ROUND_UP(size, BUF_PAGE_SIZE); in ring_buffer_resize()
636 if (RB_WARN_ON(buffer, nr_pages >= buffer->pages)) { in ring_buffer_resize()
641 rm_pages = buffer->pages - nr_pages; in ring_buffer_resize()
[all …]