| /linux/fs/coda/ |
| H A D | file.c | 37 struct vm_operations_struct vm_ops; member 126 container_of(vma->vm_ops, struct coda_vm_ops, vm_ops); in coda_vm_open() 138 container_of(vma->vm_ops, struct coda_vm_ops, vm_ops); in coda_vm_close() 144 vma->vm_ops = cvm_ops->host_vm_ops; in coda_vm_close() 212 cvm_ops->host_vm_ops = vma->vm_ops; in coda_file_mmap() 213 if (vma->vm_ops) in coda_file_mmap() 214 cvm_ops->vm_ops = *vma->vm_ops; in coda_file_mmap() 216 cvm_ops->vm_ops.open = coda_vm_open; in coda_file_mmap() 217 cvm_ops->vm_ops.close = coda_vm_close; in coda_file_mmap() 221 vma->vm_ops = &cvm_ops->vm_ops; in coda_file_mmap()
|
| /linux/tools/testing/vma/tests/ |
| H A D | merge.c | 264 const struct vm_operations_struct vm_ops = { in __test_merge_new() 319 vma_a->vm_ops = &vm_ops; /* This should have no impact. */ in __test_merge_new() 360 vma_d->vm_ops = &vm_ops; /* This should have no impact. */ in __test_merge_new() 380 vma_d->vm_ops = NULL; /* This would otherwise degrade the merge. */ in __test_merge_new() 561 const struct vm_operations_struct vm_ops = { in test_vma_merge_with_close() 568 * vm_ops->close() hook. in test_vma_merge_with_close() 582 * has a vm_ops->close() callback that will need to be called when in test_vma_merge_with_close() 593 * vm_ops in test_vma_merge_with_close() 260 const struct vm_operations_struct vm_ops = { __test_merge_new() local 551 const struct vm_operations_struct vm_ops = { test_vma_merge_with_close() local 762 const struct vm_operations_struct vm_ops = { test_vma_merge_new_with_close() local 818 const struct vm_operations_struct vm_ops = { __test_merge_existing() local [all...] |
| /linux/fs/kernfs/ |
| H A D | file.c | 375 if (!of->vm_ops) in kernfs_vma_open() 381 if (of->vm_ops->open) in kernfs_vma_open() 382 of->vm_ops->open(vma); in kernfs_vma_open() 393 if (!of->vm_ops) in kernfs_vma_fault() 400 if (of->vm_ops->fault) in kernfs_vma_fault() 401 ret = of->vm_ops->fault(vmf); in kernfs_vma_fault() 413 if (!of->vm_ops) in kernfs_vma_page_mkwrite() 420 if (of->vm_ops->page_mkwrite) in kernfs_vma_page_mkwrite() 421 ret = of->vm_ops->page_mkwrite(vmf); in kernfs_vma_page_mkwrite() 436 if (!of->vm_ops) in kernfs_vma_access() [all …]
|
| /linux/ipc/ |
| H A D | shm.c | 89 const struct vm_operations_struct *vm_ops; member 311 if (sfd->vm_ops->open) in shm_open() 312 sfd->vm_ops->open(vma); in shm_open() 404 if (sfd->vm_ops->close) in shm_close() 405 sfd->vm_ops->close(vma); in shm_close() 545 return sfd->vm_ops->fault(vmf); in shm_fault() 553 if (sfd->vm_ops->may_split) in shm_may_split() 554 return sfd->vm_ops->may_split(vma, addr); in shm_may_split() 564 if (sfd->vm_ops->pagesize) in shm_pagesize() 565 return sfd->vm_ops->pagesize(vma); in shm_pagesize() [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_mmio_gem.c | 42 static const struct vm_operations_struct vm_ops = { variable 51 .vm_ops = &vm_ops,
|
| /linux/mm/ |
| H A D | vma.c | 26 const struct vm_operations_struct *vm_ops; member 510 if (vma->vm_ops && vma->vm_ops->may_split) { in __split_vma() 511 err = vma->vm_ops->may_split(vma, addr); in __split_vma() 543 if (new->vm_ops && new->vm_ops->open) in __split_vma() 544 new->vm_ops->open(new); in __split_vma() 776 return !vma->vm_ops || !vma->vm_ops->close; in can_merge_remove_vma() 1934 if (new_vma->vm_ops && new_vma->vm_ops->open) in copy_vma() 1935 new_vma->vm_ops->open(new_vma); in copy_vma() 2062 static bool vm_ops_needs_writenotify(const struct vm_operations_struct *vm_ops) in vm_ops_needs_writenotify() argument 2064 return vm_ops && (vm_ops->page_mkwrite || vm_ops->pfn_mkwrite); in vm_ops_needs_writenotify() [all …]
|
| H A D | vma_init.c | 45 dest->vm_ops = src->vm_ops; in vm_area_init_from()
|
| H A D | memory.c | 608 vma->vm_ops ? vma->vm_ops->fault : NULL, in print_bad_page_map() 705 if (vma->vm_ops && vma->vm_ops->find_normal_page) in __vm_normal_page() 706 return vma->vm_ops->find_normal_page(vma, addr); in __vm_normal_page() 2329 return vma->vm_ops && vma->vm_ops->pfn_mkwrite && in vm_mixed_zeropage_allowed() 3684 ret = vmf->vma->vm_ops->page_mkwrite(vmf); in do_page_mkwrite() 3712 bool page_mkwrite = vma->vm_ops && vma->vm_ops->page_mkwrite; in fault_dirty_shared_page() 3797 if (vma->vm_ops->map_pages || !(vmf->flags & FAULT_FLAG_VMA_LOCK)) in vmf_can_call_fault() 4049 if (vma->vm_ops && vma->vm_ops->pfn_mkwrite) { in wp_pfn_shared() 4058 ret = vma->vm_ops->pfn_mkwrite(vmf); in wp_pfn_shared() 4075 if (vma->vm_ops && vma->vm_ops->page_mkwrite) { in wp_page_shared() [all …]
|
| H A D | util.c | 1374 const struct vm_operations_struct *vm_ops = vma->vm_ops; in call_vma_mapped() local 1378 if (!vm_ops || !vm_ops->mapped) in call_vma_mapped() 1381 err = vm_ops->mapped(vma->vm_start, vma->vm_end, vma->vm_pgoff, in call_vma_mapped()
|
| H A D | mempolicy.c | 1022 if (vma->vm_ops && vma->vm_ops->set_policy) { in vma_replace_policy() 1023 err = vma->vm_ops->set_policy(vma, new); in vma_replace_policy() 2022 return (vma->vm_ops && vma->vm_ops->get_policy) ? in __get_vma_policy() 2023 vma->vm_ops->get_policy(vma, addr, ilx) : vma->vm_policy; in __get_vma_policy() 2061 if (vma->vm_ops && vma->vm_ops->get_policy) { in vma_policy_mof() 2065 pol = vma->vm_ops->get_policy(vma, vma->vm_start, &ilx); in vma_policy_mof()
|
| /linux/drivers/gpu/drm/xen/ |
| H A D | xen_drm_front_gem.c | 66 vma->vm_ops = gem_obj->funcs->vm_ops; in xen_drm_front_gem_object_mmap() 111 .vm_ops = &xen_drm_drv_vm_ops,
|
| /linux/drivers/android/binder/ |
| H A D | page_range.rs | 154 let vm_ops = unsafe { (*vma.as_ptr()).vm_ops }; in check_vma() localVariable 155 if !ptr::eq(vm_ops, &BINDER_VM_OPS.0) { in check_vma() 347 unsafe { (*vma.as_ptr()).vm_ops = &BINDER_VM_OPS.0 }; in register_with_vma()
|
| /linux/arch/hexagon/kernel/ |
| H A D | Makefile | 14 obj-y += vm_entry.o vm_events.o vm_switch.o vm_ops.o vm_init_segtable.o
|
| /linux/include/linux/ |
| H A D | agp_backend.h | 56 const struct vm_operations_struct *vm_ops; member
|
| /linux/drivers/gpu/drm/i915/gem/ |
| H A D | i915_gem_mman.c | 1028 vma->vm_ops = obj->ops->mmap_ops; in i915_gem_object_mmap() 1039 vma->vm_ops = &vm_ops_cpu; in i915_gem_object_mmap() 1047 vma->vm_ops = &vm_ops_cpu; in i915_gem_object_mmap() 1053 vma->vm_ops = &vm_ops_cpu; in i915_gem_object_mmap() 1059 vma->vm_ops = &vm_ops_gtt; in i915_gem_object_mmap()
|
| /linux/drivers/accel/amdxdna/ |
| H A D | amdxdna_gem.c | 384 vma->vm_ops->close(vma); in amdxdna_insert_pages() 392 vma->vm_ops = NULL; in amdxdna_insert_pages() 405 vma->vm_ops->close(vma); in amdxdna_insert_pages() 453 vma->vm_ops = &drm_gem_shmem_vm_ops; in amdxdna_gem_dmabuf_mmap() 471 vma->vm_ops->close(vma); in amdxdna_gem_dmabuf_mmap() 654 .vm_ops = &drm_gem_shmem_vm_ops,
|
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_gem_vma.c | 120 struct list_head vm_ops; member 479 list_add_tail(&op->node, &arg->job->vm_ops); in vm_op_enqueue() 715 while (!list_empty(&job->vm_ops)) { in msm_vma_job_run() 717 list_first_entry(&job->vm_ops, struct msm_vm_op, node); in msm_vma_job_run() 780 while (!list_empty(&job->vm_ops)) { in msm_vma_job_free() 782 list_first_entry(&job->vm_ops, struct msm_vm_op, node); in msm_vma_job_free() 977 INIT_LIST_HEAD(&job->vm_ops); in vm_bind_job_create()
|
| /linux/drivers/pci/ |
| H A D | mmap.c | 47 vma->vm_ops = &pci_phys_vm_ops; in pci_mmap_resource_range()
|
| /linux/drivers/media/common/videobuf2/ |
| H A D | videobuf2-vmalloc.c | 195 vma->vm_ops = &vb2_common_vm_ops; in vb2_vmalloc_mmap() 197 vma->vm_ops->open(vma); in vb2_vmalloc_mmap()
|
| /linux/drivers/infiniband/sw/rxe/ |
| H A D | rxe_mmap.c | 105 vma->vm_ops = &rxe_vm_ops; in rxe_mmap()
|
| /linux/tools/testing/vma/include/ |
| H A D | dup.h | 541 const struct vm_operations_struct *vm_ops; member 601 const struct vm_operations_struct *vm_ops; member 1219 vma->vm_ops = &vma_dummy_vm_ops; in vma_init() 1284 vma->vm_ops = NULL; in vma_set_anonymous() 1389 return !vma->vm_ops; in vma_is_anonymous()
|
| /linux/drivers/gpu/drm/etnaviv/ |
| H A D | etnaviv_gem.c | 555 static const struct vm_operations_struct vm_ops = { variable 569 .vm_ops = &vm_ops,
|
| /linux/drivers/xen/ |
| H A D | privcmd-buf.c | 161 vma->vm_ops = &privcmd_buf_vm_ops; in privcmd_buf_mmap()
|
| /linux/arch/x86/kernel/cpu/sgx/ |
| H A D | driver.c | 114 vma->vm_ops = &sgx_vm_ops; in sgx_mmap()
|
| /linux/drivers/char/agp/ |
| H A D | alpha-agp.c | 187 alpha_bridge->vm_ops = &alpha_core_agp_vm_ops; in alpha_core_agp_setup()
|