Home
last modified time | relevance | path

Searched refs:new_pages (Results 1 – 4 of 4) sorted by relevance

/drivers/block/drbd/
Ddrbd_bitmap.c381 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/gpu/drm/ttm/
Dttm_page_alloc.c592 struct list_head new_pages; in ttm_page_pool_fill_locked() local
601 INIT_LIST_HEAD(&new_pages); in ttm_page_pool_fill_locked()
602 r = ttm_alloc_new_pages(&new_pages, pool->gfp_flags, ttm_flags, in ttm_page_pool_fill_locked()
607 list_splice(&new_pages, &pool->list); in ttm_page_pool_fill_locked()
613 list_for_each_entry(p, &new_pages, lru) { in ttm_page_pool_fill_locked()
616 list_splice(&new_pages, &pool->list); in ttm_page_pool_fill_locked()
/drivers/base/firmware_loader/
Dmain.c324 struct page **new_pages; in fw_grow_paged_buf() local
326 new_pages = kvmalloc_array(new_array_size, sizeof(void *), in fw_grow_paged_buf()
328 if (!new_pages) in fw_grow_paged_buf()
330 memcpy(new_pages, fw_priv->pages, in fw_grow_paged_buf()
332 memset(&new_pages[fw_priv->page_array_size], 0, sizeof(void *) * in fw_grow_paged_buf()
335 fw_priv->pages = new_pages; in fw_grow_paged_buf()
/drivers/virtio/
Dvirtio_mem.c263 int new_pages = PFN_UP(new_bytes); in virtio_mem_mb_state_prepare_next_mb() local
266 if (vm->mb_state && old_pages == new_pages) in virtio_mem_mb_state_prepare_next_mb()
269 new_mb_state = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_mb_state_prepare_next_mb()
375 int new_pages = PFN_UP(BITS_TO_LONGS(new_nb_bits) * sizeof(long)); in virtio_mem_sb_bitmap_prepare_next_mb() local
378 if (vm->sb_bitmap && old_pages == new_pages) in virtio_mem_sb_bitmap_prepare_next_mb()
381 new_sb_bitmap = vzalloc(new_pages * PAGE_SIZE); in virtio_mem_sb_bitmap_prepare_next_mb()