Home
last modified time | relevance | path

Searched defs:ptr (Results 1 – 25 of 328) sorted by relevance

12345678910>>...14

/arch/frv/include/asm/
Dcmpxchg.h27 #define xchg(ptr, x) \ argument
55 #define xchg(ptr, x) \ argument
72 #define tas(ptr) (xchg((ptr), 1)) argument
84 #define cmpxchg(ptr, test, new) \ argument
124 #define cmpxchg(ptr, test, new) \ argument
149 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
167 #define cmpxchg_local(ptr, o, n) \ argument
170 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
/arch/ia64/sn/pci/pcibr/
Dpcibr_reg.c28 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_control_bit_clr() local
48 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_control_bit_set() local
71 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_tflush_get() local
101 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_intr_status_get() local
126 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_intr_enable_bit_clr() local
146 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_intr_enable_bit_set() local
170 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_intr_addr_addr_set() local
199 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_force_intr_set() local
222 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_wrb_flush_get() local
247 union br_ptr __iomem *ptr = (union br_ptr __iomem *)pcibus_info->pbi_buscommon.bs_base; in pcireg_int_ate_set() local
[all …]
/arch/tile/include/asm/
Dcmpxchg.h43 #define xchg(ptr, n) \ argument
51 #define cmpxchg(ptr, o, n) \ argument
60 #define xchg64(ptr, n) \ argument
69 #define cmpxchg64(ptr, o, n) \ argument
80 #define xchg(ptr, n) \ argument
102 #define cmpxchg(ptr, o, n) \ argument
130 #define tas(ptr) xchg((ptr), 1) argument
Duaccess.h144 #define __get_user_asm(OP, x, ptr, ret) \ argument
158 #define __get_user_1(x, ptr, ret) __get_user_asm(ld1u, x, ptr, ret) argument
159 #define __get_user_2(x, ptr, ret) __get_user_asm(ld2u, x, ptr, ret) argument
160 #define __get_user_4(x, ptr, ret) __get_user_asm(ld4s, x, ptr, ret) argument
161 #define __get_user_8(x, ptr, ret) __get_user_asm(ld, x, ptr, ret) argument
163 #define __get_user_1(x, ptr, ret) __get_user_asm(lb_u, x, ptr, ret) argument
164 #define __get_user_2(x, ptr, ret) __get_user_asm(lh_u, x, ptr, ret) argument
165 #define __get_user_4(x, ptr, ret) __get_user_asm(lw, x, ptr, ret) argument
173 #define __get_user_8(x, ptr, ret) \ argument
219 #define __get_user(x, ptr) \ argument
[all …]
/arch/parisc/include/asm/
Dcmpxchg.h24 __xchg(unsigned long x, __volatile__ void *ptr, int size) in __xchg()
46 #define xchg(ptr, x) \ argument
66 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg()
79 #define cmpxchg(ptr, o, n) \ argument
89 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
107 #define cmpxchg_local(ptr, o, n) \ argument
111 #define cmpxchg64_local(ptr, o, n) \ argument
117 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
Duaccess.h44 #define LDD_KERNEL(ptr) BUILD_BUG() argument
45 #define LDD_USER(ptr) BUILD_BUG() argument
46 #define STD_KERNEL(x, ptr) __put_kernel_asm64(x, ptr) argument
47 #define STD_USER(x, ptr) __put_user_asm64(x, ptr) argument
50 #define LDD_KERNEL(ptr) __get_kernel_asm("ldd", ptr) argument
51 #define LDD_USER(ptr) __get_user_asm("ldd", ptr) argument
52 #define STD_KERNEL(x, ptr) __put_kernel_asm("std", x, ptr) argument
53 #define STD_USER(x, ptr) __put_user_asm("std", x, ptr) argument
85 #define __get_user(x, ptr) \ argument
113 #define __get_kernel_asm(ldx, ptr) \ argument
[all …]
/arch/x86/include/asm/
Dcmpxchg.h41 #define __xchg_op(ptr, arg, op, lock) \ argument
77 #define xchg(ptr, v) __xchg_op((ptr), (v), xchg, "") argument
84 #define __raw_cmpxchg(ptr, old, new, size, lock) \ argument
132 #define __cmpxchg(ptr, old, new, size) \ argument
135 #define __sync_cmpxchg(ptr, old, new, size) \ argument
138 #define __cmpxchg_local(ptr, old, new, size) \ argument
147 #define cmpxchg(ptr, old, new) \ argument
150 #define sync_cmpxchg(ptr, old, new) \ argument
153 #define cmpxchg_local(ptr, old, new) \ argument
164 #define __xadd(ptr, inc, lock) __xchg_op((ptr), (inc), xadd, lock) argument
[all …]
Dcmpxchg_32.h23 static inline void set_64bit(volatile u64 *ptr, u64 value) in set_64bit()
38 #define cmpxchg64(ptr, o, n) \ argument
41 #define cmpxchg64_local(ptr, o, n) \ argument
46 static inline u64 __cmpxchg64(volatile u64 *ptr, u64 old, u64 new) in __cmpxchg64()
59 static inline u64 __cmpxchg64_local(volatile u64 *ptr, u64 old, u64 new) in __cmpxchg64_local()
78 #define cmpxchg64(ptr, o, n) \ argument
95 #define cmpxchg64_local(ptr, o, n) \ argument
/arch/s390/include/asm/
Dbitops.h99 __bitops_word(unsigned long nr, volatile unsigned long *ptr) in __bitops_word()
108 __bitops_byte(unsigned long nr, volatile unsigned long *ptr) in __bitops_byte()
113 static inline void set_bit(unsigned long nr, volatile unsigned long *ptr) in set_bit()
134 static inline void clear_bit(unsigned long nr, volatile unsigned long *ptr) in clear_bit()
155 static inline void change_bit(unsigned long nr, volatile unsigned long *ptr) in change_bit()
177 test_and_set_bit(unsigned long nr, volatile unsigned long *ptr) in test_and_set_bit()
188 test_and_clear_bit(unsigned long nr, volatile unsigned long *ptr) in test_and_clear_bit()
199 test_and_change_bit(unsigned long nr, volatile unsigned long *ptr) in test_and_change_bit()
209 static inline void __set_bit(unsigned long nr, volatile unsigned long *ptr) in __set_bit()
217 __clear_bit(unsigned long nr, volatile unsigned long *ptr) in __clear_bit()
[all …]
/arch/blackfin/include/asm/
Dcmpxchg.h24 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, in __xchg()
49 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg()
68 #define cmpxchg(ptr, o, n) \ argument
82 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, in __xchg()
120 #define cmpxchg_local(ptr, o, n) \ argument
123 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
125 #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) argument
126 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
130 #define xchg(ptr, x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))) argument
131 #define tas(ptr) ((void)xchg((ptr), 1)) argument
/arch/arm/include/asm/
Dcmpxchg.h27 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size) in __xchg()
116 #define xchg_relaxed(ptr, x) ({ \ argument
136 #define cmpxchg_local(ptr, o, n) ({ \ argument
143 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
155 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg()
209 #define cmpxchg_relaxed(ptr,o,n) ({ \ argument
216 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
236 #define cmpxchg_local(ptr, o, n) ({ \ argument
243 static inline unsigned long long __cmpxchg64(unsigned long long *ptr, in __cmpxchg64()
268 #define cmpxchg64_relaxed(ptr, o, n) ({ \ argument
[all …]
/arch/sparc/include/asm/
Dcmpxchg_32.h17 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, int size) in __xchg()
27 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) argument
45 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg()
57 #define cmpxchg(ptr, o, n) \ argument
71 #define cmpxchg_local(ptr, o, n) \ argument
74 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
Dcmpxchg_64.h43 #define xchg(ptr,x) \ argument
52 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, in __xchg()
100 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg()
112 #define cmpxchg(ptr,o,n) \ argument
125 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
139 #define cmpxchg_local(ptr, o, n) \ argument
142 #define cmpxchg64_local(ptr, o, n) \ argument
147 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
/arch/xtensa/include/asm/
Dcmpxchg.h56 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg()
65 #define cmpxchg(ptr,o,n) \ argument
74 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
92 #define cmpxchg_local(ptr, o, n) \ argument
95 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
96 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
138 #define xchg(ptr,x) \ argument
150 __xchg(unsigned long x, volatile void * ptr, int size) in __xchg()
/arch/c6x/include/asm/
Dcmpxchg.h19 static inline unsigned int __xchg(unsigned int x, volatile void *ptr, int size) in __xchg()
47 #define xchg(ptr, x) \ argument
50 #define tas(ptr) xchg((ptr), 1) argument
59 #define cmpxchg_local(ptr, o, n) \ argument
64 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
/arch/m68k/include/asm/
Dcmpxchg.h12 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg()
43 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg()
78 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) argument
82 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
120 #define cmpxchg(ptr, o, n) \ argument
123 #define cmpxchg_local(ptr, o, n) \ argument
127 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
135 #define cmpxchg_local(ptr, o, n) \ argument
/arch/m32r/include/asm/
Dcmpxchg.h17 __xchg(unsigned long x, volatile void *ptr, int size) in __xchg()
67 #define xchg(ptr, x) \ argument
71 __xchg_local(unsigned long x, volatile void *ptr, int size) in __xchg_local()
106 #define xchg_local(ptr, x) \ argument
176 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg()
190 #define cmpxchg(ptr, o, n) \ argument
196 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
214 #define cmpxchg_local(ptr, o, n) \ argument
217 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
/arch/arc/include/asm/
Dcmpxchg.h20 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg()
50 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg()
69 #define cmpxchg(ptr, o, n) ((typeof(*(ptr)))__cmpxchg((ptr), \ argument
87 static inline unsigned long __xchg(unsigned long val, volatile void *ptr, in __xchg()
109 #define _xchg(ptr, with) ((typeof(*(ptr)))__xchg((unsigned long)(with), (ptr), \ argument
129 #define xchg(ptr, with) \ argument
142 #define xchg(ptr, with) _xchg(ptr, with) argument
/arch/ia64/include/uapi/asm/
Dcmpxchg.h29 #define __xchg(x, ptr, size) \ argument
55 #define xchg(ptr, x) \ argument
70 #define ia64_cmpxchg(sem, ptr, old, new, size) \ argument
114 #define cmpxchg_acq(ptr, o, n) \ argument
116 #define cmpxchg_rel(ptr, o, n) \ argument
129 #define cmpxchg(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) argument
130 #define cmpxchg64(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) argument
/arch/mips/include/asm/
Dcmpxchg.h121 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg()
133 #define xchg(ptr, x) \ argument
198 #define __cmpxchg(ptr, old, new, pre_barrier, post_barrier) \ argument
227 #define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_mb__before_llsc(), smp_llsc_mb()) argument
228 #define cmpxchg_local(ptr, old, new) __cmpxchg(ptr, old, new, , ) argument
231 #define cmpxchg64_local(ptr, o, n) \ argument
237 #define cmpxchg64(ptr, o, n) \ argument
244 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
245 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
/arch/avr32/include/asm/
Dcmpxchg.h17 #define xchg(ptr,x) \ argument
34 volatile void *ptr, in __xchg()
73 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg()
87 #define cmpxchg(ptr, old, new) \ argument
94 static inline unsigned long __cmpxchg_local(volatile void *ptr, in __cmpxchg_local()
108 #define cmpxchg_local(ptr, old, new) \ argument
113 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
/arch/powerpc/include/asm/
Dcmpxchg.h102 __xchg(volatile void *ptr, unsigned long x, unsigned int size) in __xchg()
117 __xchg_local(volatile void *ptr, unsigned long x, unsigned int size) in __xchg_local()
130 #define xchg(ptr,x) \ argument
136 #define xchg_local(ptr,x) \ argument
243 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg()
259 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg_local()
274 #define cmpxchg(ptr, o, n) \ argument
283 #define cmpxchg_local(ptr, o, n) \ argument
292 #define cmpxchg64(ptr, o, n) \ argument
297 #define cmpxchg64_local(ptr, o, n) \ argument
[all …]
/arch/metag/include/asm/
Dcmpxchg.h16 #define __xchg(ptr, x, size) \ argument
36 #define xchg(ptr, x) \ argument
43 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg()
54 #define cmpxchg(ptr, o, n) \ argument
/arch/sh/include/asm/
Dcmpxchg.h22 #define __xchg(ptr, x, size) \ argument
42 #define xchg(ptr,x) \ argument
49 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, in __cmpxchg()
60 #define cmpxchg(ptr,o,n) \ argument
/arch/unicore32/include/asm/
Dcmpxchg.h19 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, in __xchg()
44 #define xchg(ptr, x) \ argument
53 #define cmpxchg_local(ptr, o, n) \ argument
56 #define cmpxchg64_local(ptr, o, n) \ argument

12345678910>>...14