OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:__get_user_asm_byte
(Results
26 - 28
of
28
) sorted by null
1
2
/prebuilts/ndk/9/platforms/android-8/arch-arm/usr/include/asm/
uaccess.h
44
#define __get_user_err(x,ptr,err) do { unsigned long __gu_addr = (unsigned long)(ptr); unsigned long __gu_val; __chk_user_ptr(ptr); switch (sizeof(*(ptr))) { case 1:
__get_user_asm_byte
(__gu_val,__gu_addr,err); break; case 2: __get_user_asm_half(__gu_val,__gu_addr,err); break; case 4: __get_user_asm_word(__gu_val,__gu_addr,err); break; default: (__gu_val) = __get_user_bad(); } (x) = (__typeof__(*(ptr)))__gu_val; } while (0)
45
#define
__get_user_asm_byte
(x,addr,err) __asm__ __volatile__( "1: ldrbt %1,[%2],#0\n" "2:\n" " .section .fixup,\"ax\"\n" " .align 2\n" "3: mov %0, %3\n" " mov %1, #0\n" " b 2b\n" " .previous\n" " .section __ex_table,\"a\"\n" " .align 3\n" " .long 1b, 3b\n" " .previous" : "+r" (err), "=&r" (x) : "r" (addr), "i" (-EFAULT) : "cc")
macro
47
#define __get_user_asm_half(x,__gu_addr,err) ({ unsigned long __b1, __b2;
__get_user_asm_byte
(__b1, __gu_addr, err);
__get_user_asm_byte
(__b2, __gu_addr + 1, err); (x) = __b1 | (__b2 << 8); })
49
#define __get_user_asm_half(x,__gu_addr,err) ({ unsigned long __b1, __b2;
__get_user_asm_byte
(__b1, __gu_addr, err);
__get_user_asm_byte
(__b2, __gu_addr + 1, err); (x) = (__b1 << 8) | __b2; })
/prebuilts/ndk/9/platforms/android-9/arch-arm/usr/include/asm/
uaccess.h
44
#define __get_user_err(x,ptr,err) do { unsigned long __gu_addr = (unsigned long)(ptr); unsigned long __gu_val; __chk_user_ptr(ptr); switch (sizeof(*(ptr))) { case 1:
__get_user_asm_byte
(__gu_val,__gu_addr,err); break; case 2: __get_user_asm_half(__gu_val,__gu_addr,err); break; case 4: __get_user_asm_word(__gu_val,__gu_addr,err); break; default: (__gu_val) = __get_user_bad(); } (x) = (__typeof__(*(ptr)))__gu_val; } while (0)
45
#define
__get_user_asm_byte
(x,addr,err) __asm__ __volatile__( "1: ldrbt %1,[%2],#0\n" "2:\n" " .section .fixup,\"ax\"\n" " .align 2\n" "3: mov %0, %3\n" " mov %1, #0\n" " b 2b\n" " .previous\n" " .section __ex_table,\"a\"\n" " .align 3\n" " .long 1b, 3b\n" " .previous" : "+r" (err), "=&r" (x) : "r" (addr), "i" (-EFAULT) : "cc")
macro
47
#define __get_user_asm_half(x,__gu_addr,err) ({ unsigned long __b1, __b2;
__get_user_asm_byte
(__b1, __gu_addr, err);
__get_user_asm_byte
(__b2, __gu_addr + 1, err); (x) = __b1 | (__b2 << 8); })
49
#define __get_user_asm_half(x,__gu_addr,err) ({ unsigned long __b1, __b2;
__get_user_asm_byte
(__b1, __gu_addr, err);
__get_user_asm_byte
(__b2, __gu_addr + 1, err); (x) = (__b1 << 8) | __b2; })
/external/kernel-headers/original/asm-arm/
uaccess.h
218
case 1:
__get_user_asm_byte
(__gu_val,__gu_addr,err); break; \
226
#define
__get_user_asm_byte
(x,addr,err) \
macro
248
__get_user_asm_byte
(__b1, __gu_addr, err); \
249
__get_user_asm_byte
(__b2, __gu_addr + 1, err); \
256
__get_user_asm_byte
(__b1, __gu_addr, err); \
257
__get_user_asm_byte
(__b2, __gu_addr + 1, err); \
Completed in 109 milliseconds
1
2