Lines Matching refs:vms
4029 struct vm_struct **vms; in pcpu_get_vm_areas() local
4062 vms = kcalloc(nr_vms, sizeof(vms[0]), GFP_KERNEL); in pcpu_get_vm_areas()
4064 if (!vas || !vms) in pcpu_get_vm_areas()
4069 vms[area] = kzalloc(sizeof(struct vm_struct), GFP_KERNEL); in pcpu_get_vm_areas()
4070 if (!vas[area] || !vms[area]) in pcpu_get_vm_areas()
4169 setup_vmalloc_vm_locked(vms[area], vas[area], VM_ALLOC, in pcpu_get_vm_areas()
4181 vms[area]->addr = kasan_unpoison_vmalloc(vms[area]->addr, in pcpu_get_vm_areas()
4182 vms[area]->size, KASAN_VMALLOC_PROT_NORMAL); in pcpu_get_vm_areas()
4185 return vms; in pcpu_get_vm_areas()
4230 kfree(vms[area]); in pcpu_get_vm_areas()
4234 kfree(vms); in pcpu_get_vm_areas()
4253 kfree(vms[area]); in pcpu_get_vm_areas()
4257 kfree(vms); in pcpu_get_vm_areas()
4268 void pcpu_free_vm_areas(struct vm_struct **vms, int nr_vms) in pcpu_free_vm_areas() argument
4273 free_vm_area(vms[i]); in pcpu_free_vm_areas()
4274 kfree(vms); in pcpu_free_vm_areas()