/kernel/linux/linux-5.10/drivers/gpu/drm/ttm/ |
D | ttm_page_alloc.c | 443 enum ttm_caching_state cstate, unsigned cpages) in ttm_set_pages_caching() argument 449 r = ttm_set_pages_array_uc(pages, cpages); in ttm_set_pages_caching() 451 pr_err("Failed to set %d pages to uc!\n", cpages); in ttm_set_pages_caching() 454 r = ttm_set_pages_array_wc(pages, cpages); in ttm_set_pages_caching() 456 pr_err("Failed to set %d pages to wc!\n", cpages); in ttm_set_pages_caching() 471 struct page **failed_pages, unsigned cpages) in ttm_handle_caching_state_failure() argument 475 for (i = 0; i < cpages; ++i) { in ttm_handle_caching_state_failure() 494 unsigned i, j, cpages; in ttm_alloc_new_pages() local 507 for (i = 0, cpages = 0; i < count; ++i) { in ttm_alloc_new_pages() 515 if (cpages) { in ttm_alloc_new_pages() [all …]
|
D | ttm_page_alloc_dma.c | 266 struct page **pages, unsigned cpages) in ttm_set_pages_caching() argument 271 r = ttm_set_pages_array_uc(pages, cpages); in ttm_set_pages_caching() 274 pool->dev_name, cpages); in ttm_set_pages_caching() 277 r = ttm_set_pages_array_wc(pages, cpages); in ttm_set_pages_caching() 280 pool->dev_name, cpages); in ttm_set_pages_caching() 668 unsigned cpages) in ttm_dma_handle_caching_state_failure() argument 684 if (++i < cpages) in ttm_dma_handle_caching_state_failure() 706 unsigned i, j, npages, cpages; in ttm_dma_pool_alloc_new_pages() local 724 for (i = 0, cpages = 0; i < count; ++i) { in ttm_dma_pool_alloc_new_pages() 732 if (cpages) { in ttm_dma_pool_alloc_new_pages() [all …]
|
/kernel/linux/linux-5.10/fs/f2fs/ |
D | compress.c | 606 cc->cpages = page_array_alloc(cc->inode, cc->nr_cpages); in f2fs_compress_pages() 607 if (!cc->cpages) { in f2fs_compress_pages() 613 cc->cpages[i] = f2fs_compress_alloc_page(); in f2fs_compress_pages() 614 if (!cc->cpages[i]) { in f2fs_compress_pages() 626 cc->cbuf = f2fs_vmap(cc->cpages, cc->nr_cpages); in f2fs_compress_pages() 667 new_cpages[i] = cc->cpages[i]; in f2fs_compress_pages() 670 f2fs_compress_free_page(cc->cpages[i]); in f2fs_compress_pages() 671 cc->cpages[i] = NULL; in f2fs_compress_pages() 677 page_array_free(cc->inode, cc->cpages, cc->nr_cpages); in f2fs_compress_pages() 678 cc->cpages = new_cpages; in f2fs_compress_pages() [all …]
|
D | data.c | 2292 struct page *page = dic->cpages[i]; in f2fs_read_multi_pages() 2393 .cpages = NULL, in f2fs_mpage_readpages() 2993 .cpages = NULL, in f2fs_write_cache_pages()
|
D | f2fs.h | 1325 struct page **cpages; /* pages store compressed data in cluster */ member 1353 struct page **cpages; /* pages store compressed data in cluster */ member
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
D | hmm-tests.c | 41 uint64_t cpages; member 141 buffer->cpages = cmd.cpages; in hmm_dmirror_cmd() 267 ASSERT_EQ(buffer->cpages, npages); in TEST_F() 377 ASSERT_EQ(buffer->cpages, npages); in TEST_F() 421 ASSERT_EQ(buffer->cpages, 1); in TEST_F() 443 ASSERT_EQ(buffer->cpages, npages); in TEST_F() 520 ASSERT_EQ(buffer->cpages, npages); in TEST_F() 598 ASSERT_EQ(buffer->cpages, npages); in TEST_F() 654 ASSERT_EQ(buffer->cpages, npages); in TEST_F() 712 ASSERT_EQ(buffer->cpages, npages); in TEST_F() [all …]
|
/kernel/linux/linux-5.10/lib/ |
D | test_hmm.c | 46 unsigned long cpages; member 105 bounce->cpages = 0; in dmirror_bounce_init() 336 bounce->cpages++; in dmirror_do_read() 365 start = cmd->addr + (bounce.cpages << PAGE_SHIFT); in dmirror_read() 377 cmd->cpages = bounce.cpages; in dmirror_read() 405 bounce->cpages++; in dmirror_do_write() 439 start = cmd->addr + (bounce.cpages << PAGE_SHIFT); in dmirror_write() 447 cmd->cpages = bounce.cpages; in dmirror_write() 730 cmd->cpages = bounce.cpages; in dmirror_migrate() 907 cmd->cpages += n; in dmirror_snapshot() [all …]
|
D | test_hmm_uapi.h | 27 __u64 cpages; member
|
/kernel/linux/linux-5.10/mm/ |
D | migrate.c | 2299 migrate->cpages++; in migrate_vma_collect_hole() 2389 migrate->cpages++; in migrate_vma_collect_pmd() 2420 migrate->cpages++; in migrate_vma_collect_pmd() 2444 migrate->cpages++; in migrate_vma_collect_pmd() 2606 for (i = 0; (i < npages) && migrate->cpages; i++) { in migrate_vma_prepare() 2624 migrate->cpages--; in migrate_vma_prepare() 2643 migrate->cpages--; in migrate_vma_prepare() 2648 migrate->cpages--; in migrate_vma_prepare() 2661 migrate->cpages--; in migrate_vma_prepare() 2671 migrate->cpages--; in migrate_vma_prepare() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | migrate.h | 181 unsigned long cpages; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_dmem.c | 205 if (!args.cpages) in nouveau_dmem_migrate_to_ram() 691 if (args.cpages) in nouveau_dmem_migrate_vma()
|