/linux/drivers/xen/ |
A D | xlate_mmu.c | 193 xen_pfn_t *pfns; member 201 info->pfns[info->idx++] = gfn; in setup_balloon_gfn() 218 xen_pfn_t *pfns; in xen_xlate_map_ballooned_pages() local 230 pfns = kcalloc(nr_grant_frames, sizeof(pfns[0]), GFP_KERNEL); in xen_xlate_map_ballooned_pages() 231 if (!pfns) { in xen_xlate_map_ballooned_pages() 240 kfree(pfns); in xen_xlate_map_ballooned_pages() 244 data.pfns = pfns; in xen_xlate_map_ballooned_pages() 254 kfree(pfns); in xen_xlate_map_ballooned_pages() 259 *gfns = pfns; in xen_xlate_map_ballooned_pages()
|
A D | privcmd.c | 727 xen_pfn_t *pfns = NULL; in privcmd_ioctl_mmap_resource() local 762 pfns = kcalloc(kdata.num, sizeof(*pfns), GFP_KERNEL); in privcmd_ioctl_mmap_resource() 763 if (!pfns) { in privcmd_ioctl_mmap_resource() 783 pfns[i] = pfn + (i % XEN_PFN_PER_PAGE); in privcmd_ioctl_mmap_resource() 790 set_xen_guest_handle(xdata.frame_list, pfns); in privcmd_ioctl_mmap_resource() 806 int num, *errs = (int *)pfns; in privcmd_ioctl_mmap_resource() 808 BUILD_BUG_ON(sizeof(*errs) > sizeof(*pfns)); in privcmd_ioctl_mmap_resource() 811 pfns, kdata.num, errs, in privcmd_ioctl_mmap_resource() 830 kfree(pfns); in privcmd_ioctl_mmap_resource()
|
/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_mn.c | 168 unsigned long *pfns; in amdgpu_hmm_range_get_pages() local 175 pfns = kvmalloc_array(npages, sizeof(*pfns), GFP_KERNEL); in amdgpu_hmm_range_get_pages() 176 if (unlikely(!pfns)) { in amdgpu_hmm_range_get_pages() 185 hmm_range->hmm_pfns = pfns; in amdgpu_hmm_range_get_pages() 220 pages[i] = hmm_pfn_to_page(pfns[i]); in amdgpu_hmm_range_get_pages() 227 kvfree(pfns); in amdgpu_hmm_range_get_pages()
|
/linux/drivers/gpu/drm/i915/gem/ |
A D | i915_gem_pages.c | 319 unsigned long stack[32], *pfns = stack, i; in i915_gem_object_map_pfn() local 328 pfns = kvmalloc_array(n_pfn, sizeof(*pfns), GFP_KERNEL); in i915_gem_object_map_pfn() 329 if (!pfns) in i915_gem_object_map_pfn() 335 pfns[i++] = (iomap + addr) >> PAGE_SHIFT; in i915_gem_object_map_pfn() 336 vaddr = vmap_pfn(pfns, n_pfn, pgprot_writecombine(PAGE_KERNEL_IO)); in i915_gem_object_map_pfn() 337 if (pfns != stack) in i915_gem_object_map_pfn() 338 kvfree(pfns); in i915_gem_object_map_pfn()
|
/linux/drivers/virtio/ |
A D | virtio_balloon.c | 115 __virtio32 pfns[VIRTIO_BALLOON_ARRAY_PFNS_MAX]; member 157 sg_init_one(&sg, vb->pfns, sizeof(vb->pfns[0]) * vb->num_pfns); in tell_host() 196 __virtio32 pfns[], struct page *page) in set_page_pfns() argument 207 pfns[i] = cpu_to_virtio32(vb->vdev, in set_page_pfns() 219 num = min(num, ARRAY_SIZE(vb->pfns)); in fill_balloon() 244 set_page_pfns(vb, vb->pfns + vb->num_pfns, page); in fill_balloon() 283 num = min(num, ARRAY_SIZE(vb->pfns)); in leak_balloon() 293 set_page_pfns(vb, vb->pfns + vb->num_pfns, page); in leak_balloon() 791 set_page_pfns(vb, vb->pfns, newpage); in virtballoon_migratepage() 799 set_page_pfns(vb, vb->pfns, page); in virtballoon_migratepage()
|
/linux/arch/powerpc/kvm/ |
A D | book3s_hv_uvmem.c | 229 unsigned long *pfns; member 254 p->pfns = vzalloc(array_size(slot->npages, sizeof(*p->pfns))); in kvmppc_uvmem_slot_init() 255 if (!p->pfns) { in kvmppc_uvmem_slot_init() 279 vfree(p->pfns); in kvmppc_uvmem_slot_free() 298 p->pfns[index] = uvmem_pfn | flag; in kvmppc_mark_gfn() 300 p->pfns[index] = flag; in kvmppc_mark_gfn() 341 if (p->pfns[index] & KVMPPC_GFN_UVMEM_PFN) { in kvmppc_gfn_is_uvmem_pfn() 343 *uvmem_pfn = p->pfns[index] & in kvmppc_gfn_is_uvmem_pfn() 379 if (!(p->pfns[index] & KVMPPC_GFN_FLAG_MASK)) { in kvmppc_next_nontransitioned_gfn()
|
/linux/lib/ |
A D | test_hmm.c | 164 unsigned long *pfns = range->hmm_pfns; in dmirror_do_fault() local 169 pfn++, pfns++) { in dmirror_do_fault() 177 WARN_ON(*pfns & HMM_PFN_ERROR); in dmirror_do_fault() 178 WARN_ON(!(*pfns & HMM_PFN_VALID)); in dmirror_do_fault() 180 page = hmm_pfn_to_page(*pfns); in dmirror_do_fault() 184 if (*pfns & HMM_PFN_WRITE) in dmirror_do_fault() 287 unsigned long pfns[64]; in dmirror_fault() local 290 .hmm_pfns = pfns, in dmirror_fault() 979 unsigned long pfns[64]; in dmirror_snapshot() local 983 .hmm_pfns = pfns, in dmirror_snapshot() [all …]
|
/linux/mm/ |
A D | sparse.c | 204 unsigned long pfns; in subsection_map_init() local 206 pfns = min(nr_pages, PAGES_PER_SECTION in subsection_map_init() 209 subsection_mask_set(ms->usage->subsection_map, pfn, pfns); in subsection_map_init() 212 pfns, subsection_map_index(pfn), in subsection_map_init() 213 subsection_map_index(pfn + pfns - 1)); in subsection_map_init() 215 pfn += pfns; in subsection_map_init() 216 nr_pages -= pfns; in subsection_map_init()
|
A D | vmalloc.c | 2789 unsigned long *pfns; member 2798 if (WARN_ON_ONCE(pfn_valid(data->pfns[data->idx]))) in vmap_pfn_apply() 2800 *pte = pte_mkspecial(pfn_pte(data->pfns[data->idx++], data->prot)); in vmap_pfn_apply() 2813 void *vmap_pfn(unsigned long *pfns, unsigned int count, pgprot_t prot) in vmap_pfn() argument 2815 struct vmap_pfn_data data = { .pfns = pfns, .prot = pgprot_nx(prot) }; in vmap_pfn()
|
/linux/drivers/gpu/drm/nouveau/ |
A D | nouveau_svm.h | 34 void nouveau_pfns_free(u64 *pfns); 36 unsigned long addr, u64 *pfns, unsigned long npages);
|
A D | nouveau_dmem.c | 618 dma_addr_t *dma_addrs, u64 *pfns) in nouveau_dmem_migrate_chunk() argument 625 args->src[i], dma_addrs + nr_dma, pfns + i); in nouveau_dmem_migrate_chunk() 634 nouveau_pfns_map(svmm, args->vma->vm_mm, args->start, pfns, i); in nouveau_dmem_migrate_chunk() 660 u64 *pfns; in nouveau_dmem_migrate_vma() local 677 pfns = nouveau_pfns_alloc(max); in nouveau_dmem_migrate_vma() 678 if (!pfns) in nouveau_dmem_migrate_vma() 689 pfns); in nouveau_dmem_migrate_vma() 695 nouveau_pfns_free(pfns); in nouveau_dmem_migrate_vma()
|
A D | nouveau_svm.c | 887 nouveau_pfns_to_args(void *pfns) in nouveau_pfns_to_args() argument 889 return container_of(pfns, struct nouveau_pfnmap_args, p.phys); in nouveau_pfns_to_args() 909 nouveau_pfns_free(u64 *pfns) in nouveau_pfns_free() argument 911 struct nouveau_pfnmap_args *args = nouveau_pfns_to_args(pfns); in nouveau_pfns_free() 918 unsigned long addr, u64 *pfns, unsigned long npages) in nouveau_pfns_map() argument 920 struct nouveau_pfnmap_args *args = nouveau_pfns_to_args(pfns); in nouveau_pfns_map()
|
/linux/drivers/iommu/ |
A D | iova.c | 805 unsigned long pfns[IOVA_MAG_SIZE]; member 836 struct iova *iova = private_find_iova(iovad, mag->pfns[i]); in iova_magazine_free_pfns() 869 for (i = mag->size - 1; mag->pfns[i] > limit_pfn; i--) in iova_magazine_pop() 874 pfn = mag->pfns[i]; in iova_magazine_pop() 875 mag->pfns[i] = mag->pfns[--mag->size]; in iova_magazine_pop() 884 mag->pfns[mag->size++] = pfn; in iova_magazine_push()
|
/linux/include/xen/ |
A D | xen-ops.h | 195 int xen_xlate_map_ballooned_pages(xen_pfn_t **pfns, void **vaddr,
|
/linux/include/linux/ |
A D | vmalloc.h | 160 void *vmap_pfn(unsigned long *pfns, unsigned int count, pgprot_t prot);
|
/linux/Documentation/vm/ |
A D | hmm.rst | 170 Both functions copy CPU page table entries into their pfns array argument. Each 210 /* Use pfns array content to update device page table, 227 for each entry in the pfns array. 243 range->pfns[index_of_write] = HMM_PFN_REQ_WRITE;
|
A D | memory-model.rst | 149 :c:func:`get_user_pages` service for the given range of pfns. Since the
|
/linux/Documentation/virt/kvm/ |
A D | mmu.rst | 55 spte shadow pte (referring to pfns)
|