Lines Matching refs:last
125 struct host_vm_op *last; in add_mmap() local
136 last = &hvc->ops[hvc->index - 1]; in add_mmap()
137 if ((last->type == MMAP) && in add_mmap()
138 (last->u.mmap.addr + last->u.mmap.len == virt) && in add_mmap()
139 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && in add_mmap()
140 (last->u.mmap.offset + last->u.mmap.len == offset)) { in add_mmap()
141 last->u.mmap.len += len; in add_mmap()
165 struct host_vm_op *last; in add_munmap() local
172 last = &hvc->ops[hvc->index - 1]; in add_munmap()
173 if ((last->type == MUNMAP) && in add_munmap()
174 (last->u.munmap.addr + last->u.mmap.len == addr)) { in add_munmap()
175 last->u.munmap.len += len; in add_munmap()
195 struct host_vm_op *last; in add_mprotect() local
202 last = &hvc->ops[hvc->index - 1]; in add_mprotect()
203 if ((last->type == MPROTECT) && in add_mprotect()
204 (last->u.mprotect.addr + last->u.mprotect.len == addr) && in add_mprotect()
205 (last->u.mprotect.prot == prot)) { in add_mprotect()
206 last->u.mprotect.len += len; in add_mprotect()
371 unsigned long addr, last; in flush_tlb_kernel_range_common() local
380 last = ADD_ROUND(addr, PGDIR_SIZE); in flush_tlb_kernel_range_common()
381 if (last > end) in flush_tlb_kernel_range_common()
382 last = end; in flush_tlb_kernel_range_common()
385 err = add_munmap(addr, last - addr, &hvc); in flush_tlb_kernel_range_common()
390 addr = last; in flush_tlb_kernel_range_common()
396 last = ADD_ROUND(addr, P4D_SIZE); in flush_tlb_kernel_range_common()
397 if (last > end) in flush_tlb_kernel_range_common()
398 last = end; in flush_tlb_kernel_range_common()
401 err = add_munmap(addr, last - addr, &hvc); in flush_tlb_kernel_range_common()
406 addr = last; in flush_tlb_kernel_range_common()
412 last = ADD_ROUND(addr, PUD_SIZE); in flush_tlb_kernel_range_common()
413 if (last > end) in flush_tlb_kernel_range_common()
414 last = end; in flush_tlb_kernel_range_common()
417 err = add_munmap(addr, last - addr, &hvc); in flush_tlb_kernel_range_common()
422 addr = last; in flush_tlb_kernel_range_common()
428 last = ADD_ROUND(addr, PMD_SIZE); in flush_tlb_kernel_range_common()
429 if (last > end) in flush_tlb_kernel_range_common()
430 last = end; in flush_tlb_kernel_range_common()
433 err = add_munmap(addr, last - addr, &hvc); in flush_tlb_kernel_range_common()
438 addr = last; in flush_tlb_kernel_range_common()