Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 1893) sorted by relevance

12345678910>>...76

/linux-5.3.11/arch/riscv/include/asm/
H A Dcmpxchg.h16 __typeof__(ptr) __ptr = (ptr); \
43 (__typeof__(*(ptr))) __xchg_relaxed((ptr), \
49 __typeof__(ptr) __ptr = (ptr); \
78 (__typeof__(*(ptr))) __xchg_acquire((ptr), \
84 __typeof__(ptr) __ptr = (ptr); \
119 __typeof__(ptr) __ptr = (ptr); \
146 (__typeof__(*(ptr))) __xchg((ptr), _x_, sizeof(*(ptr))); \
168 __typeof__(ptr) __ptr = (ptr); \
212 __typeof__(ptr) __ptr = (ptr); \
258 __typeof__(ptr) __ptr = (ptr); \
[all …]
/linux-5.3.11/arch/arm/include/asm/
H A Dcmpxchg.h51 : "r" (x), "r" (ptr) in __xchg()
61 : "r" (x), "r" (ptr) in __xchg()
72 : "r" (x), "r" (ptr) in __xchg()
97 : "r" (x), "r" (ptr) in __xchg()
118 (__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), \
138 (__typeof(*ptr))__cmpxchg_local_generic((ptr), \
211 (__typeof__(*(ptr)))__cmpxchg((ptr), \
238 (__typeof(*ptr))__cmpxchg_local((ptr), \
251 prefetchw(ptr); in __cmpxchg64()
270 (__typeof__(*(ptr)))__cmpxchg64((ptr), \
[all …]
/linux-5.3.11/lib/
H A Dtest_kasan.c29 char *ptr; in kmalloc_oob_right() local
34 if (!ptr) { in kmalloc_oob_right()
40 kfree(ptr); in kmalloc_oob_right()
45 char *ptr; in kmalloc_oob_left() local
50 if (!ptr) { in kmalloc_oob_left()
55 *ptr = *(ptr - 1); in kmalloc_oob_left()
56 kfree(ptr); in kmalloc_oob_left()
61 char *ptr; in kmalloc_node_oob_right() local
66 if (!ptr) { in kmalloc_node_oob_right()
78 char *ptr; in kmalloc_pagealloc_oob_right() local
[all …]
/linux-5.3.11/arch/csky/include/asm/
H A Duaccess.h56 #define put_user(x, ptr) \ argument
57 __put_user_check((x), (ptr), sizeof(*(ptr)))
60 __put_user_nocheck((x), (ptr), sizeof(*(ptr)))
65 __get_user_check((x), (ptr), sizeof(*(ptr)))
68 __get_user_nocheck((x), (ptr), sizeof(*(ptr)))
73 typeof(*(ptr)) *__pu_addr = (ptr); \
74 typeof(*(ptr)) __pu_val = (typeof(*(ptr)))(x); \
84 typeof(*(ptr)) *__pu_addr = (ptr); \
85 typeof(*(ptr)) __pu_val = (typeof(*(ptr)))(x); \
178 typeof(*(ptr))src = (typeof(*(ptr)))x; \
[all …]
/linux-5.3.11/arch/x86/include/asm/
H A Duaccess.h175 : "0" (ptr), "i" (sizeof(*(ptr)))); \
182 : "0" ((typeof(*(ptr)))(x)), "c" (ptr) : "ebx")
207 : "A" ((typeof(*(ptr)))(x)), "c" (ptr) : "ebx")
320 __typeof__(ptr) __ptr = (ptr); \
433 __typeof__(ptr) __pu_ptr = (ptr); \
447 __typeof__(ptr) __gu_ptr = (ptr); \
529 __get_user_nocheck((x), (ptr), sizeof(*(ptr)))
553 __put_user_nocheck((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
575 __put_user_size_ex((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
674 access_ok((ptr), sizeof(*(ptr))) ? \
[all …]
/linux-5.3.11/arch/xtensa/variants/test_kc705_hifi/include/variant/
H A Dtie-asm.h83 s32i \at1, \ptr, .Lxchal_ofs_+0
93 s32i \at1, \ptr, .Lxchal_ofs_+0
95 s32i \at1, \ptr, .Lxchal_ofs_+4
105 s32i \at1, \ptr, .Lxchal_ofs_+0
107 s32i \at1, \ptr, .Lxchal_ofs_+4
109 s32i \at1, \ptr, .Lxchal_ofs_+8
148 l32i \at1, \ptr, .Lxchal_ofs_+0
227 addi \ptr, \ptr, 64
236 addi \ptr, \ptr, 64
284 addi \ptr, \ptr, 64
[all …]
/linux-5.3.11/arch/powerpc/include/asm/
H A Dcmpxchg.h163 return __xchg_u8_local(ptr, x); in __xchg_local()
165 return __xchg_u16_local(ptr, x); in __xchg_local()
198 (__typeof__(*(ptr))) __xchg_local((ptr), \
205 (__typeof__(*(ptr))) __xchg_relaxed((ptr), \
485 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
494 (__typeof__(*(ptr))) __cmpxchg_local((ptr), (unsigned long)_o_, \
502 (__typeof__(*(ptr))) __cmpxchg_relaxed((ptr), \
504 sizeof(*(ptr))); \
511 (__typeof__(*(ptr))) __cmpxchg_acquire((ptr), \
513 sizeof(*(ptr))); \
[all …]
H A Duaccess.h89 __get_user_check((x), (ptr), sizeof(*(ptr)))
91 __put_user_check((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
94 __get_user_nocheck((x), (ptr), sizeof(*(ptr)))
96 __put_user_nocheck((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
99 __get_user_nosleep((x), (ptr), sizeof(*(ptr)))
101 __put_user_nosleep((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)))
158 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
169 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
179 __typeof__(*(ptr)) __user *__pu_addr = (ptr); \
267 __typeof__(*(ptr)) __user *__gu_addr = (ptr); \
[all …]
/linux-5.3.11/arch/parisc/include/asm/
H A Dcmpxchg.h47 #define xchg(ptr, x) \ argument
48 ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))
73 #define cmpxchg(ptr, o, n) \ argument
75 __typeof__(*(ptr)) _o_ = (o); \
76 __typeof__(*(ptr)) _n_ = (n); \
77 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
101 #define cmpxchg_local(ptr, o, n) \ argument
102 ((__typeof__(*(ptr)))__cmpxchg_local((ptr), (unsigned long)(o), \
108 cmpxchg_local((ptr), (o), (n)); \
111 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
[all …]
H A Duaccess.h36 #define LDD_USER(val, ptr) __get_user_asm64(val, ptr) argument
37 #define STD_USER(x, ptr) __put_user_asm64(x, ptr) argument
39 #define LDD_USER(val, ptr) __get_user_asm(val, "ldd", ptr) argument
40 #define STD_USER(x, ptr) __put_user_asm("std", x, ptr) argument
87 switch (sizeof(*(ptr))) { \
112 : "r"(ptr), "1"(__gu_err)); \
123 __typeof__(*(ptr)) t; \
133 : "r"(ptr), "1"(__gu_err)); \
144 __typeof__(*(ptr)) __x = (__typeof__(*(ptr)))(x); \
146 switch (sizeof(*(ptr))) { \
[all …]
/linux-5.3.11/drivers/net/ethernet/neterion/vxge/
H A Dvxge-ethtool.c242 u64 *ptr = tmp_stats; in vxge_get_ethtool_stats() local
276 *ptr++ = 0; in vxge_get_ethtool_stats()
374 *ptr++ = 0; in vxge_get_ethtool_stats()
390 *ptr++ = 0; in vxge_get_ethtool_stats()
488 *ptr++ = 0; in vxge_get_ethtool_stats()
532 *ptr++ = 0; in vxge_get_ethtool_stats()
540 ptr += VXGE_HW_VPATH_STATS_LEN; in vxge_get_ethtool_stats()
572 *ptr++ = 0; in vxge_get_ethtool_stats()
575 *ptr++ = vdev->stats.link_up; in vxge_get_ethtool_stats()
576 *ptr++ = vdev->stats.link_down; in vxge_get_ethtool_stats()
[all …]
/linux-5.3.11/arch/s390/include/asm/
H A Dbitops.h102 volatile unsigned long *ptr) in arch_change_bit() argument
124 volatile unsigned long *ptr) in arch_test_and_set_bit() argument
135 volatile unsigned long *ptr) in arch_test_and_clear_bit() argument
164 volatile unsigned long *ptr) in arch___clear_bit() argument
180 volatile unsigned long *ptr) in arch___test_and_set_bit() argument
225 if (arch_test_bit(nr, ptr)) in arch_test_and_set_bit_lock()
231 volatile unsigned long *ptr) in arch_clear_bit_unlock() argument
234 arch_clear_bit(nr, ptr); in arch_clear_bit_unlock()
238 volatile unsigned long *ptr) in arch___clear_bit_unlock() argument
241 arch___clear_bit(nr, ptr); in arch___clear_bit_unlock()
[all …]
/linux-5.3.11/arch/alpha/include/asm/
H A Dcmpxchg.h13 #define xchg_local(ptr, x) \ argument
15 __typeof__(*(ptr)) _x_ = (x); \
16 (__typeof__(*(ptr))) __xchg_local((ptr), (unsigned long)_x_, \
17 sizeof(*(ptr))); \
24 (__typeof__(*(ptr))) __cmpxchg_local((ptr), (unsigned long)_o_, \
26 sizeof(*(ptr))); \
45 #define xchg(ptr, x) \ argument
47 __typeof__(*(ptr)) __ret; \
51 __xchg((ptr), (unsigned long)_x_, sizeof(*(ptr))); \
58 __typeof__(*(ptr)) __ret; \
[all …]
/linux-5.3.11/arch/mips/include/asm/
H A Dcmpxchg.h102 #define xchg(ptr, x) \ argument
104 __typeof__(*(ptr)) __res; \
109 __xchg((ptr), (unsigned long)(x), sizeof(*(ptr))); \
183 ((__typeof__(*(ptr))) \
184 __cmpxchg((ptr), \
187 sizeof(*(ptr))))
191 __typeof__(*(ptr)) __res; \
210 cmpxchg((ptr), (o), (n)); \
215 # define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
291 __typeof__(*(ptr)) __res; \
[all …]
/linux-5.3.11/arch/m68k/include/asm/
H A Dcmpxchg.h21 tmp = *(u8 *)ptr; in __xchg()
22 *(u8 *)ptr = x; in __xchg()
26 tmp = *(u16 *)ptr; in __xchg()
27 *(u16 *)ptr = x; in __xchg()
31 tmp = *(u32 *)ptr; in __xchg()
32 *(u32 *)ptr = x; in __xchg()
79 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) argument
122 ((__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
125 ((__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
128 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
[all …]
/linux-5.3.11/drivers/video/
H A Dhdmi.c41 csum += ptr[i]; in hdmi_infoframe_checksum()
1579 frame->top_bar = (ptr[5] << 8) + ptr[6]; in hdmi_avi_infoframe_unpack()
1580 frame->bottom_bar = (ptr[7] << 8) + ptr[8]; in hdmi_avi_infoframe_unpack()
1583 frame->left_bar = (ptr[9] << 8) + ptr[10]; in hdmi_avi_infoframe_unpack()
1584 frame->right_bar = (ptr[11] << 8) + ptr[12]; in hdmi_avi_infoframe_unpack()
1639 ret = hdmi_spd_infoframe_init(frame, ptr, ptr + 8); in hdmi_spd_infoframe_unpack()
1725 (ptr[2] != 4 && ptr[2] != 5 && ptr[2] != 6)) in hdmi_vendor_any_infoframe_unpack()
1830 frame->white_point.x = (ptr[15] << 8) | ptr[14]; in hdmi_drm_infoframe_unpack()
1831 frame->white_point.y = (ptr[17] << 8) | ptr[16]; in hdmi_drm_infoframe_unpack()
1835 frame->max_cll = (ptr[23] << 8) | ptr[22]; in hdmi_drm_infoframe_unpack()
[all …]
/linux-5.3.11/arch/xtensa/variants/test_kc705_be/include/variant/
H A Dtie-asm.h82 s32i \at1, \ptr, .Lxchal_ofs_+0
92 s32i \at1, \ptr, .Lxchal_ofs_+0
94 s32i \at1, \ptr, .Lxchal_ofs_+4
104 s32i \at1, \ptr, .Lxchal_ofs_+0
106 s32i \at1, \ptr, .Lxchal_ofs_+4
108 s32i \at1, \ptr, .Lxchal_ofs_+8
147 l32i \at1, \ptr, .Lxchal_ofs_+0
157 l32i \at1, \ptr, .Lxchal_ofs_+0
223 addi \ptr, \ptr, 64
271 addi \ptr, \ptr, 64
[all …]
/linux-5.3.11/include/linux/unaligned/
H A Dgeneric.h11 #define __get_unaligned_le(ptr) ((__force typeof(*(ptr)))({ \ argument
12 __builtin_choose_expr(sizeof(*(ptr)) == 1, *(ptr), \
13 __builtin_choose_expr(sizeof(*(ptr)) == 2, get_unaligned_le16((ptr)), \
14 __builtin_choose_expr(sizeof(*(ptr)) == 4, get_unaligned_le32((ptr)), \
15 __builtin_choose_expr(sizeof(*(ptr)) == 8, get_unaligned_le64((ptr)), \
19 #define __get_unaligned_be(ptr) ((__force typeof(*(ptr)))({ \ argument
20 __builtin_choose_expr(sizeof(*(ptr)) == 1, *(ptr), \
21 __builtin_choose_expr(sizeof(*(ptr)) == 2, get_unaligned_be16((ptr)), \
22 __builtin_choose_expr(sizeof(*(ptr)) == 4, get_unaligned_be32((ptr)), \
23 __builtin_choose_expr(sizeof(*(ptr)) == 8, get_unaligned_be64((ptr)), \
[all …]
/linux-5.3.11/arch/sparc/include/asm/
H A Dcmpxchg_64.h55 #define xchg(ptr,x) \ argument
56 ({ __typeof__(*(ptr)) __ret; \
58 __xchg((unsigned long)(x), (ptr), sizeof(*(ptr))); \
79 load32 = *ptr; in xchg16()
95 return xchg16(ptr, x); in __xchg()
97 return xchg32(ptr, x); in __xchg()
99 return xchg64(ptr, x); in __xchg()
138 unsigned int load32 = *ptr; in __cmpxchg_u8()
175 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
199 ((__typeof__(*(ptr)))__cmpxchg_local((ptr), (unsigned long)(o), \
[all …]
/linux-5.3.11/arch/ia64/sn/pci/pcibr/
H A Dpcibr_reg.c41 ptr); in pcireg_control_bit_clr()
61 ptr); in pcireg_control_bit_set()
85 ptr); in pcireg_tflush_get()
115 ptr); in pcireg_intr_status_get()
139 ptr); in pcireg_intr_enable_bit_clr()
159 ptr); in pcireg_intr_enable_bit_set()
189 ptr); in pcireg_intr_addr_addr_set()
207 writeq(1, &ptr->pic.p_force_pin[int_n]); in pcireg_force_intr_set()
212 ptr); in pcireg_force_intr_set()
260 ptr); in pcireg_int_ate_set()
[all …]
/linux-5.3.11/include/asm-generic/
H A Dcmpxchg.h33 return __xchg_u8(x, ptr); in __xchg()
36 ret = *(volatile u8 *)ptr; in __xchg()
37 *(volatile u8 *)ptr = x; in __xchg()
44 return __xchg_u16(x, ptr); in __xchg()
48 *(volatile u16 *)ptr = x; in __xchg()
59 *(volatile u32 *)ptr = x; in __xchg()
85 __xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))); \
97 ((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\
103 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n)) argument
106 #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) argument
[all …]
/linux-5.3.11/arch/parisc/lib/
H A Dbitops.c25 _atomic_spin_lock_irqsave(ptr, flags); in __xchg64()
26 temp = *ptr; in __xchg64()
27 *ptr = x; in __xchg64()
33 unsigned long __xchg32(int x, int *ptr) in __xchg32() argument
38 _atomic_spin_lock_irqsave(ptr, flags); in __xchg32()
40 *ptr = x; in __xchg32()
53 *ptr = x; in __xchg8()
65 if ((prev = *ptr) == old) in __cmpxchg_u64()
66 *ptr = new; in __cmpxchg_u64()
77 if ((prev = *ptr) == old) in __cmpxchg_u32()
[all …]
/linux-5.3.11/arch/xtensa/variants/test_mmuhifi_c3/include/variant/
H A Dtie-asm.h102 s32i \at1, \ptr, 0
104 s32i \at1, \ptr, 4
106 s32i \at1, \ptr, 8
108 s32i \at1, \ptr, 12
115 addi \ptr, \ptr, 64
137 l32i \at1, \ptr, 0
139 l32i \at1, \ptr, 4
141 l32i \at1, \ptr, 8
143 l32i \at1, \ptr, 12
145 addi \ptr, \ptr, 80
[all …]
/linux-5.3.11/crypto/
H A Ddh_helper.c42 u8 *ptr = buf; in crypto_dh_encode_key() local
52 ptr = dh_pack_data(ptr, end, &secret, sizeof(secret)); in crypto_dh_encode_key()
53 ptr = dh_pack_data(ptr, end, &params->key_size, in crypto_dh_encode_key()
58 ptr = dh_pack_data(ptr, end, params->key, params->key_size); in crypto_dh_encode_key()
59 ptr = dh_pack_data(ptr, end, params->p, params->p_size); in crypto_dh_encode_key()
60 ptr = dh_pack_data(ptr, end, params->q, params->q_size); in crypto_dh_encode_key()
61 ptr = dh_pack_data(ptr, end, params->g, params->g_size); in crypto_dh_encode_key()
62 if (ptr != end) in crypto_dh_encode_key()
76 ptr = dh_unpack_data(&secret, ptr, sizeof(secret)); in crypto_dh_decode_key()
81 ptr = dh_unpack_data(&params->p_size, ptr, sizeof(params->p_size)); in crypto_dh_decode_key()
[all …]
/linux-5.3.11/drivers/gpu/drm/radeon/
H A Datom-bits.h28 static inline uint8_t get_u8(void *bios, int ptr) in get_u8() argument
30 return ((unsigned char *)bios)[ptr]; in get_u8()
32 #define U8(ptr) get_u8(ctx->ctx->bios, (ptr)) argument
33 #define CU8(ptr) get_u8(ctx->bios, (ptr)) argument
36 return get_u8(bios ,ptr)|(((uint16_t)get_u8(bios, ptr+1))<<8); in get_u16()
38 #define U16(ptr) get_u16(ctx->ctx->bios, (ptr)) argument
39 #define CU16(ptr) get_u16(ctx->bios, (ptr)) argument
42 return get_u16(bios, ptr)|(((uint32_t)get_u16(bios, ptr+2))<<16); in get_u32()
44 #define U32(ptr) get_u32(ctx->ctx->bios, (ptr)) argument
45 #define CU32(ptr) get_u32(ctx->bios, (ptr)) argument
[all …]

12345678910>>...76