Home
last modified time | relevance | path

Searched refs:get_fs (Results 1 – 25 of 51) sorted by relevance

123

/kernel/linux/linux-5.10/arch/microblaze/include/asm/
Duaccess.h41 # define get_fs() (current_thread_info()->addr_limit) macro
44 # define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
67 if ((get_fs().seg < ((unsigned long)addr)) || in access_ok()
68 (get_fs().seg < ((unsigned long)addr + size - 1))) { in access_ok()
71 (u32)get_fs().seg); in access_ok()
77 (u32)get_fs().seg); in access_ok()
/kernel/linux/linux-5.10/arch/m68k/include/asm/
Dsegment.h34 static inline mm_segment_t get_fs(void) in get_fs() function
51 #define get_fs() (current_thread_info()->addr_limit) macro
55 #define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
/kernel/linux/linux-5.10/arch/nds32/include/asm/
Duaccess.h39 #define get_fs() (current_thread_info()->addr_limit) macro
40 #define user_addr_max get_fs
47 #define uaccess_kernel() (get_fs() == KERNEL_DS)
49 #define __range_ok(addr, size) (size <= get_fs() && addr <= (get_fs() -size))
/kernel/linux/linux-5.10/arch/hexagon/include/asm/
Duaccess.h36 ((get_fs().seg == KERNEL_DS.seg) || \
37 (((unsigned long)addr < get_fs().seg) && \
38 (unsigned long)size < (get_fs().seg - (unsigned long)addr)))
/kernel/linux/linux-5.10/arch/csky/include/asm/
Dsegment.h14 #define get_fs() (current_thread_info()->addr_limit) macro
16 #define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
/kernel/linux/linux-5.10/arch/sh/include/asm/
Dsegment.h27 #define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
29 #define get_fs() (current_thread_info()->addr_limit) macro
/kernel/linux/linux-5.10/arch/h8300/include/asm/
Dsegment.h31 static inline mm_segment_t get_fs(void) in get_fs() function
36 #define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
/kernel/linux/linux-5.10/arch/parisc/include/asm/
Duaccess.h17 #define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
19 #define get_fs() (current_thread_info()->addr_limit) macro
81 : : "r"(get_fs()) : )
/kernel/linux/linux-5.10/arch/nios2/include/asm/
Duaccess.h30 #define get_fs() (current_thread_info()->addr_limit) macro
33 #define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
36 (((signed long)(((long)get_fs().seg) & \
/kernel/linux/linux-5.10/arch/xtensa/include/asm/
Dasm-uaccess.h43 .macro get_fs ad, sp
92 get_fs \at, \sp
Duaccess.h35 #define get_fs() (current->thread.current_ds) macro
38 #define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
/kernel/linux/linux-5.10/arch/m68k/mm/
Dcache.c58 : "a" (vaddr), "d" (get_fs().seg)); in virt_to_phys_slow()
110 mm_segment_t old_fs = get_fs(); in flush_icache_range()
/kernel/linux/linux-5.10/arch/openrisc/include/asm/
Duaccess.h43 #define get_fs() (current_thread_info()->addr_limit) macro
46 #define uaccess_kernel() (get_fs() == KERNEL_DS)
53 const mm_segment_t fs = get_fs(); in __range_ok()
/kernel/linux/linux-5.10/arch/sparc/include/asm/
Duaccess_32.h28 #define get_fs() (current->thread.current_ds) macro
31 #define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
40 #define __access_ok(addr, size) (__user_ok((addr) & get_fs().seg, (size)))
Duaccess_64.h33 #define get_fs() ((mm_segment_t){(current_thread_info()->current_ds)}) macro
35 #define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
/kernel/linux/linux-5.10/arch/mips/kernel/
Dftrace.c84 old_fs = get_fs(); in ftrace_modify_code()
109 old_fs = get_fs(); in ftrace_modify_code_2()
133 old_fs = get_fs(); in ftrace_modify_code_2r()
/kernel/linux/linux-5.10/mm/
Dmaccess.c108 mm_segment_t old_fs = get_fs(); in copy_from_kernel_nofault()
138 mm_segment_t old_fs = get_fs(); in copy_to_kernel_nofault()
172 mm_segment_t old_fs = get_fs(); in strncpy_from_kernel_nofault()
/kernel/linux/linux-5.10/drivers/staging/blackbox/
Dblackbox_common.c34 old_fs = get_fs(); in change_own()
64 old_fs = get_fs(); in full_write_file()
212 old_fs = get_fs(); in file_open()
/kernel/linux/linux-5.10/include/asm-generic/
Duaccess.h110 #ifndef get_fs
111 #define get_fs() (current_thread_info()->addr_limit) macro
120 #define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
/kernel/linux/linux-5.10/arch/ia64/include/asm/
Duaccess.h50 #define get_fs() (current_thread_info()->addr_limit) macro
53 #define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
64 unsigned long seg = get_fs().seg; in __access_ok()
/kernel/linux/linux-5.10/arch/alpha/include/asm/
Duaccess.h20 #define get_fs() (current_thread_info()->addr_limit) macro
23 #define uaccess_kernel() (get_fs().seg == KERNEL_DS.seg)
38 (get_fs().seg & (__ao_a | __ao_b | __ao_end)) == 0; })
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Duaccess.h27 #define get_fs() (current_thread_info()->addr_limit) macro
53 #define uaccess_kernel() (get_fs() == KERNEL_DS)
97 #define user_addr_max get_fs
/kernel/linux/linux-5.10/arch/arc/include/asm/
Dsegment.h17 #define uaccess_kernel() (get_fs() == KERNEL_DS)
/kernel/linux/linux-5.10/arch/arm/include/asm/
Duaccess.h63 #define get_fs() (current_thread_info()->addr_limit) macro
79 #define uaccess_kernel() (get_fs() == KERNEL_DS)
275 #define get_fs() (KERNEL_DS) macro
289 (uaccess_kernel() ? ~0UL : get_fs())
/kernel/linux/linux-5.10/arch/arm/kernel/
Dsys_oabi-compat.c211 fs = get_fs(); in do_locks()
286 fs = get_fs(); in sys_oabi_epoll_wait()
358 mm_segment_t fs = get_fs(); in sys_oabi_semtimedop()

123