OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:__put_user_asm
(Results
26 - 29
of
29
) sorted by null
1
2
/prebuilts/ndk/9/platforms/android-17/arch-mips/usr/include/asm/
uaccess.h
65
#define __put_user_nocheck(x, ptr, size) ({ __typeof__(*(ptr)) __pu_val; long __pu_err = 0; __pu_val = (x); switch (size) { case 1:
__put_user_asm
("sb", ptr); break; case 2:
__put_user_asm
("sh", ptr); break; case 4:
__put_user_asm
("sw", ptr); break; case 8: __PUT_USER_DW(ptr); break; default: __put_user_unknown(); break; } __pu_err; })
66
#define __put_user_check(x, ptr, size) ({ __typeof__(*(ptr)) __user *__pu_addr = (ptr); __typeof__(*(ptr)) __pu_val = (x); long __pu_err = -EFAULT; if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { switch (size) { case 1:
__put_user_asm
("sb", __pu_addr); break; case 2:
__put_user_asm
("sh", __pu_addr); break; case 4:
__put_user_asm
("sw", __pu_addr); break; case 8: __PUT_USER_DW(__pu_addr); break; default: __put_user_unknown(); break; } } __pu_err; })
67
#define
__put_user_asm
(insn, ptr) { __asm__ __volatile__( "1: " insn " %z2, %3 #
__put_user_asm
\n" "2: \n" " .section .fixup,\"ax\" \n" "3: li %0, %4 \n" " j 2b \n" " .previous \n" " .section __ex_table,\"a\" \n" " " __UA_ADDR " 1b, 3b \n" " .previous \n" : "=r" (__pu_err) : "0" (0), "Jr" (__pu_val), "o" (__m(ptr)), "i" (-EFAULT)); }
macro
/prebuilts/ndk/9/platforms/android-18/arch-mips/usr/include/asm/
uaccess.h
65
#define __put_user_nocheck(x, ptr, size) ({ __typeof__(*(ptr)) __pu_val; long __pu_err = 0; __pu_val = (x); switch (size) { case 1:
__put_user_asm
("sb", ptr); break; case 2:
__put_user_asm
("sh", ptr); break; case 4:
__put_user_asm
("sw", ptr); break; case 8: __PUT_USER_DW(ptr); break; default: __put_user_unknown(); break; } __pu_err; })
66
#define __put_user_check(x, ptr, size) ({ __typeof__(*(ptr)) __user *__pu_addr = (ptr); __typeof__(*(ptr)) __pu_val = (x); long __pu_err = -EFAULT; if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { switch (size) { case 1:
__put_user_asm
("sb", __pu_addr); break; case 2:
__put_user_asm
("sh", __pu_addr); break; case 4:
__put_user_asm
("sw", __pu_addr); break; case 8: __PUT_USER_DW(__pu_addr); break; default: __put_user_unknown(); break; } } __pu_err; })
67
#define
__put_user_asm
(insn, ptr) { __asm__ __volatile__( "1: " insn " %z2, %3 #
__put_user_asm
\n" "2: \n" " .section .fixup,\"ax\" \n" "3: li %0, %4 \n" " j 2b \n" " .previous \n" " .section __ex_table,\"a\" \n" " " __UA_ADDR " 1b, 3b \n" " .previous \n" : "=r" (__pu_err) : "0" (0), "Jr" (__pu_val), "o" (__m(ptr)), "i" (-EFAULT)); }
macro
/prebuilts/ndk/9/platforms/android-19/arch-mips/usr/include/asm/
uaccess.h
65
#define __put_user_nocheck(x, ptr, size) ({ __typeof__(*(ptr)) __pu_val; long __pu_err = 0; __pu_val = (x); switch (size) { case 1:
__put_user_asm
("sb", ptr); break; case 2:
__put_user_asm
("sh", ptr); break; case 4:
__put_user_asm
("sw", ptr); break; case 8: __PUT_USER_DW(ptr); break; default: __put_user_unknown(); break; } __pu_err; })
66
#define __put_user_check(x, ptr, size) ({ __typeof__(*(ptr)) __user *__pu_addr = (ptr); __typeof__(*(ptr)) __pu_val = (x); long __pu_err = -EFAULT; if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { switch (size) { case 1:
__put_user_asm
("sb", __pu_addr); break; case 2:
__put_user_asm
("sh", __pu_addr); break; case 4:
__put_user_asm
("sw", __pu_addr); break; case 8: __PUT_USER_DW(__pu_addr); break; default: __put_user_unknown(); break; } } __pu_err; })
67
#define
__put_user_asm
(insn, ptr) { __asm__ __volatile__( "1: " insn " %z2, %3 #
__put_user_asm
\n" "2: \n" " .section .fixup,\"ax\" \n" "3: li %0, %4 \n" " j 2b \n" " .previous \n" " .section __ex_table,\"a\" \n" " " __UA_ADDR " 1b, 3b \n" " .previous \n" : "=r" (__pu_err) : "0" (0), "Jr" (__pu_val), "o" (__m(ptr)), "i" (-EFAULT)); }
macro
/prebuilts/ndk/9/platforms/android-9/arch-mips/usr/include/asm/
uaccess.h
65
#define __put_user_nocheck(x, ptr, size) ({ __typeof__(*(ptr)) __pu_val; long __pu_err = 0; __pu_val = (x); switch (size) { case 1:
__put_user_asm
("sb", ptr); break; case 2:
__put_user_asm
("sh", ptr); break; case 4:
__put_user_asm
("sw", ptr); break; case 8: __PUT_USER_DW(ptr); break; default: __put_user_unknown(); break; } __pu_err; })
66
#define __put_user_check(x, ptr, size) ({ __typeof__(*(ptr)) __user *__pu_addr = (ptr); __typeof__(*(ptr)) __pu_val = (x); long __pu_err = -EFAULT; if (likely(access_ok(VERIFY_WRITE, __pu_addr, size))) { switch (size) { case 1:
__put_user_asm
("sb", __pu_addr); break; case 2:
__put_user_asm
("sh", __pu_addr); break; case 4:
__put_user_asm
("sw", __pu_addr); break; case 8: __PUT_USER_DW(__pu_addr); break; default: __put_user_unknown(); break; } } __pu_err; })
67
#define
__put_user_asm
(insn, ptr) { __asm__ __volatile__( "1: " insn " %z2, %3 #
__put_user_asm
\n" "2: \n" " .section .fixup,\"ax\" \n" "3: li %0, %4 \n" " j 2b \n" " .previous \n" " .section __ex_table,\"a\" \n" " " __UA_ADDR " 1b, 3b \n" " .previous \n" : "=r" (__pu_err) : "0" (0), "Jr" (__pu_val), "o" (__m(ptr)), "i" (-EFAULT)); }
macro
Completed in 6942 milliseconds
1
2