/linux-master/tools/virtio/linux/ |
H A D | kmemleak.h | 1 static inline void kmemleak_ignore(const void *ptr) argument
|
H A D | err.h | 13 static inline long __must_check PTR_ERR(const void *ptr) argument 15 return (long) ptr; 18 static inline long __must_check IS_ERR(const void *ptr) argument 20 return IS_ERR_VALUE((unsigned long)ptr); 23 static inline long __must_check IS_ERR_OR_NULL(const void *ptr) argument 25 return !ptr || IS_ERR_VALUE((unsigned long)ptr);
|
/linux-master/tools/testing/radix-tree/linux/ |
H A D | kmemleak.h | 1 static inline void kmemleak_update_trace(const void *ptr) { } argument
|
/linux-master/arch/powerpc/boot/ |
H A D | stdlib.c | 13 unsigned long long int strtoull(const char *ptr, char **end, int base) argument 20 while (*ptr) { 23 if (*ptr >= '0' && *ptr <= '9' && *ptr < '0' + base) 24 digit = *ptr - '0'; 25 else if (*ptr >= 'A' && *ptr < 'A' + base - 10) 26 digit = *ptr - 'A' + 10; 27 else if (*ptr > [all...] |
/linux-master/tools/testing/selftests/arm64/pauth/ |
H A D | helper.c | 6 size_t keyia_sign(size_t ptr) argument 8 asm volatile("paciza %0" : "+r" (ptr)); 9 return ptr; 12 size_t keyib_sign(size_t ptr) argument 14 asm volatile("pacizb %0" : "+r" (ptr)); 15 return ptr; 18 size_t keyda_sign(size_t ptr) argument 20 asm volatile("pacdza %0" : "+r" (ptr)); 21 return ptr; 24 size_t keydb_sign(size_t ptr) argument 30 keyg_sign(size_t ptr) argument [all...] |
/linux-master/arch/arm/mach-s3c/ |
H A D | pm-common.c | 21 * @ptr: Pointer to an array of registers. 22 * @count: Size of the ptr array. 27 void s3c_pm_do_save(struct sleep_save *ptr, int count) argument 29 for (; count > 0; count--, ptr++) { 30 ptr->val = readl_relaxed(ptr->reg); 31 S3C_PMDBG("saved %p value %08lx\n", ptr->reg, ptr->val); 37 * @ptr: Pointer to an array of registers. 38 * @count: Size of the ptr arra 46 s3c_pm_do_restore(const struct sleep_save *ptr, int count) argument 69 s3c_pm_do_restore_core(const struct sleep_save *ptr, int count) argument [all...] |
/linux-master/drivers/gpu/drm/radeon/ |
H A D | atom-bits.h | 28 static inline uint8_t get_u8(void *bios, int ptr) argument 30 return ((unsigned char *)bios)[ptr]; 32 #define U8(ptr) get_u8(ctx->ctx->bios, (ptr)) 33 #define CU8(ptr) get_u8(ctx->bios, (ptr)) 34 static inline uint16_t get_u16(void *bios, int ptr) argument 36 return get_u8(bios, ptr)|(((uint16_t)get_u8(bios, ptr+1))<<8); 38 #define U16(ptr) get_u1 40 get_u32(void *bios, int ptr) argument [all...] |
/linux-master/drivers/gpu/drm/amd/include/ |
H A D | atom-bits.h | 28 static inline uint8_t get_u8(void *bios, int ptr) argument 30 return ((unsigned char *)bios)[ptr]; 32 #define U8(ptr) get_u8(ctx->ctx->bios, (ptr)) 33 #define CU8(ptr) get_u8(ctx->bios, (ptr)) 34 static inline uint16_t get_u16(void *bios, int ptr) argument 36 return get_u8(bios, ptr)|(((uint16_t)get_u8(bios, ptr+1))<<8); 38 #define U16(ptr) get_u1 40 get_u32(void *bios, int ptr) argument [all...] |
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | err.h | 8 static inline int IS_ERR_OR_NULL(const void *ptr) argument 10 return !ptr || IS_ERR_VALUE((unsigned long)ptr); 13 static inline long PTR_ERR(const void *ptr) argument 15 return (long) ptr;
|
/linux-master/arch/arm64/include/asm/ |
H A D | compiler.h | 11 #define xpaclri(ptr) \ 13 register unsigned long __xpaclri_ptr asm("x30") = (ptr); \ 24 #define ptrauth_strip_kernel_insn_pac(ptr) xpaclri(ptr) 26 #define ptrauth_strip_kernel_insn_pac(ptr) (ptr) 30 #define ptrauth_strip_user_insn_pac(ptr) xpaclri(ptr) 32 #define ptrauth_strip_user_insn_pac(ptr) (ptr) [all...] |
/linux-master/tools/include/linux/ |
H A D | zalloc.h | 8 void __zfree(void **ptr); 10 #define zfree(ptr) __zfree((void **)(ptr))
|
H A D | err.h | 40 static inline long __must_check PTR_ERR(__force const void *ptr) argument 42 return (long) ptr; 45 static inline bool __must_check IS_ERR(__force const void *ptr) argument 47 return IS_ERR_VALUE((unsigned long)ptr); 50 static inline bool __must_check IS_ERR_OR_NULL(__force const void *ptr) argument 52 return unlikely(!ptr) || IS_ERR_VALUE((unsigned long)ptr); 55 static inline int __must_check PTR_ERR_OR_ZERO(__force const void *ptr) argument 57 if (IS_ERR(ptr)) 58 return PTR_ERR(ptr); 70 ERR_CAST(__force const void *ptr) argument [all...] |
/linux-master/arch/hexagon/include/asm/ |
H A D | cmpxchg.h | 14 * @ptr: pointer to memory 23 __arch_xchg(unsigned long x, volatile void *ptr, int size) argument 35 : "r" (ptr), "r" (x) 45 #define arch_xchg(ptr, v) ((__typeof__(*(ptr)))__arch_xchg((unsigned long)(v), (ptr), \ 46 sizeof(*(ptr)))) 49 * see rt-mutex-design.txt; cmpxchg supposedly checks if *ptr == A and swaps. 54 #define arch_cmpxchg(ptr, old, new) \ 56 __typeof__(ptr) __pt [all...] |
/linux-master/include/linux/ |
H A D | err.h | 46 * @ptr: An error pointer. 47 * Return: The error code within @ptr. 49 static inline long __must_check PTR_ERR(__force const void *ptr) argument 51 return (long) ptr; 56 * @ptr: The pointer to check. 57 * Return: true if @ptr is an error pointer, false otherwise. 59 static inline bool __must_check IS_ERR(__force const void *ptr) argument 61 return IS_ERR_VALUE((unsigned long)ptr); 66 * @ptr: The pointer to check. 70 static inline bool __must_check IS_ERR_OR_NULL(__force const void *ptr) argument 82 ERR_CAST(__force const void *ptr) argument 105 PTR_ERR_OR_ZERO(__force const void *ptr) argument [all...] |
H A D | container_of.h | 12 * @ptr: the pointer to the member. 16 * WARNING: any const qualifier of @ptr is lost. 18 #define container_of(ptr, type, member) ({ \ 19 void *__mptr = (void *)(ptr); \ 20 static_assert(__same_type(*(ptr), ((type *)0)->member) || \ 21 __same_type(*(ptr), void), \ 28 * @ptr: the pointer to the member 32 #define container_of_const(ptr, type, member) \ 33 _Generic(ptr, \ 34 const typeof(*(ptr)) * [all...] |
/linux-master/arch/riscv/include/asm/ |
H A D | cmpxchg.h | 13 #define __xchg_relaxed(ptr, new, size) \ 15 __typeof__(ptr) __ptr = (ptr); \ 17 __typeof__(*(ptr)) __ret; \ 39 #define arch_xchg_relaxed(ptr, x) \ 41 __typeof__(*(ptr)) _x_ = (x); \ 42 (__typeof__(*(ptr))) __xchg_relaxed((ptr), \ 43 _x_, sizeof(*(ptr))); \ 46 #define __xchg_acquire(ptr, ne [all...] |
/linux-master/arch/sparc/include/asm/ |
H A D | cmpxchg_32.h | 18 static __always_inline unsigned long __arch_xchg(unsigned long x, __volatile__ void * ptr, int size) argument 22 return __xchg_u32(ptr, x); 28 #define arch_xchg(ptr,x) ({(__typeof__(*(ptr)))__arch_xchg((unsigned long)(x),(ptr),sizeof(*(ptr)));}) 46 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) argument 50 return __cmpxchg_u32((u32 *)ptr, (u32)old, (u32)new_); 58 #define arch_cmpxchg(ptr, o, n) \ 60 __typeof__(*(ptr)) _o [all...] |
/linux-master/arch/parisc/lib/ |
H A D | bitops.c | 21 unsigned long notrace __xchg64(unsigned long x, volatile unsigned long *ptr) argument 25 _atomic_spin_lock_irqsave(ptr, flags); 26 temp = *ptr; 27 *ptr = x; 28 _atomic_spin_unlock_irqrestore(ptr, flags); 33 unsigned long notrace __xchg32(int x, volatile int *ptr) argument 38 _atomic_spin_lock_irqsave(ptr, flags); 39 temp = (long) *ptr; /* XXX - sign extension wanted? */ 40 *ptr = x; 41 _atomic_spin_unlock_irqrestore(ptr, flag 46 __xchg8(char x, volatile char *ptr) argument 59 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new) argument 71 __cmpxchg_u32(volatile unsigned int *ptr, unsigned int old, unsigned int new) argument 83 __cmpxchg_u8(volatile u8 *ptr, u8 old, u8 new) argument [all...] |
/linux-master/arch/alpha/include/asm/ |
H A D | cmpxchg.h | 13 #define xchg_local(ptr, x) \ 15 __typeof__(*(ptr)) _x_ = (x); \ 16 (__typeof__(*(ptr))) __arch_xchg_local((ptr), (unsigned long)_x_,\ 17 sizeof(*(ptr))); \ 20 #define arch_cmpxchg_local(ptr, o, n) \ 22 __typeof__(*(ptr)) _o_ = (o); \ 23 __typeof__(*(ptr)) _n_ = (n); \ 24 (__typeof__(*(ptr))) __cmpxchg_local((ptr), (unsigne [all...] |
/linux-master/drivers/media/pci/zoran/ |
H A D | zr36016.c | 33 static u8 zr36016_read(struct zr36016 *ptr, u16 reg) argument 36 struct zoran *zr = videocodec_to_zoran(ptr->codec); 39 if (ptr->codec->master_data->readreg) 40 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xFF; 42 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); 44 zrdev_dbg(zr, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); 49 static void zr36016_write(struct zr36016 *ptr, u16 reg, u8 value) argument 51 struct zoran *zr = videocodec_to_zoran(ptr->codec); 53 zrdev_dbg(zr, "%s: writing 0x%02x to 0x%04x\n", ptr 68 zr36016_readi(struct zr36016 *ptr, u16 reg) argument 86 zr36016_writei(struct zr36016 *ptr, u16 reg, u8 value) argument 105 zr36016_read_version(struct zr36016 *ptr) argument 116 zr36016_basic_test(struct zr36016 *ptr) argument 154 zr36016_init(struct zr36016 *ptr) argument 198 struct zr36016 *ptr = (struct zr36016 *)codec->data; local 216 struct zr36016 *ptr = (struct zr36016 *)codec->data; local 257 struct zr36016 *ptr = (struct zr36016 *)codec->data; local 308 struct zr36016 *ptr = codec->data; local 336 struct zr36016 *ptr; local [all...] |
/linux-master/arch/parisc/include/asm/ |
H A D | cmpxchg.h | 25 __arch_xchg(unsigned long x, volatile void *ptr, int size) argument 29 case 8: return __xchg64(x, (volatile unsigned long *) ptr); 31 case 4: return __xchg32((int) x, (volatile int *) ptr); 32 case 1: return __xchg8((char) x, (volatile char *) ptr); 40 ** o need to test sizeof(*ptr) to avoid clearing adjacent bytes 47 #define arch_xchg(ptr, x) \ 49 __typeof__(*(ptr)) __ret; \ 50 __typeof__(*(ptr)) _x_ = (x); \ 51 __ret = (__typeof__(*(ptr))) \ 52 __arch_xchg((unsigned long)_x_, (ptr), sizeo 67 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) argument 91 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new_, int size) argument [all...] |
/linux-master/tools/testing/selftests/arm64/tags/ |
H A D | tags_test.c | 11 #define SET_TAG(ptr, tag) (((uint64_t)(ptr) & ~SHIFT_TAG(0xff)) | \ 18 struct utsname *ptr; local 23 ptr = (struct utsname *)malloc(sizeof(*ptr)); 26 ptr = (struct utsname *)SET_TAG(ptr, tag); 27 err = uname(ptr); 28 free(ptr);
|
/linux-master/arch/arm/include/asm/ |
H A D | cmpxchg.h | 29 __arch_xchg(unsigned long x, volatile void *ptr, int size) argument 40 prefetchw((const void *)ptr); 52 : "r" (x), "r" (ptr) 62 : "r" (x), "r" (ptr) 73 : "r" (x), "r" (ptr) 82 ret = *(volatile unsigned char *)ptr; 83 *(volatile unsigned char *)ptr = x; 89 ret = *(volatile unsigned long *)ptr; 90 *(volatile unsigned long *)ptr = x; 98 : "r" (x), "r" (ptr) 157 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) argument 218 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) argument 245 __cmpxchg64(unsigned long long *ptr, unsigned long long old, unsigned long long new) argument [all...] |
/linux-master/arch/x86/include/asm/ |
H A D | cmpxchg_32.h | 11 #define arch_cmpxchg64(ptr, o, n) \ 12 ((__typeof__(*(ptr)))__cmpxchg64((ptr), (unsigned long long)(o), \ 14 #define arch_cmpxchg64_local(ptr, o, n) \ 15 ((__typeof__(*(ptr)))__cmpxchg64_local((ptr), (unsigned long long)(o), \ 17 #define arch_try_cmpxchg64(ptr, po, n) \ 18 __try_cmpxchg64((ptr), (unsigned long long *)(po), \ 22 static inline u64 __cmpxchg64(volatile u64 *ptr, u64 old, u64 new) argument 27 "+m" (*ptr) 35 __cmpxchg64_local(volatile u64 *ptr, u64 old, u64 new) argument 48 __try_cmpxchg64(volatile u64 *ptr, u64 *pold, u64 new) argument [all...] |
/linux-master/arch/arc/include/asm/ |
H A D | cmpxchg.h | 18 * if (*ptr == @old) 19 * *ptr = @new 21 #define __cmpxchg(ptr, old, new) \ 23 __typeof__(*(ptr)) _prev; \ 32 : "r"(ptr), /* Not "m": llock only supports reg */ \ 41 #define arch_cmpxchg_relaxed(ptr, old, new) \ 43 __typeof__(ptr) _p_ = (ptr); \ 44 __typeof__(*(ptr)) _o_ = (old); \ 45 __typeof__(*(ptr)) _n [all...] |