Lines Matching refs:area
26 struct vm_struct *area; member
40 *__shared = shared = gnttab_shared_vm_area.area->addr; in arch_gnttab_map_shared()
62 *__shared = shared = gnttab_status_vm_area.area->addr; in arch_gnttab_map_status()
81 if (shared == gnttab_status_vm_area.area->addr) in arch_gnttab_unmap()
96 struct gnttab_vm_area *area = data; in gnttab_apply() local
98 area->ptes[area->idx++] = pte; in gnttab_apply()
102 static int arch_gnttab_valloc(struct gnttab_vm_area *area, unsigned nr_frames) in arch_gnttab_valloc() argument
104 area->ptes = kmalloc_array(nr_frames, sizeof(*area->ptes), GFP_KERNEL); in arch_gnttab_valloc()
105 if (area->ptes == NULL) in arch_gnttab_valloc()
107 area->area = get_vm_area(PAGE_SIZE * nr_frames, VM_IOREMAP); in arch_gnttab_valloc()
108 if (!area->area) in arch_gnttab_valloc()
110 if (apply_to_page_range(&init_mm, (unsigned long)area->area->addr, in arch_gnttab_valloc()
111 PAGE_SIZE * nr_frames, gnttab_apply, area)) in arch_gnttab_valloc()
115 free_vm_area(area->area); in arch_gnttab_valloc()
117 kfree(area->ptes); in arch_gnttab_valloc()
121 static void arch_gnttab_vfree(struct gnttab_vm_area *area) in arch_gnttab_vfree() argument
123 free_vm_area(area->area); in arch_gnttab_vfree()
124 kfree(area->ptes); in arch_gnttab_vfree()