Home
last modified time | relevance | path

Searched refs:vm_ops (Results 1 – 25 of 161) sorted by relevance

1234567

/openbmc/linux/fs/coda/
H A Dfile.c37 struct vm_operations_struct vm_ops; member
128 container_of(vma->vm_ops, struct coda_vm_ops, vm_ops); in coda_vm_open()
140 container_of(vma->vm_ops, struct coda_vm_ops, vm_ops); in coda_vm_close()
146 vma->vm_ops = cvm_ops->host_vm_ops; in coda_vm_close()
214 cvm_ops->host_vm_ops = vma->vm_ops; in coda_file_mmap()
215 if (vma->vm_ops) in coda_file_mmap()
216 cvm_ops->vm_ops = *vma->vm_ops; in coda_file_mmap()
218 cvm_ops->vm_ops.open = coda_vm_open; in coda_file_mmap()
219 cvm_ops->vm_ops.close = coda_vm_close; in coda_file_mmap()
223 vma->vm_ops = &cvm_ops->vm_ops; in coda_file_mmap()
/openbmc/linux/fs/kernfs/
H A Dfile.c357 if (!of->vm_ops) in kernfs_vma_open()
363 if (of->vm_ops->open) in kernfs_vma_open()
364 of->vm_ops->open(vma); in kernfs_vma_open()
375 if (!of->vm_ops) in kernfs_vma_fault()
382 if (of->vm_ops->fault) in kernfs_vma_fault()
383 ret = of->vm_ops->fault(vmf); in kernfs_vma_fault()
395 if (!of->vm_ops) in kernfs_vma_page_mkwrite()
402 if (of->vm_ops->page_mkwrite) in kernfs_vma_page_mkwrite()
403 ret = of->vm_ops->page_mkwrite(vmf); in kernfs_vma_page_mkwrite()
418 if (!of->vm_ops) in kernfs_vma_access()
[all …]
/openbmc/linux/ipc/
H A Dshm.c87 const struct vm_operations_struct *vm_ops; member
308 if (sfd->vm_ops->open) in shm_open()
309 sfd->vm_ops->open(vma); in shm_open()
401 if (sfd->vm_ops->close) in shm_close()
402 sfd->vm_ops->close(vma); in shm_close()
539 return sfd->vm_ops->fault(vmf); in shm_fault()
547 if (sfd->vm_ops->may_split) in shm_may_split()
548 return sfd->vm_ops->may_split(vma, addr); in shm_may_split()
558 if (sfd->vm_ops->pagesize) in shm_pagesize()
559 return sfd->vm_ops->pagesize(vma); in shm_pagesize()
[all …]
/openbmc/linux/drivers/gpu/drm/xen/
H A Dxen_drm_front_gem.c65 vma->vm_ops = gem_obj->funcs->vm_ops; in xen_drm_front_gem_object_mmap()
110 .vm_ops = &xen_drm_drv_vm_ops,
/openbmc/linux/drivers/char/agp/
H A Dfrontend.c600 DBG("client vm_ops=%p", kerninfo.vm_ops); in agp_mmap()
601 if (kerninfo.vm_ops) { in agp_mmap()
602 vma->vm_ops = kerninfo.vm_ops; in agp_mmap()
617 DBG("controller vm_ops=%p", kerninfo.vm_ops); in agp_mmap()
618 if (kerninfo.vm_ops) { in agp_mmap()
619 vma->vm_ops = kerninfo.vm_ops; in agp_mmap()
/openbmc/linux/drivers/gpu/drm/mediatek/
H A Dmtk_drm_gem.c19 static const struct vm_operations_struct vm_ops = { variable
30 .vm_ops = &vm_ops,
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_vm.c493 vma->vm_ops = &drm_vm_dma_ops; in drm_mmap_dma()
589 vma->vm_ops = &drm_vm_ops; in drm_mmap_locked()
608 vma->vm_ops = &drm_vm_ops; in drm_mmap_locked()
620 vma->vm_ops = &drm_vm_shm_ops; in drm_mmap_locked()
624 vma->vm_ops = &drm_vm_sg_ops; in drm_mmap_locked()
/openbmc/linux/mm/
H A Dmmap.c736 if (may_remove_vma && vma->vm_ops && vma->vm_ops->close) in is_mergeable_vma()
957 if (curr->vm_ops && curr->vm_ops->close) in vma_merge()
1465 static bool vm_ops_needs_writenotify(const struct vm_operations_struct *vm_ops) in vm_ops_needs_writenotify() argument
1467 return vm_ops && (vm_ops->page_mkwrite || vm_ops->pfn_mkwrite); in vm_ops_needs_writenotify()
1497 if (vm_ops_needs_writenotify(vma->vm_ops)) in vma_needs_dirty_tracking()
1520 if (vm_ops_needs_writenotify(vma->vm_ops)) in vma_wants_writenotify()
2363 if (vma->vm_ops && vma->vm_ops->may_split) { in __split_vma()
2364 err = vma->vm_ops->may_split(vma, addr); in __split_vma()
2396 if (new->vm_ops && new->vm_ops->open) in __split_vma()
2397 new->vm_ops->open(new); in __split_vma()
[all …]
H A Dmremap.c619 if (vma->vm_ops && vma->vm_ops->may_split) { in move_vma()
621 err = vma->vm_ops->may_split(vma, old_addr); in move_vma()
623 err = vma->vm_ops->may_split(vma, old_addr + old_len); in move_vma()
659 } else if (vma->vm_ops && vma->vm_ops->mremap) { in move_vma()
660 err = vma->vm_ops->mremap(new_vma); in move_vma()
H A Dmempolicy.c777 vma->vm_ops, vma->vm_file, in vma_replace_policy()
778 vma->vm_ops ? vma->vm_ops->set_policy : NULL); in vma_replace_policy()
784 if (vma->vm_ops && vma->vm_ops->set_policy) { in vma_replace_policy()
785 err = vma->vm_ops->set_policy(vma, new); in vma_replace_policy()
959 if (vma->vm_ops && vma->vm_ops->get_policy) in do_get_mempolicy()
960 pol = vma->vm_ops->get_policy(vma, addr); in do_get_mempolicy()
1759 if (vma->vm_ops && vma->vm_ops->get_policy) { in __get_vma_policy()
1760 pol = vma->vm_ops->get_policy(vma, addr); in __get_vma_policy()
1805 if (vma->vm_ops && vma->vm_ops->get_policy) { in vma_policy_mof()
1808 pol = vma->vm_ops->get_policy(vma, vma->vm_start); in vma_policy_mof()
H A Dmemory.c532 vma->vm_ops ? vma->vm_ops->fault : NULL, in print_bad_pte()
589 if (vma->vm_ops && vma->vm_ops->find_special_page) in vm_normal_page()
590 return vma->vm_ops->find_special_page(vma, addr); in vm_normal_page()
2951 ret = vmf->vma->vm_ops->page_mkwrite(vmf); in do_page_mkwrite()
2979 bool page_mkwrite = vma->vm_ops && vma->vm_ops->page_mkwrite; in fault_dirty_shared_page()
3274 if (vma->vm_ops && vma->vm_ops->pfn_mkwrite) { in wp_pfn_shared()
3284 ret = vma->vm_ops->pfn_mkwrite(vmf); in wp_pfn_shared()
3301 if (vma->vm_ops && vma->vm_ops->page_mkwrite) { in wp_page_shared()
4244 ret = vma->vm_ops->fault(vmf); in __do_fault()
4574 ret = vmf->vma->vm_ops->map_pages(vmf, in do_fault_around()
[all …]
H A Dsecretmem.c134 vma->vm_ops = &secretmem_vm_ops; in secretmem_mmap()
141 return vma->vm_ops == &secretmem_vm_ops; in vma_is_secretmem()
H A Dinternal.h108 vma->vm_ops = &vma_dummy_vm_ops; in mmap_file()
120 if (vma->vm_ops && vma->vm_ops->close) { in vma_close()
121 vma->vm_ops->close(vma); in vma_close()
127 vma->vm_ops = &vma_dummy_vm_ops; in vma_close()
/openbmc/linux/arch/hexagon/kernel/
H A DMakefile14 obj-y += vm_entry.o vm_events.o vm_switch.o vm_ops.o vm_init_segtable.o
/openbmc/linux/drivers/pci/
H A Dmmap.c45 vma->vm_ops = &pci_phys_vm_ops; in pci_mmap_resource_range()
/openbmc/linux/include/linux/
H A Dagp_backend.h56 const struct vm_operations_struct *vm_ops; member
/openbmc/linux/drivers/gpu/drm/i915/gem/
H A Di915_gem_mman.c1020 vma->vm_ops = obj->ops->mmap_ops; in i915_gem_object_mmap()
1031 vma->vm_ops = &vm_ops_cpu; in i915_gem_object_mmap()
1039 vma->vm_ops = &vm_ops_cpu; in i915_gem_object_mmap()
1045 vma->vm_ops = &vm_ops_cpu; in i915_gem_object_mmap()
1051 vma->vm_ops = &vm_ops_gtt; in i915_gem_object_mmap()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_ttm_glue.c96 vma->vm_ops = &vmw_vm_ops; in vmw_mmap()
/openbmc/linux/arch/x86/kernel/cpu/sgx/
H A Dencl.h95 if (!result || result->vm_ops != &sgx_vm_ops) in sgx_encl_find()
/openbmc/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-vmalloc.c193 vma->vm_ops = &vb2_common_vm_ops; in vb2_vmalloc_mmap()
195 vma->vm_ops->open(vma); in vb2_vmalloc_mmap()
/openbmc/linux/drivers/gpu/drm/ttm/
H A Dttm_bo_vm.c471 if (!vma->vm_ops) in ttm_bo_mmap_obj()
472 vma->vm_ops = &ttm_bo_vm_ops; in ttm_bo_mmap_obj()
/openbmc/linux/drivers/gpu/drm/etnaviv/
H A Detnaviv_gem.c531 static const struct vm_operations_struct vm_ops = { variable
544 .vm_ops = &vm_ops,
/openbmc/linux/drivers/infiniband/sw/rxe/
H A Drxe_mmap.c105 vma->vm_ops = &rxe_vm_ops; in rxe_mmap()
/openbmc/linux/fs/nilfs2/
H A Dfile.c129 vma->vm_ops = &nilfs_file_vm_ops; in nilfs_file_mmap()
/openbmc/linux/fs/ocfs2/
H A Dmmap.c174 vma->vm_ops = &ocfs2_file_vm_ops; in ocfs2_mmap()

1234567