Searched refs:new_pages (Results 1 – 3 of 3) sorted by relevance
/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 …]
|
/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()
|
/drivers/virtio/ |
D | virtio_mem.c | 396 int new_pages = PFN_UP(new_bytes); in virtio_mem_bbm_bb_states_prepare_next_bb() local 399 if (vm->bbm.bb_states && old_pages == new_pages) in virtio_mem_bbm_bb_states_prepare_next_bb() 402 new_array = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_bbm_bb_states_prepare_next_bb() 462 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 465 if (vm->sbm.mb_states && old_pages == new_pages) in virtio_mem_sbm_mb_states_prepare_next_mb() 468 new_array = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_sbm_mb_states_prepare_next_mb() 585 int new_pages = PFN_UP(BITS_TO_LONGS(new_nb_bits) * sizeof(long)); in virtio_mem_sbm_sb_states_prepare_next_mb() local 588 if (vm->sbm.sb_states && old_pages == new_pages) in virtio_mem_sbm_sb_states_prepare_next_mb() 591 new_bitmap = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_sbm_sb_states_prepare_next_mb()
|