Home
last modified time | relevance | path

Searched refs:vma (Results 1 – 3 of 3) sorted by relevance

/samples/ftrace/
Dftrace-direct-too.c7 extern void my_direct_func(struct vm_area_struct *vma, unsigned long address,
10 void my_direct_func(struct vm_area_struct *vma, unsigned long address, in my_direct_func() argument
14 vma, address, flags, regs); in my_direct_func()
/samples/vfio-mdev/
Dmdpy.c407 static int mdpy_mmap(struct mdev_device *mdev, struct vm_area_struct *vma) in mdpy_mmap() argument
411 if (vma->vm_pgoff != MDPY_MEMORY_BAR_OFFSET >> PAGE_SHIFT) in mdpy_mmap()
413 if (vma->vm_end < vma->vm_start) in mdpy_mmap()
415 if (vma->vm_end - vma->vm_start > mdev_state->memsize) in mdpy_mmap()
417 if ((vma->vm_flags & VM_SHARED) == 0) in mdpy_mmap()
420 return remap_vmalloc_range_partial(vma, vma->vm_start, in mdpy_mmap()
422 vma->vm_end - vma->vm_start); in mdpy_mmap()
Dmbochs.c750 struct vm_area_struct *vma = vmf->vma; in mbochs_region_vm_fault() local
751 struct mdev_state *mdev_state = vma->vm_private_data; in mbochs_region_vm_fault()
752 pgoff_t page_offset = (vmf->address - vma->vm_start) >> PAGE_SHIFT; in mbochs_region_vm_fault()
768 static int mbochs_mmap(struct mdev_device *mdev, struct vm_area_struct *vma) in mbochs_mmap() argument
772 if (vma->vm_pgoff != MBOCHS_MEMORY_BAR_OFFSET >> PAGE_SHIFT) in mbochs_mmap()
774 if (vma->vm_end < vma->vm_start) in mbochs_mmap()
776 if (vma->vm_end - vma->vm_start > mdev_state->memsize) in mbochs_mmap()
778 if ((vma->vm_flags & VM_SHARED) == 0) in mbochs_mmap()
781 vma->vm_ops = &mbochs_region_vm_ops; in mbochs_mmap()
782 vma->vm_private_data = mdev_state; in mbochs_mmap()
[all …]