Searched refs:new_pages (Results 1 – 9 of 9) sorted by relevance
/Linux-v6.6/kernel/module/ |
D | decompress.c | 19 struct page **new_pages; in module_extend_max_pages() local 21 new_pages = kvmalloc_array(info->max_pages + extent, in module_extend_max_pages() 23 if (!new_pages) in module_extend_max_pages() 26 memcpy(new_pages, info->pages, info->max_pages * sizeof(info->pages)); in module_extend_max_pages() 28 info->pages = new_pages; in module_extend_max_pages()
|
/Linux-v6.6/drivers/block/drbd/ |
D | drbd_bitmap.c | 381 struct page **new_pages, *page; in bm_realloc_pages() local 397 new_pages = kzalloc(bytes, GFP_NOIO | __GFP_NOWARN); in bm_realloc_pages() 398 if (!new_pages) { in bm_realloc_pages() 399 new_pages = __vmalloc(bytes, GFP_NOIO | __GFP_ZERO); in bm_realloc_pages() 400 if (!new_pages) in bm_realloc_pages() 406 new_pages[i] = old_pages[i]; in bm_realloc_pages() 410 bm_free_pages(new_pages + have, i - have); in bm_realloc_pages() 411 bm_vk_free(new_pages); in bm_realloc_pages() 417 new_pages[i] = page; in bm_realloc_pages() 421 new_pages[i] = old_pages[i]; in bm_realloc_pages() [all …]
|
/Linux-v6.6/arch/s390/kvm/ |
D | pci.c | 207 unsigned long page_limit, cur_pages, new_pages; in account_mem() local 213 new_pages = cur_pages + nr_pages; in account_mem() 214 if (new_pages > page_limit) in account_mem() 217 new_pages) != cur_pages); in account_mem()
|
/Linux-v6.6/drivers/base/firmware_loader/ |
D | main.c | 263 struct page **new_pages; in fw_grow_paged_buf() local 265 new_pages = kvmalloc_array(new_array_size, sizeof(void *), in fw_grow_paged_buf() 267 if (!new_pages) in fw_grow_paged_buf() 269 memcpy(new_pages, fw_priv->pages, in fw_grow_paged_buf() 271 memset(&new_pages[fw_priv->page_array_size], 0, sizeof(void *) * in fw_grow_paged_buf() 274 fw_priv->pages = new_pages; in fw_grow_paged_buf()
|
/Linux-v6.6/drivers/virtio/ |
D | virtio_mem.c | 398 int new_pages = PFN_UP(new_bytes); in virtio_mem_bbm_bb_states_prepare_next_bb() local 401 if (vm->bbm.bb_states && old_pages == new_pages) in virtio_mem_bbm_bb_states_prepare_next_bb() 404 new_array = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_bbm_bb_states_prepare_next_bb() 464 int new_pages = PFN_UP(vm->sbm.next_mb_id - vm->sbm.first_mb_id + 1); in virtio_mem_sbm_mb_states_prepare_next_mb() local 467 if (vm->sbm.mb_states && old_pages == new_pages) in virtio_mem_sbm_mb_states_prepare_next_mb() 470 new_array = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_sbm_mb_states_prepare_next_mb() 587 int new_pages = PFN_UP(BITS_TO_LONGS(new_nb_bits) * sizeof(long)); in virtio_mem_sbm_sb_states_prepare_next_mb() local 590 if (vm->sbm.sb_states && old_pages == new_pages) in virtio_mem_sbm_sb_states_prepare_next_mb() 593 new_bitmap = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_sbm_sb_states_prepare_next_mb()
|
/Linux-v6.6/io_uring/ |
D | rsrc.c | 44 unsigned long page_limit, cur_pages, new_pages; in __io_account_mem() local 54 new_pages = cur_pages + nr_pages; in __io_account_mem() 55 if (new_pages > page_limit) in __io_account_mem() 58 &cur_pages, new_pages)); in __io_account_mem()
|
/Linux-v6.6/kernel/trace/ |
D | ring_buffer.c | 535 struct list_head new_pages; /* new pages to add */ member 1748 INIT_LIST_HEAD(&cpu_buffer->new_pages); in rb_allocate_cpu_buffer() 2035 struct list_head *pages = &cpu_buffer->new_pages; in rb_insert_pages() 2104 list_for_each_entry_safe(bpage, tmp, &cpu_buffer->new_pages, in rb_insert_pages() 2202 INIT_LIST_HEAD(&cpu_buffer->new_pages); in ring_buffer_resize() 2204 &cpu_buffer->new_pages)) { in ring_buffer_resize() 2273 INIT_LIST_HEAD(&cpu_buffer->new_pages); in ring_buffer_resize() 2276 &cpu_buffer->new_pages)) { in ring_buffer_resize() 2339 if (list_empty(&cpu_buffer->new_pages)) in ring_buffer_resize() 2342 list_for_each_entry_safe(bpage, tmp, &cpu_buffer->new_pages, in ring_buffer_resize() [all …]
|
/Linux-v6.6/arch/s390/kernel/ |
D | debug.c | 1310 int rc, new_pages; in debug_input_pages_fn() local 1324 new_pages = debug_get_uint(str); in debug_input_pages_fn() 1325 if (new_pages < 0) { in debug_input_pages_fn() 1329 rc = debug_set_size(id, id->nr_areas, new_pages); in debug_input_pages_fn()
|
/Linux-v6.6/drivers/iommu/iommufd/ |
D | pages.c | 808 unsigned long new_pages; in incr_user_locked_vm() local 814 new_pages = cur_pages + npages; in incr_user_locked_vm() 815 if (new_pages > lock_limit) in incr_user_locked_vm() 818 new_pages) != cur_pages); in incr_user_locked_vm()
|