/kernel/power/ |
D | snapshot.c | 38 static int swsusp_page_is_free(struct page *); 39 static void swsusp_set_page_forbidden(struct page *); 40 static void swsusp_unset_page_forbidden(struct page *); 93 static struct page *alloc_image_page(gfp_t gfp_mask) in alloc_image_page() 95 struct page *page; in alloc_image_page() local 97 page = alloc_page(gfp_mask); in alloc_image_page() 98 if (page) { in alloc_image_page() 99 swsusp_set_page_forbidden(page); in alloc_image_page() 100 swsusp_set_page_free(page); in alloc_image_page() 102 return page; in alloc_image_page() [all …]
|
D | swap.c | 60 static int submit(int rw, pgoff_t page_off, struct page *page, in submit() argument 73 if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE) { in submit() 80 lock_page(page); in submit() 85 wait_on_page_locked(page); in submit() 91 get_page(page); /* These pages are freed later */ in submit() 122 struct page *page; in wait_on_bio_chain() local 125 page = bio->bi_io_vec[0].bv_page; in wait_on_bio_chain() 126 wait_on_page_locked(page); in wait_on_bio_chain() 127 if (!PageUptodate(page) || PageError(page)) in wait_on_bio_chain() 129 put_page(page); in wait_on_bio_chain()
|
D | wakelock.c | 127 static int wakelocks_read_proc(char *page, char **start, off_t off, in wakelocks_read_proc() argument 137 len += snprintf(page + len, count - len, in wakelocks_read_proc() 141 len += print_lock_stat(page + len, count - len, lock); in wakelocks_read_proc() 145 len += print_lock_stat(page + len, count - len, lock); in wakelocks_read_proc() 150 memcpy(page + len - strlen(TOO_MAY_LOCKS_WARNING), in wakelocks_read_proc()
|
D | Kconfig | 13 page on the WWW at <http://www.linux-on-laptops.com/> or
|
/kernel/ |
D | kexec.c | 113 static struct page *kimage_alloc_page(struct kimage *image, 355 static struct page *kimage_alloc_pages(gfp_t gfp_mask, unsigned int order) in kimage_alloc_pages() 357 struct page *pages; in kimage_alloc_pages() 372 static void kimage_free_pages(struct page *page) in kimage_free_pages() argument 376 order = page_private(page); in kimage_free_pages() 379 ClearPageReserved(page + i); in kimage_free_pages() 380 __free_pages(page, order); in kimage_free_pages() 388 struct page *page; in kimage_free_page_list() local 390 page = list_entry(pos, struct page, lru); in kimage_free_page_list() 391 list_del(&page->lru); in kimage_free_page_list() [all …]
|
D | profile.c | 366 struct page *page; in profile_cpu_callback() local 374 page = alloc_pages_node(node, in profile_cpu_callback() 377 if (!page) in profile_cpu_callback() 379 per_cpu(cpu_profile_hits, cpu)[1] = page_address(page); in profile_cpu_callback() 382 page = alloc_pages_node(node, in profile_cpu_callback() 385 if (!page) in profile_cpu_callback() 387 per_cpu(cpu_profile_hits, cpu)[0] = page_address(page); in profile_cpu_callback() 391 page = virt_to_page(per_cpu(cpu_profile_hits, cpu)[1]); in profile_cpu_callback() 393 __free_page(page); in profile_cpu_callback() 407 page = virt_to_page(per_cpu(cpu_profile_hits, cpu)[0]); in profile_cpu_callback() [all …]
|
D | pid.c | 63 find_next_zero_bit((map)->page, BITS_PER_PAGE, off) 121 clear_bit(offset, map->page); in free_pidmap() 137 if (unlikely(!map->page)) { in alloc_pidmap() 138 void *page = kzalloc(PAGE_SIZE, GFP_KERNEL); in alloc_pidmap() local 144 if (map->page) in alloc_pidmap() 145 kfree(page); in alloc_pidmap() 147 map->page = page; in alloc_pidmap() 149 if (unlikely(!map->page)) in alloc_pidmap() 154 if (!test_and_set_bit(offset, map->page)) { in alloc_pidmap() 194 if (unlikely(!map->page)) in next_pidmap() [all …]
|
D | rcutorture.c | 265 int (*stats)(char *page); 514 static int srcu_torture_stats(char *page) in srcu_torture_stats() argument 520 cnt += sprintf(&page[cnt], "%s%s per-CPU(idx=%d):", in srcu_torture_stats() 523 cnt += sprintf(&page[cnt], " %d(%d,%d)", cpu, in srcu_torture_stats() 527 cnt += sprintf(&page[cnt], "\n"); in srcu_torture_stats() 791 rcu_torture_printk(char *page) in rcu_torture_printk() argument 809 cnt += sprintf(&page[cnt], "%s%s ", torture_type, TORTURE_FLAG); in rcu_torture_printk() 810 cnt += sprintf(&page[cnt], in rcu_torture_printk() 822 cnt += sprintf(&page[cnt], " !!!"); in rcu_torture_printk() 823 cnt += sprintf(&page[cnt], "\n%s%s ", torture_type, TORTURE_FLAG); in rcu_torture_printk() [all …]
|
D | pid_namespace.c | 79 ns->pidmap[0].page = kzalloc(PAGE_SIZE, GFP_KERNEL); in create_pid_namespace() 80 if (!ns->pidmap[0].page) in create_pid_namespace() 90 set_bit(0, ns->pidmap[0].page); in create_pid_namespace() 99 kfree(ns->pidmap[0].page); in create_pid_namespace() 111 kfree(ns->pidmap[i].page); in destroy_pid_namespace()
|
D | relay.c | 44 struct page *page; in relay_buf_fault() local 51 page = vmalloc_to_page(buf->start + (pgoff << PAGE_SHIFT)); in relay_buf_fault() 52 if (!page) in relay_buf_fault() 54 get_page(page); in relay_buf_fault() 55 vmf->page = page; in relay_buf_fault() 71 static struct page **relay_alloc_page_array(unsigned int n_pages) in relay_alloc_page_array() 73 struct page **array; in relay_alloc_page_array() 74 size_t pa_size = n_pages * sizeof(struct page *); in relay_alloc_page_array() 89 static void relay_free_page_array(struct page **array) in relay_free_page_array() 1197 rbuf = (struct rchan_buf *)page_private(buf->page); in relay_pipe_buf_release() [all …]
|
D | futex.c | 211 struct page *page; in get_futex_key() local 271 err = get_user_pages_fast(address, 1, 0, &page); in get_futex_key() 275 lock_page(page); in get_futex_key() 276 if (!page->mapping) { in get_futex_key() 277 unlock_page(page); in get_futex_key() 278 put_page(page); in get_futex_key() 289 if (PageAnon(page)) { in get_futex_key() 295 key->shared.inode = page->mapping->host; in get_futex_key() 296 key->shared.pgoff = page->index; in get_futex_key() 301 unlock_page(page); in get_futex_key() [all …]
|
D | dma-coherent.c | 169 int page = (vaddr - mem->virt_base) >> PAGE_SHIFT; in dma_release_from_coherent() local 171 bitmap_release_region(mem->bitmap, page, order); in dma_release_from_coherent()
|
D | cpuset.c | 1543 static int cpuset_sprintf_cpulist(char *page, struct cpuset *cs) in cpuset_sprintf_cpulist() argument 1548 ret = cpulist_scnprintf(page, PAGE_SIZE, cs->cpus_allowed); in cpuset_sprintf_cpulist() 1554 static int cpuset_sprintf_memlist(char *page, struct cpuset *cs) in cpuset_sprintf_memlist() argument 1562 return nodelist_scnprintf(page, PAGE_SIZE, mask); in cpuset_sprintf_memlist() 1573 char *page; in cpuset_common_file_read() local 1577 if (!(page = (char *)__get_free_page(GFP_TEMPORARY))) in cpuset_common_file_read() 1580 s = page; in cpuset_common_file_read() 1595 retval = simple_read_from_buffer(buf, nbytes, ppos, page, s - page); in cpuset_common_file_read() 1597 free_page((unsigned long)page); in cpuset_common_file_read()
|
D | sched.c | 8109 char *page) in sched_mc_power_savings_show() argument 8111 return sprintf(page, "%u\n", sched_mc_power_savings); in sched_mc_power_savings_show() 8125 char *page) in sched_smt_power_savings_show() argument 8127 return sprintf(page, "%u\n", sched_smt_power_savings); in sched_smt_power_savings_show()
|
/kernel/trace/ |
D | ring_buffer.c | 220 struct buffer_data_page *page; /* Actual data page */ member 234 if (bpage->page) in free_buffer_page() 235 free_page((unsigned long)bpage->page); in free_buffer_page() 350 bpage->page = (void *)addr; in rb_allocate_pages() 351 rb_init_page(bpage->page); in rb_allocate_pages() 396 bpage->page = (void *)addr; in rb_allocate_cpu_buffer() 397 rb_init_page(bpage->page); in rb_allocate_cpu_buffer() 457 if (sizeof(struct buffer_page) > sizeof(struct page)) in ring_buffer_alloc() 676 bpage->page = (void *)addr; in ring_buffer_resize() 677 rb_init_page(bpage->page); in ring_buffer_resize() [all …]
|
D | Kconfig | 314 implementation and works via page faults. Tracing is disabled by
|
/kernel/irq/ |
D | proc.c | 151 static int irq_spurious_read(char *page, char **start, off_t off, in irq_spurious_read() argument 155 return sprintf(page, "count %u\n" in irq_spurious_read()
|