Home
last modified time | relevance | path

Searched refs:__ptr (Results 1 – 18 of 18) sorted by relevance

/linux-4.1.27/arch/x86/include/asm/
Dcmpxchg.h93 volatile u8 *__ptr = (volatile u8 *)(ptr); \
95 : "=a" (__ret), "+m" (*__ptr) \
102 volatile u16 *__ptr = (volatile u16 *)(ptr); \
104 : "=a" (__ret), "+m" (*__ptr) \
111 volatile u32 *__ptr = (volatile u32 *)(ptr); \
113 : "=a" (__ret), "+m" (*__ptr) \
120 volatile u64 *__ptr = (volatile u64 *)(ptr); \
122 : "=a" (__ret), "+m" (*__ptr) \
Dprocessor.h864 unsigned long __ptr = (unsigned long)task_stack_page(task); \
865 __ptr += THREAD_SIZE - TOP_OF_KERNEL_STACK_PADDING; \
866 ((struct pt_regs *)__ptr) - 1; \
/linux-4.1.27/include/linux/
Dcompiler-intel.h25 ({ unsigned long __ptr; \
26 __ptr = (unsigned long) (ptr); \
27 (typeof(ptr)) (__ptr + (off)); })
Drculist.h251 typeof(*ptr) __rcu *__ptr = (typeof(*ptr) __rcu __force *)ptr; \
252 container_of((typeof(ptr))rcu_dereference_raw(__ptr), type, member); \
290 struct list_head *__ptr = (ptr); \
291 struct list_head *__next = ACCESS_ONCE(__ptr->next); \
292 likely(__ptr != __next) ? list_entry_rcu(__next, type, member) : NULL; \
Dcompiler-gcc.h50 ({ unsigned long __ptr; \
51 __asm__ ("" : "=r"(__ptr) : "0"(ptr)); \
52 (typeof(ptr)) (__ptr + (off)); })
Dsocket.h128 struct cmsghdr * __ptr; in __cmsg_nxthdr() local
130 __ptr = (struct cmsghdr*)(((unsigned char *) __cmsg) + CMSG_ALIGN(__cmsg->cmsg_len)); in __cmsg_nxthdr()
131 if ((unsigned long)((char*)(__ptr+1) - (char *) __ctl) > __size) in __cmsg_nxthdr()
134 return __ptr; in __cmsg_nxthdr()
Dcompiler.h183 ({ unsigned long __ptr; \
184 __ptr = (unsigned long) (ptr); \
185 (typeof(ptr)) (__ptr + (off)); })
/linux-4.1.27/scripts/genksyms/
Dgenksyms.h81 #define xmalloc(size) ({ void *__ptr = malloc(size); \
82 if(!__ptr && size != 0) { \
86 __ptr; })
/linux-4.1.27/arch/frv/include/asm/
Duaccess.h25 #define __ptr(x) ((unsigned long __force *)(x)) macro
154 : "m" (*__ptr(ptr)), constraint (x), "i"(-EFAULT), "0"(err) \
165 : "m" (*__ptr(ptr)), con (x) \
243 : "m" (*__ptr(ptr)), "i"(-EFAULT), "0"(err) \
253 : "m" (*__ptr(ptr)))
/linux-4.1.27/arch/mips/include/asm/
Dcmpxchg.h202 __typeof__(ptr) __ptr = (ptr); \
209 switch (sizeof(*(__ptr))) { \
211 __res = __cmpxchg_asm("ll", "sc", __ptr, __old, __new); \
215 __res = __cmpxchg_asm("lld", "scd", __ptr, \
/linux-4.1.27/arch/s390/include/asm/
Dcmpxchg.h27 __typeof__(ptr) __ptr = (ptr); \
30 __old = *__ptr; \
31 } while (!__sync_bool_compare_and_swap(__ptr, __old, x)); \
/linux-4.1.27/arch/hexagon/include/asm/
Dcmpxchg.h71 __typeof__(ptr) __ptr = (ptr); \
84 : "r" (__ptr), "r" (__old), "r" (__new) \
/linux-4.1.27/arch/m68k/include/asm/
Duaccess_no.h89 #define __ptr(x) ((unsigned long *)(x)) macro
94 :"d" (x),"m" (*__ptr(ptr)) : "memory")
128 : "m" (*__ptr(ptr)))
Dmotorola_pgtable.h141 unsigned long *__ptr = pmdp->pmd; \
144 *__ptr++ = 0; \
/linux-4.1.27/arch/blackfin/include/asm/
Duaccess.h122 #define __ptr(x) ((unsigned long __force *)(x)) macro
127 :"d" (x), "a" (__ptr(p)) : "memory")
163 : "a" (__ptr(ptr))); \
/linux-4.1.27/drivers/net/ethernet/smsc/
Dsmc91x.h1023 void *__ptr = (p); \
1026 if (__len >= 2 && (unsigned long)__ptr & 2) { \
1028 SMC_outsw(ioaddr, DATA_REG(lp), __ptr, 1); \
1029 __ptr += 2; \
1033 SMC_outsl(__ioaddr, DATA_REG(lp), __ptr, __len>>2); \
1035 __ptr += (__len & ~3); \
1036 SMC_outsw(ioaddr, DATA_REG(lp), __ptr, 1); \
1047 void *__ptr = (p); \
1050 if ((unsigned long)__ptr & 2) { \
1064 __ptr -= 2; \
[all …]
/linux-4.1.27/arch/s390/kernel/
Duprobes.c181 __typeof__(ptr) __ptr = (ptr); \
186 else if ((u64 __force)__ptr & mask) \
188 else if (put_user(*(input), __ptr)) \
192 (void __force *)__ptr, \
/linux-4.1.27/drivers/net/ethernet/sun/
Dsunhme.c254 #define hme_dma_map(__hp, __ptr, __size, __dir) \ argument
255 ((__hp)->dma_map((__hp)->dma_dev, (__ptr), (__size), (__dir)))
280 #define hme_dma_map(__hp, __ptr, __size, __dir) \ argument
281 dma_map_single((__hp)->dma_dev, (__ptr), (__size), (__dir))
308 #define hme_dma_map(__hp, __ptr, __size, __dir) \ argument
309 pci_map_single((__hp)->dma_dev, (__ptr), (__size), (__dir))