| /OK3568_Linux_fs/kernel/drivers/gpu/drm/ttm/ |
| H A 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 …]
|
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/fs/f2fs/ |
| H A D | compress.c | 636 cc->cpages = page_array_alloc(cc->inode, cc->nr_cpages); in f2fs_compress_pages() 637 if (!cc->cpages) { in f2fs_compress_pages() 643 cc->cpages[i] = f2fs_compress_alloc_page(); in f2fs_compress_pages() 644 if (!cc->cpages[i]) { in f2fs_compress_pages() 656 cc->cbuf = f2fs_vmap(cc->cpages, cc->nr_cpages); in f2fs_compress_pages() 702 new_cpages[i] = cc->cpages[i]; in f2fs_compress_pages() 705 f2fs_compress_free_page(cc->cpages[i]); in f2fs_compress_pages() 706 cc->cpages[i] = NULL; in f2fs_compress_pages() 712 page_array_free(cc->inode, cc->cpages, cc->nr_cpages); in f2fs_compress_pages() 713 cc->cpages = new_cpages; in f2fs_compress_pages() [all …]
|
| H A D | data.c | 2256 struct page *page = dic->cpages[i]; in f2fs_read_multi_pages() 2346 .cpages = NULL, in f2fs_mpage_readpages() 2947 .cpages = NULL, in f2fs_write_cache_pages()
|
| H A D | f2fs.h | 1495 struct page **cpages; /* pages store compressed data in cluster */ member 1523 struct page **cpages; /* pages store compressed data in cluster */ member
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/vm/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A 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 …]
|
| H A D | test_hmm_uapi.h | 27 __u64 cpages; member
|
| /OK3568_Linux_fs/kernel/mm/ |
| H A D | migrate.c | 2271 migrate->cpages++; in migrate_vma_collect_hole() 2361 migrate->cpages++; in migrate_vma_collect_pmd() 2392 migrate->cpages++; in migrate_vma_collect_pmd() 2416 migrate->cpages++; in migrate_vma_collect_pmd() 2578 for (i = 0; (i < npages) && migrate->cpages; i++) { in migrate_vma_prepare() 2596 migrate->cpages--; in migrate_vma_prepare() 2615 migrate->cpages--; in migrate_vma_prepare() 2620 migrate->cpages--; in migrate_vma_prepare() 2633 migrate->cpages--; in migrate_vma_prepare() 2643 migrate->cpages--; in migrate_vma_prepare() [all …]
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | migrate.h | 173 unsigned long cpages; member
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/ |
| H A D | nouveau_dmem.c | 205 if (!args.cpages) in nouveau_dmem_migrate_to_ram() 691 if (args.cpages) in nouveau_dmem_migrate_vma()
|