/Linux-v6.6/lib/ |
D | test_hmm.c | 649 struct page *spage; in dmirror_migrate_alloc_and_copy() local 660 spage = migrate_pfn_to_page(*src); in dmirror_migrate_alloc_and_copy() 661 if (WARN(spage && is_zone_device_page(spage), in dmirror_migrate_alloc_and_copy() 663 page_to_pfn(spage))) in dmirror_migrate_alloc_and_copy() 671 if (spage) in dmirror_migrate_alloc_and_copy() 672 copy_highpage(rpage, spage); in dmirror_migrate_alloc_and_copy() 685 page_to_pfn(spage), page_to_pfn(dpage)); in dmirror_migrate_alloc_and_copy() 688 (!spage && args->vma->vm_flags & VM_WRITE)) in dmirror_migrate_alloc_and_copy() 860 struct page *dpage, *spage; in dmirror_devmem_fault_alloc_and_copy() local 862 spage = migrate_pfn_to_page(*src); in dmirror_devmem_fault_alloc_and_copy() [all …]
|
/Linux-v6.6/drivers/gpu/drm/nouveau/ |
D | nouveau_dmem.c | 141 static int nouveau_dmem_copy_one(struct nouveau_drm *drm, struct page *spage, in nouveau_dmem_copy_one() argument 153 NOUVEAU_APER_VRAM, nouveau_dmem_page_addr(spage))) { in nouveau_dmem_copy_one() 167 struct page *spage, *dpage; in nouveau_dmem_migrate_to_ram() local 192 spage = migrate_pfn_to_page(src); in nouveau_dmem_migrate_to_ram() 193 if (!spage || !(src & MIGRATE_PFN_MIGRATE)) in nouveau_dmem_migrate_to_ram() 202 svmm = spage->zone_device_data; in nouveau_dmem_migrate_to_ram() 205 ret = nouveau_dmem_copy_one(drm, spage, dpage, &dma_addr); in nouveau_dmem_migrate_to_ram() 620 struct page *dpage, *spage; in nouveau_dmem_migrate_copy_one() local 623 spage = migrate_pfn_to_page(src); in nouveau_dmem_migrate_copy_one() 632 if (spage) { in nouveau_dmem_migrate_copy_one() [all …]
|
/Linux-v6.6/drivers/infiniband/hw/hfi1/ |
D | user_exp_rcv.h | 45 const unsigned long spage = addr & PAGE_MASK; in num_user_pages() local 48 return 1 + ((epage - spage) >> PAGE_SHIFT); in num_user_pages()
|
/Linux-v6.6/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_migrate.c | 312 struct page *spage; in svm_migrate_copy_to_vram() local 319 spage = migrate_pfn_to_page(migrate->src[i]); in svm_migrate_copy_to_vram() 320 if (spage && !is_zone_device_page(spage)) { in svm_migrate_copy_to_vram() 321 src[i] = dma_map_page(dev, spage, 0, PAGE_SIZE, in svm_migrate_copy_to_vram() 347 src[i] >> PAGE_SHIFT, page_to_pfn(spage)); in svm_migrate_copy_to_vram() 587 struct page *spage; in svm_migrate_copy_to_ram() local 589 spage = migrate_pfn_to_page(migrate->src[i]); in svm_migrate_copy_to_ram() 590 if (!spage || !is_zone_device_page(spage)) { in svm_migrate_copy_to_ram() 604 src[i] = svm_migrate_addr(adev, spage); in svm_migrate_copy_to_ram()
|
/Linux-v6.6/arch/powerpc/kvm/ |
D | book3s_hv_uvmem.c | 520 struct page *dpage, *spage; in __kvmppc_svm_page_out() local 543 spage = migrate_pfn_to_page(*mig.src); in __kvmppc_svm_page_out() 544 if (!spage || !(*mig.src & MIGRATE_PFN_MIGRATE)) in __kvmppc_svm_page_out() 547 if (!is_zone_device_page(spage)) in __kvmppc_svm_page_out() 557 pvt = spage->zone_device_data; in __kvmppc_svm_page_out() 748 struct page *spage; in kvmppc_svm_page_in() local 778 spage = migrate_pfn_to_page(*mig.src); in kvmppc_svm_page_in() 779 if (spage) { in kvmppc_svm_page_in()
|
/Linux-v6.6/arch/s390/kvm/ |
D | pci.c | 341 struct page *vpage = NULL, *spage = NULL; in kvm_s390_pci_aif_disable() local 370 spage = phys_to_page(gaite->aisb); in kvm_s390_pci_aif_disable() 392 if (spage) { in kvm_s390_pci_aif_disable() 393 unpin_user_page(spage); in kvm_s390_pci_aif_disable()
|
/Linux-v6.6/drivers/tty/ |
D | moxa.c | 2171 u16 head, tail, tx_mask, spage, epage; in MoxaPortWriteData() local 2177 spage = readw(ofsAddr + Page_txb); in MoxaPortWriteData() 2186 if (spage == epage) { in MoxaPortWriteData() 2188 writew(spage, baseAddr + Control_reg); in MoxaPortWriteData() 2202 pageno = spage + (tail >> 13); in MoxaPortWriteData() 2213 pageno = spage; in MoxaPortWriteData() 2230 u16 tail, rx_mask, spage, epage; in MoxaPortReadData() local 2238 spage = readw(ofsAddr + Page_rxb); in MoxaPortReadData() 2246 if (spage == epage) { in MoxaPortReadData() 2248 writew(spage, baseAddr + Control_reg); in MoxaPortReadData() [all …]
|
/Linux-v6.6/fs/nilfs2/ |
D | page.c | 103 struct page *spage = sbh->b_page, *dpage = dbh->b_page; in nilfs_copy_buffer() local 106 kaddr0 = kmap_atomic(spage); in nilfs_copy_buffer()
|
/Linux-v6.6/drivers/infiniband/hw/qib/ |
D | qib_user_sdma.c | 607 const unsigned long spage = addr & PAGE_MASK; in qib_user_sdma_num_pages() local 610 return 1 + ((epage - spage) >> PAGE_SHIFT); in qib_user_sdma_num_pages()
|
/Linux-v6.6/drivers/crypto/ |
D | hifn_795x.c | 1326 struct page *spage, *dpage; in hifn_setup_dma() local 1332 spage = sg_page(src); in hifn_setup_dma() 1336 hifn_setup_src_desc(dev, spage, soff, len, n - len == 0); in hifn_setup_dma()
|
/Linux-v6.6/net/ceph/ |
D | messenger_v2.c | 1109 struct page *spage = con->v2.in_enc_pages[idx]; in process_v2_sparse_read() local 1113 memcpy_from_page(buf, spage, soff, len); in process_v2_sparse_read() 1121 spage, soff, len); in process_v2_sparse_read()
|
/Linux-v6.6/drivers/hwmon/pmbus/ |
D | pmbus_core.c | 2784 u8 spage = pb_index_to_page(index); in pmbus_notify() local 2787 if (reg == sreg && page == spage && (smask & flags)) { in pmbus_notify()
|
/Linux-v6.6/drivers/scsi/ |
D | st.c | 4071 struct page *spage = st_bp->reserved_pages[src_seg]; in move_buffer_data() local 4075 page_address(spage) + src_offset, count); in move_buffer_data()
|