Searched defs:ptr (Results 1 - 25 of 277) sorted by relevance

1234567891011>>

/arch/arm/plat-samsung/
H A Dpm-common.c25 * @ptr: Pointer to an array of registers.
26 * @count: Size of the ptr array.
31 void s3c_pm_do_save(struct sleep_save *ptr, int count) argument
33 for (; count > 0; count--, ptr++) {
34 ptr->val = __raw_readl(ptr->reg);
35 S3C_PMDBG("saved %p value %08lx\n", ptr->reg, ptr->val);
41 * @ptr: Pointer to an array of registers.
42 * @count: Size of the ptr arra
50 s3c_pm_do_restore(const struct sleep_save *ptr, int count) argument
71 s3c_pm_do_restore_core(const struct sleep_save *ptr, int count) argument
[all...]
/arch/ia64/include/asm/
H A Dsections.h30 static inline void *dereference_function_descriptor(void *ptr) argument
32 struct fdesc *desc = ptr;
36 ptr = p;
37 return ptr;
/arch/unicore32/include/mach/
H A Duncompress.h22 static void arch_decomp_puts(const char *ptr) argument
26 while ((c = *ptr++) != '\0') {
/arch/powerpc/boot/
H A Dstdlib.c16 unsigned long long int strtoull(const char *ptr, char **end, int base) argument
23 while (*ptr) {
26 if (*ptr >= '0' && *ptr <= '9' && *ptr < '0' + base)
27 digit = *ptr - '0';
28 else if (*ptr >= 'A' && *ptr < 'A' + base - 10)
29 digit = *ptr - 'A' + 10;
30 else if (*ptr >
[all...]
/arch/powerpc/lib/
H A Ddevres.c28 void __iomem **ptr, *addr; local
30 ptr = devres_alloc(devm_ioremap_release, sizeof(*ptr), GFP_KERNEL);
31 if (!ptr)
36 *ptr = addr;
37 devres_add(dev, ptr);
39 devres_free(ptr);
/arch/x86/include/asm/
H A Dcmpxchg_64.h4 static inline void set_64bit(volatile u64 *ptr, u64 val) argument
6 *ptr = val;
9 #define cmpxchg64(ptr, o, n) \
11 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
12 cmpxchg((ptr), (o), (n)); \
15 #define cmpxchg64_local(ptr, o, n) \
17 BUILD_BUG_ON(sizeof(*(ptr)) != 8); \
18 cmpxchg_local((ptr), (o), (n)); \
/arch/arm64/include/asm/
H A Dtraps.h37 static inline int in_exception_text(unsigned long ptr) argument
42 return ptr >= (unsigned long)&__exception_text_start &&
43 ptr < (unsigned long)&__exception_text_end;
/arch/frv/mm/
H A Dhighmem.c35 struct page *kmap_atomic_to_page(void *ptr) argument
37 return virt_to_page(ptr);
/arch/hexagon/include/asm/
H A Dcmpxchg.h28 * @ptr: pointer to memory
36 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, argument
49 : "r" (ptr), "r" (x)
59 #define xchg(ptr, v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v), (ptr), \
60 sizeof(*(ptr))))
63 * see rt-mutex-design.txt; cmpxchg supposedly checks if *ptr == A and swaps.
69 #define cmpxchg(ptr, old, new) \
71 __typeof__(ptr) __pt
[all...]
/arch/metag/include/asm/
H A Dcmpxchg.h16 #define __xchg(ptr, x, size) \
19 volatile void *__xchg_ptr = (ptr); \
36 #define xchg(ptr, x) \
37 ((__typeof__(*(ptr)))__xchg((ptr), (unsigned long)(x), sizeof(*(ptr))))
43 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, argument
48 return __cmpxchg_u32(ptr, old, new);
56 #define cmpxchg(ptr, o, n) \
58 __typeof__(*(ptr)) _o
[all...]
/arch/microblaze/include/asm/
H A Dcmpxchg.h6 void __bad_xchg(volatile void *ptr, int size);
8 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, argument
17 ret = *(volatile unsigned char *)ptr;
18 *(volatile unsigned char *)ptr = x;
24 ret = *(volatile unsigned long *)ptr;
25 *(volatile unsigned long *)ptr = x;
29 __bad_xchg(ptr, size), ret = 0;
36 #define xchg(ptr, x) \
37 ((__typeof__(*(ptr))) __xchg((unsigned long)(x), (ptr), sizeo
[all...]
/arch/mips/include/asm/octeon/
H A Dcvmx-packet.h39 void *ptr; member in union:cvmx_buf_ptr
/arch/s390/include/asm/
H A Dfacility.h18 unsigned char *ptr; local
22 ptr = (unsigned char *) facilities + (nr >> 3);
23 return (*ptr & (0x80 >> (nr & 7))) != 0;
/arch/sh/include/asm/
H A Dcmpxchg.h22 #define __xchg(ptr, x, size) \
25 volatile void *__xchg_ptr = (ptr); \
42 #define xchg(ptr,x) \
43 ((__typeof__(*(ptr)))__xchg((ptr),(unsigned long)(x), sizeof(*(ptr))))
51 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, argument
56 return __cmpxchg_u32(ptr, old, new);
62 #define cmpxchg(ptr,o,n) \
64 __typeof__(*(ptr)) _o
[all...]
/arch/um/sys-ia64/sysdep/
H A Dskas_ptrace.h16 void *ptr; member in struct:ptrace_ldt
/arch/um/sys-ppc/shared/sysdep/
H A Dskas_ptrace.h16 void *ptr; member in struct:ptrace_ldt
/arch/unicore32/include/asm/
H A Dcmpxchg.h19 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, argument
28 : "r" (x), "r" (ptr)
34 : "r" (x), "r" (ptr)
44 #define xchg(ptr, x) \
45 ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))
53 #define cmpxchg_local(ptr, o, n) \
54 ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), \
[all...]
/arch/x86/um/shared/sysdep/
H A Dskas_ptrace.h16 void *ptr; member in struct:ptrace_ldt
/arch/alpha/include/asm/
H A Dxchg.h109 ____xchg(, volatile void *ptr, unsigned long x, int size) argument
113 return ____xchg(_u8, ptr, x);
115 return ____xchg(_u16, ptr, x);
117 return ____xchg(_u32, ptr, x);
119 return ____xchg(_u64, ptr, x);
241 ____cmpxchg(, volatile void *ptr, unsigned long old, unsigned long new, argument
246 return ____cmpxchg(_u8, ptr, old, new);
248 return ____cmpxchg(_u16, ptr, old, new);
250 return ____cmpxchg(_u32, ptr, old, new);
252 return ____cmpxchg(_u64, ptr, ol
[all...]
/arch/arc/include/asm/
H A Dchecksum.h43 const void *ptr = iph; local
61 : "=&r"(sum), "=r"(tmp), "=&r"(tmp2), "+&r" (ptr)
H A Dcmpxchg.h18 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) argument
29 : "r"(ptr), "ir"(expected),
39 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) argument
43 volatile unsigned long *p = ptr;
55 #define cmpxchg(ptr, o, n) ((typeof(*(ptr)))__cmpxchg((ptr), \
73 static inline unsigned long __xchg(unsigned long val, volatile void *ptr, argument
83 : "r"(ptr)
91 #define _xchg(ptr, wit
[all...]
/arch/arm/include/asm/
H A Dtraps.h22 static inline int __in_irqentry_text(unsigned long ptr) argument
27 return ptr >= (unsigned long)&__irqentry_text_start &&
28 ptr < (unsigned long)&__irqentry_text_end;
31 static inline int __in_irqentry_text(unsigned long ptr) argument
37 static inline int in_exception_text(unsigned long ptr) argument
43 in = ptr >= (unsigned long)&__exception_text_start &&
44 ptr < (unsigned long)&__exception_text_end;
46 return in ? : __in_irqentry_text(ptr);
/arch/arm/kernel/
H A Dsuspend.c59 void __cpu_suspend_save(u32 *ptr, u32 ptrsz, u32 sp, u32 *save_ptr) argument
61 u32 *ctx = ptr;
63 *save_ptr = virt_to_phys(ptr);
66 *ptr++ = virt_to_phys(idmap_pgd);
67 *ptr++ = sp;
68 *ptr++ = virt_to_phys(cpu_do_resume);
70 cpu_do_suspend(ptr);
76 * save_ptr and ptr are cleaned to main memory,
/arch/arm/mm/
H A Dcopypage-fa.c61 void *ptr, *kaddr = kmap_atomic(page); local
77 : "=r" (ptr)
H A Dcopypage-feroceon.c85 void *ptr, *kaddr = kmap_atomic(page); local
102 : "=r" (ptr)

Completed in 553 milliseconds

1234567891011>>