Home
last modified time | relevance | path

Searched refs:cpages (Results 1 – 10 of 10) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/amd/amdkfd/
Dkfd_migrate.c281 uint64_t npages = migrate->cpages; in svm_migrate_copy_to_vram()
391 unsigned long cpages = 0; in svm_migrate_vma_to_vram() local
426 cpages = migrate.cpages; in svm_migrate_vma_to_vram()
427 if (!cpages) { in svm_migrate_vma_to_vram()
432 if (cpages != npages) in svm_migrate_vma_to_vram()
434 cpages, npages); in svm_migrate_vma_to_vram()
436 pr_debug("0x%lx pages collected\n", cpages); in svm_migrate_vma_to_vram()
444 mpages = cpages - svm_migrate_unsuccessful_pages(&migrate); in svm_migrate_vma_to_vram()
446 mpages, cpages, migrate.npages); in svm_migrate_vma_to_vram()
687 unsigned long cpages = 0; in svm_migrate_vma_to_ram() local
[all …]
/linux-6.12.1/tools/testing/selftests/mm/
Dhmm-tests.c42 uint64_t cpages; member
199 buffer->cpages = cmd.cpages; in hmm_dmirror_cmd()
339 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
449 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
493 ASSERT_EQ(buffer->cpages, 1); in TEST_F()
515 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
592 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
670 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
726 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
830 ASSERT_EQ(buffer->cpages, npages); in TEST_F()
[all …]
/linux-6.12.1/fs/f2fs/
Dcompress.c642 cc->cpages = page_array_alloc(cc->inode, cc->nr_cpages); in f2fs_compress_pages()
643 if (!cc->cpages) { in f2fs_compress_pages()
649 cc->cpages[i] = f2fs_compress_alloc_page(); in f2fs_compress_pages()
657 cc->cbuf = f2fs_vmap(cc->cpages, cc->nr_cpages); in f2fs_compress_pages()
695 f2fs_compress_free_page(cc->cpages[i]); in f2fs_compress_pages()
696 cc->cpages[i] = NULL; in f2fs_compress_pages()
714 if (cc->cpages[i]) in f2fs_compress_pages()
715 f2fs_compress_free_page(cc->cpages[i]); in f2fs_compress_pages()
717 page_array_free(cc->inode, cc->cpages, cc->nr_cpages); in f2fs_compress_pages()
718 cc->cpages = NULL; in f2fs_compress_pages()
[all …]
Ddata.c2293 struct folio *folio = page_folio(dic->cpages[i]); in f2fs_read_multi_pages()
2383 .cpages = NULL, in f2fs_mpage_readpages()
3002 .cpages = NULL, in f2fs_write_cache_pages()
Df2fs.h1485 struct page **cpages; /* pages store compressed data in cluster */ member
1514 struct page **cpages; /* pages store compressed data in cluster */ member
/linux-6.12.1/lib/
Dtest_hmm.c71 unsigned long cpages; member
133 bounce->cpages = 0; in dmirror_bounce_init()
380 bounce->cpages++; in dmirror_do_read()
409 start = cmd->addr + (bounce.cpages << PAGE_SHIFT); in dmirror_read()
421 cmd->cpages = bounce.cpages; in dmirror_read()
446 bounce->cpages++; in dmirror_do_write()
480 start = cmd->addr + (bounce.cpages << PAGE_SHIFT); in dmirror_write()
488 cmd->cpages = bounce.cpages; in dmirror_write()
841 cmd->cpages = bounce.cpages; in dmirror_exclusive()
886 unsigned long cpages = 0; in dmirror_successful_migrated_pages() local
[all …]
Dtest_hmm_uapi.h27 __u64 cpages; member
/linux-6.12.1/mm/
Dmigrate_device.c51 migrate->cpages++; in migrate_vma_collect_hole()
120 migrate->cpages++; in migrate_vma_collect_pmd()
150 migrate->cpages++; in migrate_vma_collect_pmd()
216 migrate->cpages++; in migrate_vma_collect_pmd()
451 migrate->cpages = migrate_device_unmap(migrate->src, migrate->npages, in migrate_vma_unmap()
541 args->cpages = 0; in migrate_vma_setup()
546 if (args->cpages) in migrate_vma_setup()
/linux-6.12.1/include/linux/
Dmigrate.h204 unsigned long cpages; member
/linux-6.12.1/drivers/gpu/drm/nouveau/
Dnouveau_dmem.c189 if (!args.cpages) in nouveau_dmem_migrate_to_ram()
738 if (args.cpages) in nouveau_dmem_migrate_vma()