• Home
  • Raw
  • Download

Lines Matching refs:addr

24 static inline unsigned long COLOUR_ALIGN(unsigned long addr,  in COLOUR_ALIGN()  argument
27 unsigned long base = (addr + shm_align_mask) & ~shm_align_mask; in COLOUR_ALIGN()
33 unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, in arch_get_unmapped_area() argument
46 ((addr - (pgoff << PAGE_SHIFT)) & shm_align_mask)) in arch_get_unmapped_area()
48 return addr; in arch_get_unmapped_area()
58 if (addr) { in arch_get_unmapped_area()
60 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area()
62 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area()
64 vma = find_vma(mm, addr); in arch_get_unmapped_area()
65 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area()
66 (!vma || addr + len <= vm_start_gap(vma))) in arch_get_unmapped_area()
67 return addr; in arch_get_unmapped_area()
86 unsigned long addr = addr0; in arch_get_unmapped_area_topdown() local
95 ((addr - (pgoff << PAGE_SHIFT)) & shm_align_mask)) in arch_get_unmapped_area_topdown()
97 return addr; in arch_get_unmapped_area_topdown()
108 if (addr) { in arch_get_unmapped_area_topdown()
110 addr = COLOUR_ALIGN(addr, pgoff); in arch_get_unmapped_area_topdown()
112 addr = PAGE_ALIGN(addr); in arch_get_unmapped_area_topdown()
114 vma = find_vma(mm, addr); in arch_get_unmapped_area_topdown()
115 if (TASK_SIZE - len >= addr && in arch_get_unmapped_area_topdown()
116 (!vma || addr + len <= vm_start_gap(vma))) in arch_get_unmapped_area_topdown()
117 return addr; in arch_get_unmapped_area_topdown()
126 addr = vm_unmapped_area(&info); in arch_get_unmapped_area_topdown()
134 if (addr & ~PAGE_MASK) { in arch_get_unmapped_area_topdown()
135 VM_BUG_ON(addr != -ENOMEM); in arch_get_unmapped_area_topdown()
139 addr = vm_unmapped_area(&info); in arch_get_unmapped_area_topdown()
142 return addr; in arch_get_unmapped_area_topdown()
150 int valid_phys_addr_range(phys_addr_t addr, size_t count) in valid_phys_addr_range() argument
152 if (addr < __MEMORY_START) in valid_phys_addr_range()
154 if (addr + count > __pa(high_memory)) in valid_phys_addr_range()