Lines Matching refs:last
125 struct host_vm_op *last; in add_mmap() local
133 last = &hvc->ops[hvc->index - 1]; in add_mmap()
134 if ((last->type == MMAP) && in add_mmap()
135 (last->u.mmap.addr + last->u.mmap.len == virt) && in add_mmap()
136 (last->u.mmap.prot == prot) && (last->u.mmap.fd == fd) && in add_mmap()
137 (last->u.mmap.offset + last->u.mmap.len == offset)) { in add_mmap()
138 last->u.mmap.len += len; in add_mmap()
162 struct host_vm_op *last; in add_munmap() local
166 last = &hvc->ops[hvc->index - 1]; in add_munmap()
167 if ((last->type == MUNMAP) && in add_munmap()
168 (last->u.munmap.addr + last->u.mmap.len == addr)) { in add_munmap()
169 last->u.munmap.len += len; in add_munmap()
189 struct host_vm_op *last; in add_mprotect() local
193 last = &hvc->ops[hvc->index - 1]; in add_mprotect()
194 if ((last->type == MPROTECT) && in add_mprotect()
195 (last->u.mprotect.addr + last->u.mprotect.len == addr) && in add_mprotect()
196 (last->u.mprotect.prot == prot)) { in add_mprotect()
197 last->u.mprotect.len += len; in add_mprotect()
359 unsigned long addr, last; in flush_tlb_kernel_range_common() local
368 last = ADD_ROUND(addr, PGDIR_SIZE); in flush_tlb_kernel_range_common()
369 if (last > end) in flush_tlb_kernel_range_common()
370 last = end; in flush_tlb_kernel_range_common()
373 err = add_munmap(addr, last - addr, &hvc); in flush_tlb_kernel_range_common()
378 addr = last; in flush_tlb_kernel_range_common()
384 last = ADD_ROUND(addr, P4D_SIZE); in flush_tlb_kernel_range_common()
385 if (last > end) in flush_tlb_kernel_range_common()
386 last = end; in flush_tlb_kernel_range_common()
389 err = add_munmap(addr, last - addr, &hvc); in flush_tlb_kernel_range_common()
394 addr = last; in flush_tlb_kernel_range_common()
400 last = ADD_ROUND(addr, PUD_SIZE); in flush_tlb_kernel_range_common()
401 if (last > end) in flush_tlb_kernel_range_common()
402 last = end; in flush_tlb_kernel_range_common()
405 err = add_munmap(addr, last - addr, &hvc); in flush_tlb_kernel_range_common()
410 addr = last; in flush_tlb_kernel_range_common()
416 last = ADD_ROUND(addr, PMD_SIZE); in flush_tlb_kernel_range_common()
417 if (last > end) in flush_tlb_kernel_range_common()
418 last = end; in flush_tlb_kernel_range_common()
421 err = add_munmap(addr, last - addr, &hvc); in flush_tlb_kernel_range_common()
426 addr = last; in flush_tlb_kernel_range_common()