Home
last modified time | relevance | path

Searched refs:vms (Results 1 – 16 of 16) sorted by relevance

/linux/mm/
H A Dvma.c35 struct vma_munmap_struct vms; member
1256 static inline void vms_clear_ptes(struct vma_munmap_struct *vms, in vms_clear_ptes() argument
1261 .first = vms->vma, in vms_clear_ptes()
1263 .pg_start = vms->unmap_start, in vms_clear_ptes()
1264 .pg_end = vms->unmap_end, in vms_clear_ptes()
1265 .vma_start = vms->start, in vms_clear_ptes()
1266 .vma_end = vms->end, in vms_clear_ptes()
1272 .tree_end = vms->vma_count, in vms_clear_ptes()
1280 if (!vms->clear_ptes) /* Nothing to do */ in vms_clear_ptes()
1285 vms->clear_ptes = false; in vms_clear_ptes()
[all …]
H A Dpercpu-vm.c336 struct vm_struct **vms; in pcpu_create_chunk() local
342 vms = pcpu_get_vm_areas(pcpu_group_offsets, pcpu_group_sizes, in pcpu_create_chunk()
344 if (!vms) { in pcpu_create_chunk()
349 chunk->data = vms; in pcpu_create_chunk()
350 chunk->base_addr = vms[0]->addr - pcpu_group_offsets[0]; in pcpu_create_chunk()
H A Dvmalloc.c4890 struct vm_struct **vms; in pcpu_get_vm_areas() local
4923 vms = kzalloc_objs(vms[0], nr_vms); in pcpu_get_vm_areas()
4925 if (!vas || !vms) in pcpu_get_vm_areas()
4930 vms[area] = kzalloc_obj(struct vm_struct); in pcpu_get_vm_areas()
4931 if (!vas[area] || !vms[area]) in pcpu_get_vm_areas()
5030 setup_vmalloc_vm(vms[area], vas[area], VM_ALLOC, in pcpu_get_vm_areas()
5041 kasan_unpoison_vmap_areas(vms, nr_vms, KASAN_VMALLOC_PROT_NORMAL); in pcpu_get_vm_areas()
5044 return vms; in pcpu_get_vm_areas()
5090 kfree(vms[area]); in pcpu_get_vm_areas()
5094 kfree(vms); in pcpu_get_vm_areas()
[all …]
/linux/tools/testing/selftests/powerpc/tm/
H A Dtm-signal-context-chk-vmx.c36 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
41 vector int vms[] = { variable
65 &vms[i], sizeof(vector int)); in signal_usr1()
75 printf("%08x", vms[i][j]); in signal_usr1()
83 &vms[NV_VMX_REGS + i], sizeof (vector int)); in signal_usr1()
93 printf("%08x", vms[NV_VMX_REGS + i][j]); in signal_usr1()
125 rc = tm_signal_self_context_load(pid, NULL, NULL, vms, NULL); in tm_signal_context_chk()
H A Dtm-signal-context-chk-fpu.c35 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
H A Dtm-signal-context-chk-gpr.c35 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
H A Dtm-signal-context-chk-vsx.c37 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *v…
/linux/tools/testing/selftests/kvm/
H A Dkvm_binary_stats_test.c189 struct kvm_vm **vms; in main() local
213 vms = malloc(sizeof(vms[0]) * max_vm); in main()
214 TEST_ASSERT(vms, "Allocate memory for storing VM pointers"); in main()
227 vms[i] = vm_create_barebones(); in main()
229 vcpus[i * max_vcpu + j] = __vm_vcpu_add(vms[i], j); in main()
241 vm_stats_fds = vm_get_stats_fd(vms[i]); in main()
245 stats_test(vm_get_stats_fd(vms[i])); in main()
259 kvm_vm_free(vms[i]); in main()
268 free(vms); in main()
/linux/mm/kasan/
H A Dcommon.c581 void __kasan_unpoison_vmap_areas(struct vm_struct **vms, int nr_vms, in __kasan_unpoison_vmap_areas() argument
597 size = vms[0]->size; in __kasan_unpoison_vmap_areas()
598 addr = vms[0]->addr; in __kasan_unpoison_vmap_areas()
599 vms[0]->addr = __kasan_unpoison_vmalloc(addr, size, flags); in __kasan_unpoison_vmap_areas()
600 tag = get_tag(vms[0]->addr); in __kasan_unpoison_vmap_areas()
603 size = vms[area]->size; in __kasan_unpoison_vmap_areas()
604 addr = set_tag(vms[area]->addr, tag); in __kasan_unpoison_vmap_areas()
605 vms[area]->addr = in __kasan_unpoison_vmap_areas()
/linux/include/linux/
H A Dkasan.h634 void __kasan_unpoison_vmap_areas(struct vm_struct **vms, int nr_vms,
637 kasan_unpoison_vmap_areas(struct vm_struct **vms, int nr_vms, in kasan_unpoison_vmap_areas() argument
641 __kasan_unpoison_vmap_areas(vms, nr_vms, flags); in kasan_unpoison_vmap_areas()
680 kasan_unpoison_vmap_areas(struct vm_struct **vms, int nr_vms, in kasan_unpoison_vmap_areas() argument
H A Dvmalloc.h316 void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms);
326 static inline void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms) {} in pcpu_free_vm_areas() argument
/linux/drivers/gpu/drm/panthor/
H A Dpanthor_drv.c883 ret = panthor_vm_pool_create_vm(ptdev, pfile->vms, args); in panthor_ioctl_vm_create()
902 return panthor_vm_pool_destroy_vm(pfile->vms, args->id); in panthor_ioctl_vm_destroy()
932 vm = panthor_vm_pool_get_vm(pfile->vms, args->exclusive_vm_id); in panthor_ioctl_bo_create()
1147 vm = panthor_vm_pool_get_vm(pfile->vms, args->vm_id); in panthor_ioctl_tiler_heap_create()
1193 vm = panthor_vm_pool_get_vm(pfile->vms, args->handle >> 16); in panthor_ioctl_tiler_heap_destroy()
1221 vm = panthor_vm_pool_get_vm(pfile->vms, args->vm_id); in panthor_ioctl_vm_bind_async()
1289 vm = panthor_vm_pool_get_vm(pfile->vms, args->vm_id); in panthor_ioctl_vm_bind_sync()
1340 vm = panthor_vm_pool_get_vm(pfile->vms, args->vm_id); in panthor_ioctl_vm_get_state()
H A Dpanthor_mmu.c1570 if (!pfile->vms) in panthor_vm_pool_destroy()
1573 xa_for_each(&pfile->vms->xa, i, vm) in panthor_vm_pool_destroy()
1576 xa_destroy(&pfile->vms->xa); in panthor_vm_pool_destroy()
1577 kfree(pfile->vms); in panthor_vm_pool_destroy()
1588 pfile->vms = kzalloc_obj(*pfile->vms); in panthor_vm_pool_create()
1589 if (!pfile->vms) in panthor_vm_pool_create()
1592 xa_init_flags(&pfile->vms->xa, XA_FLAGS_ALLOC1); in panthor_vm_pool_create()
1993 if (!pfile->vms) in panthor_vm_heaps_sizes()
1996 xa_lock(&pfile->vms->xa); in panthor_vm_heaps_sizes()
1997 xa_for_each(&pfile->vms->xa, i, vm) { in panthor_vm_heaps_sizes()
[all …]
H A Dpanthor_device.h271 struct panthor_vm_pool *vms; member
H A Dpanthor_sched.c2011 struct panthor_vm *vms[MAX_CS_PER_CSG]; member
2047 if (ctx->vms[i] == group->vm) in tick_ctx_pick_groups_from_list()
2070 ctx->vms[ctx->as_count++] = group->vm; in tick_ctx_pick_groups_from_list()
3687 group->vm = panthor_vm_pool_get_vm(pfile->vms, group_args->vm_id); in panthor_group_create()
/linux/tools/kvm/kvm_stat/
H A Dkvm_stat846 vms = self.walkdir(PATH_DEBUGFS_KVM)[1]
847 if len(vms) == 0:
850 self.paths = list(filter(lambda x: "{}-".format(pid) in x, vms))