Searched defs:get_fs (Results 1 - 25 of 25) sorted by relevance

/arch/score/include/asm/
H A Dsegment.h14 # define get_fs() (current_thread_info()->addr_limit) macro
H A Duaccess.h12 #define get_fs() (current_thread_info()->addr_limit) macro
52 (((long)((get_fs().seg) & \
/arch/sh/include/asm/
H A Dsegment.h14 * performed or not. If get_fs() == USER_DS, checking is performed, with
15 * get_fs() == KERNEL_DS, checking is bypassed.
30 #define get_fs() (current_thread_info()->addr_limit) macro
/arch/frv/include/asm/
H A Dsegment.h33 #define get_fs() (__current_thread_info->addr_limit) macro
35 #define __kernel_ds_p() segment_eq(get_fs(), KERNEL_DS)
36 #define get_addr_limit() (get_fs().seg)
/arch/h8300/include/asm/
H A Dsegment.h30 static inline mm_segment_t get_fs(void) function
/arch/m68k/include/asm/
H A Dsegment.h33 static inline mm_segment_t get_fs(void) function
57 #define get_fs() (current_thread_info()->addr_limit) macro
/arch/um/include/asm/
H A Duaccess.h24 * performed or not. If get_fs() == USER_DS, checking is performed, with
25 * get_fs() == KERNEL_DS, checking is bypassed.
36 #define get_fs() (current_thread_info()->addr_limit) macro
58 segment_eq(get_fs(), KERNEL_DS)))
/arch/avr32/include/asm/
H A Duaccess.h23 * performed or not. If get_fs() == USER_DS, checking is performed, with
24 * get_fs() == KERNEL_DS, checking is bypassed.
38 static inline mm_segment_t get_fs(void) function
/arch/alpha/include/asm/
H A Duaccess.h10 * performed or not. If get_fs() == USER_DS, checking is performed, with
11 * get_fs() == KERNEL_DS, checking is bypassed.
26 #define get_fs() (current_thread_info()->addr_limit) macro
48 __access_ok(((unsigned long)(addr)),(size),get_fs()); \
64 __put_user_check((__typeof__(*(ptr)))(x),(ptr),sizeof(*(ptr)),get_fs())
66 __get_user_check((x),(ptr),sizeof(*(ptr)),get_fs())
377 if (__access_ok((unsigned long)validate, len, get_fs()))
428 if (__access_ok((unsigned long)to, len, get_fs()))
445 if (__access_ok((unsigned long)from, 0, get_fs()))
/arch/arm/include/asm/
H A Duaccess.h61 #define get_fs() (current_thread_info()->addr_limit) macro
179 #define get_fs() (KERNEL_DS) macro
/arch/blackfin/include/asm/
H A Duaccess.h23 #define get_fs() (current_thread_info()->addr_limit) macro
56 * performed or not. If get_fs() == USER_DS, checking is performed, with
57 * get_fs() == KERNEL_DS, checking is bypassed.
/arch/cris/include/asm/
H A Duaccess.h29 * performed or not. If get_fs() == USER_DS, checking is performed, with
30 * get_fs() == KERNEL_DS, checking is bypassed.
47 #define get_fs() (current_thread_info()->addr_limit) macro
52 #define __kernel_ok (segment_eq(get_fs(), KERNEL_DS))
/arch/ia64/include/asm/
H A Duaccess.h16 * validity check must be skipped. The get_fs() macro tells us what
17 * to do: if get_fs()==USER_DS, checking is performed, if
18 * get_fs()==KERNEL_DS, checking is bypassed.
55 #define get_fs() (current_thread_info()->addr_limit) macro
73 #define access_ok(type, addr, size) __access_ok((addr), (size), get_fs())
83 #define put_user(x, ptr) __put_user_check((__typeof__(*(ptr))) (x), (ptr), sizeof(*(ptr)), get_fs())
84 #define get_user(x, ptr) __get_user_check((x), (ptr), sizeof(*(ptr)), get_fs())
260 if (__access_ok(__cu_to, __cu_len, get_fs())) \
272 if (__access_ok(__cu_from, __cu_len, get_fs())) \
294 if (__access_ok(to, __cu_len, get_fs())) \
[all...]
/arch/m32r/include/asm/
H A Duaccess.h24 * performed or not. If get_fs() == USER_DS, checking is performed, with
25 * get_fs() == KERNEL_DS, checking is bypassed.
37 #define get_fs() (current_thread_info()->addr_limit) macro
46 static inline mm_segment_t get_fs(void) function
/arch/microblaze/include/asm/
H A Duaccess.h35 * performed or not. If get_fs() == USER_DS, checking is performed, with
36 * get_fs() == KERNEL_DS, checking is bypassed.
53 # define get_fs() (current_thread_info()->addr_limit) macro
98 (get_fs().seg >= (((unsigned long)(addr)) | \
102 type?"WRITE":"READ",addr,size,get_fs().seg)) */
/arch/mn10300/include/asm/
H A Duaccess.h27 * performed or not. If get_fs() == USER_DS, checking is performed, with
28 * get_fs() == KERNEL_DS, checking is bypassed.
39 #define get_fs() (current_thread_info()->addr_limit) macro
/arch/openrisc/include/asm/
H A Duaccess.h36 * performed or not. If get_fs() == USER_DS, checking is performed, with
37 * get_fs() == KERNEL_DS, checking is bypassed.
52 #define get_fs() (current_thread_info()->addr_limit) macro
60 #define __range_ok(addr, size) (size <= get_fs() && addr <= (get_fs()-size))
63 #define __addr_ok(addr) ((unsigned long) addr < get_fs())
343 unsigned long top = (unsigned long)get_fs();
/arch/parisc/include/asm/
H A Duaccess.h21 #define get_fs() (current_thread_info()->addr_limit) macro
90 if (segment_eq(get_fs(),KERNEL_DS)) { \
132 if (segment_eq(get_fs(),KERNEL_DS)) { \
/arch/powerpc/include/asm/
H A Duaccess.h18 * performed or not. If get_fs() == USER_DS, checking is performed, with
19 * get_fs() == KERNEL_DS, checking is bypassed.
38 #define get_fs() (current->thread.fs) macro
61 __access_ok((__force unsigned long)(addr), (size), get_fs()))
/arch/s390/include/asm/
H A Duaccess.h27 * performed or not. If get_fs() == USER_DS, checking is performed, with
28 * get_fs() == KERNEL_DS, checking is bypassed.
40 #define get_fs() (current->thread.mm_segment) macro
/arch/sparc/include/asm/
H A Duaccess_32.h36 #define get_fs() (current->thread.current_ds) macro
47 #define __kernel_ok (segment_eq(get_fs(), KERNEL_DS))
48 #define __access_ok(addr,size) (__user_ok((addr) & get_fs().seg,(size)))
H A Duaccess_64.h39 #define get_fs() ((mm_segment_t) { get_thread_current_ds() }) macro
/arch/tile/include/asm/
H A Duaccess.h32 * performed or not. If get_fs() == USER_DS, checking is performed, with
33 * get_fs() == KERNEL_DS, checking is bypassed.
43 #define get_fs() (current_thread_info()->addr_limit) macro
/arch/x86/include/asm/
H A Duaccess.h18 * performed or not. If get_fs() == USER_DS, checking is performed, with
19 * get_fs() == KERNEL_DS, checking is bypassed.
30 #define get_fs() (current_thread_info()->addr_limit) macro
/arch/mips/include/asm/
H A Duaccess.h19 * performed or not. If get_fs() == USER_DS, checking is performed, with
20 * get_fs() == KERNEL_DS, checking is bypassed.
65 #define get_fs() (current_thread_info()->addr_limit) macro
107 #define __access_mask get_fs().seg

Completed in 601 milliseconds