Lines Matching refs:filp
43 #define GET_LAST_MMAP(filp) \ argument
44 (filp ? ((unsigned long) filp->f_mapping) >> 8 : 0UL)
45 #define SET_LAST_MMAP(filp, val) \ argument
89 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
102 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area()
104 last_mmap = GET_LAST_MMAP(filp); in arch_get_unmapped_area()
137 SET_LAST_MMAP(filp, addr - (pgoff << PAGE_SHIFT)); in arch_get_unmapped_area()
143 arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0, in arch_get_unmapped_area_topdown() argument
163 if (filp || (flags & MAP_SHARED)) in arch_get_unmapped_area_topdown()
165 last_mmap = GET_LAST_MMAP(filp); in arch_get_unmapped_area_topdown()
206 return arch_get_unmapped_area(filp, addr0, len, pgoff, flags); in arch_get_unmapped_area_topdown()
210 SET_LAST_MMAP(filp, addr - (pgoff << PAGE_SHIFT)); in arch_get_unmapped_area_topdown()