Lines Matching defs:addr
12 #define __under_task_size(addr, size) \
13 (((unsigned long) (addr) < TASK_SIZE) && \
14 (((unsigned long) (addr) + (size)) < TASK_SIZE))
16 #define __access_ok_vsyscall(addr, size) \
17 (((unsigned long) (addr) >= FIXADDR_USER_START) && \
18 ((unsigned long) (addr) + (size) <= FIXADDR_USER_END) && \
19 ((unsigned long) (addr) + (size) >= (unsigned long)(addr)))
21 #define __addr_range_nowrap(addr, size) \
22 ((unsigned long) (addr) <= ((unsigned long) (addr) + (size)))
29 static inline int __access_ok(unsigned long addr, unsigned long size);
41 static inline int __access_ok(unsigned long addr, unsigned long size)
43 return __addr_range_nowrap(addr, size) &&
44 (__under_task_size(addr, size) ||
45 __access_ok_vsyscall(addr, size) ||