Home
last modified time | relevance | path

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

12345678910>>...115

/linux-6.15/drivers/media/pci/zoran/
H A Dzr36050.c65 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36050_write()
74 ptr->status1 = zr36050_read(ptr, ZR050_STATUS_1); in zr36050_read_status1()
83 ptr->scalefact = (zr36050_read(ptr, ZR050_SF_HI) << 8) | in zr36050_read_scalefactor()
107 ptr->name, ptr->status1); in zr36050_wait_end()
289 ptr->width, ptr->height, NO_OF_COMPONENTS); in zr36050_set_sof()
431 ptr->name, ptr->status1); in zr36050_init()
500 ptr->name, ptr->status1); in zr36050_init()
562 size = ptr->width * ptr->height; in zr36050_set_video()
580 zr36050_write(ptr, ZR050_MBCV, ptr->max_block_vol); in zr36050_set_video()
744 ptr = kzalloc(sizeof(*ptr), GFP_KERNEL); in zr36050_setup()
[all …]
H A Dzr36060.c63 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36060_write()
77 ptr->status = zr36060_read(ptr, ZR060_CFSR); in zr36060_read_status()
86 ptr->scalefact = (zr36060_read(ptr, ZR060_SF_HI) << 8) | in zr36060_read_scalefactor()
105 ptr->name, ptr->status); in zr36060_wait_end()
257 ptr->width, ptr->height, NO_OF_COMPONENTS); in zr36060_set_sof()
385 ptr->name, sum, ptr->real_code_vol, bitcnt, tmp); in zr36060_init()
449 ptr->name, ptr->status); in zr36060_init()
612 size = ptr->width * ptr->height; in zr36060_set_video()
764 if (ptr) { in zr36060_unset()
799 ptr = kzalloc(sizeof(*ptr), GFP_KERNEL); in zr36060_setup()
[all …]
H A Dzr36016.c107 ptr->version = zr36016_read(ptr, 0) >> 4; in zr36016_read_version()
173 zr36016_writei(ptr, ZR016I_PAX_HI, ptr->width >> 8); in zr36016_init()
175 zr36016_writei(ptr, ZR016I_PAY_HI, ptr->height >> 8); in zr36016_init()
177 zr36016_writei(ptr, ZR016I_NAX_HI, ptr->xoff >> 8); in zr36016_init()
178 zr36016_writei(ptr, ZR016I_NAX_LO, ptr->xoff & 0xFF); in zr36016_init()
179 zr36016_writei(ptr, ZR016I_NAY_HI, ptr->yoff >> 8); in zr36016_init()
180 zr36016_writei(ptr, ZR016I_NAY_LO, ptr->yoff & 0xFF); in zr36016_init()
311 if (ptr) { in zr36016_unset()
347 ptr = kzalloc(sizeof(*ptr), GFP_KERNEL); in zr36016_setup()
349 if (!ptr) in zr36016_setup()
[all …]
/linux-6.15/tools/testing/selftests/mm/
H A Dmseal_test.c172 void *ptr; in setup_single_address() local
180 void *ptr; in setup_single_address_rw() local
204 void *ptr; in seal_support() local
232 void *ptr; in test_seal_addseal() local
248 void *ptr; in test_seal_unmapped_start() local
276 void *ptr; in test_seal_unmapped_middle() local
308 void *ptr; in test_seal_unmapped_end() local
337 void *ptr; in test_seal_multiple_vmas() local
368 void *ptr; in test_seal_split_start() local
393 void *ptr; in test_seal_split_end() local
[all …]
H A Dguard-regions.c152 *ptr = 'x'; in try_access_buf()
179 return try_read_buf(ptr) && try_write_buf(ptr); in try_read_write_buf()
307 char *ptr; in TEST_F() local
662 char *ptr; in TEST_F() local
841 char *ptr; in TEST_F() local
902 char *ptr; in TEST_F() local
1053 ptr = mremap(ptr, 10 * page_size, 20 * page_size, in TEST_F()
1083 char *ptr; in TEST_F() local
1123 ptr = mremap(ptr, 3 * page_size, 5 * page_size, 0); in TEST_F()
1147 char *ptr; in TEST_F() local
[all …]
H A Dhmm-tests.c325 for (ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
384 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
402 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
453 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
505 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
519 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
559 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
580 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
596 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
637 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
[all …]
/linux-6.15/tools/testing/selftests/bpf/progs/
H A Ddynptr_fail.c18 struct bpf_dynptr ptr; member
119 struct bpf_dynptr ptr; in missing_release_callback_fn() local
142 struct bpf_dynptr ptr; in ringbuf_release_uninit_dynptr() local
155 struct bpf_dynptr ptr; in use_after_invalid() local
175 struct bpf_dynptr ptr; in ringbuf_invalid_api() local
198 struct bpf_dynptr ptr; in add_dynptr_to_map1() local
234 struct bpf_dynptr ptr; in data_slice_out_of_bounds_ringbuf() local
256 struct bpf_dynptr ptr; in data_slice_out_of_bounds_skb() local
409 bpf_strncmp((const char *)&ptr, sizeof(ptr), "hello!"); in invalid_helper1()
550 val = *(int *)&ptr; in invalid_read1()
[all …]
/linux-6.15/arch/arm/include/asm/
H A Dcmpxchg.h53 : "r" (x), "r" (ptr) in __arch_xchg()
63 : "r" (x), "r" (ptr) in __arch_xchg()
74 : "r" (x), "r" (ptr) in __arch_xchg()
99 : "r" (x), "r" (ptr) in __arch_xchg()
106 : "r" (x), "r" (ptr) in __arch_xchg()
120 (__typeof__(*(ptr)))__arch_xchg((unsigned long)(x), (ptr), \
140 (__typeof(*ptr))__generic_cmpxchg_local((ptr), \
217 (__typeof__(*(ptr)))__cmpxchg((ptr), \
244 (__typeof(*ptr))__cmpxchg_local((ptr), \
257 prefetchw(ptr); in __cmpxchg64()
[all …]
/linux-6.15/arch/s390/include/asm/
H A Dcmpxchg.h22 : [old] "+d" (old), [ptr] "+Q" (*(u32 *)ptr) in __cs_asm()
32 : [old] "+d" (old), [ptr] "+QS" (*(u64 *)ptr) in __csg_asm()
47 i = ptr & 3; in __arch_cmpxchg1()
48 ptr &= ~0x3; in __arch_cmpxchg1()
71 ptr &= ~0x3; in __arch_cmpxchg2()
98 (__typeof__(*(ptr)))__arch_cmpxchg((unsigned long)(ptr), \
112 __typeof__(ptr) __oldp = (__typeof__(ptr))(oldp); \
157 __typeof__((ptr)) __oldp = (__typeof__(ptr))(oldp); \
181 ptr &= ~0x3; in __arch_xchg1()
245 : [old] "+d" (old), [ptr] "+QS" (*ptr) in arch_cmpxchg128()
[all …]
H A Datomic_ops.h21 : [val] "=d" (val) : [ptr] "R" (*ptr)); in __atomic_read()
30 : [ptr] "=Q" (*ptr) : [val] "K" (val)); in __atomic_set()
34 : [ptr] "=R" (*ptr) : [val] "d" (val)); in __atomic_set()
44 : [val] "=d" (val) : [ptr] "RT" (*ptr)); in __atomic64_read()
53 : [ptr] "=Q" (*ptr) : [val] "K" (val)); in __atomic64_set()
57 : [ptr] "=RT" (*ptr) : [val] "d" (val)); in __atomic64_set()
71 : [old] "=d" (old), [ptr] "+QS" (*ptr) \
99 : [ptr] "+QS" (*ptr) : [val] "i" (val) : "cc", "memory");\
124 : [old] "=d" (old), [new] "=&d" (new), [ptr] "+Q" (*ptr)\
184 : "=@cc" (cc), [tmp] "=d" (tmp), [ptr] "+QS" (*ptr) \
[all …]
/linux-6.15/net/bluetooth/
H A Deir.c73 return ptr; in create_uuid16_list()
92 ptr += 2; in create_uuid16_list()
106 return ptr; in create_uuid16_list()
125 ptr += 2; in create_uuid32_list()
139 return ptr; in create_uuid32_list()
158 ptr += 2; in create_uuid128_list()
168 ptr += 16; in create_uuid128_list()
204 ptr += 3; in eir_create()
219 ptr = create_uuid16_list(hdev, ptr, HCI_MAX_EIR_LENGTH - (ptr - data)); in eir_create()
220 ptr = create_uuid32_list(hdev, ptr, HCI_MAX_EIR_LENGTH - (ptr - data)); in eir_create()
[all …]
/linux-6.15/arch/parisc/include/asm/
H A Dcmpxchg.h47 #define arch_xchg(ptr, x) \ argument
49 __typeof__(*(ptr)) __ret; \
50 __typeof__(*(ptr)) _x_ = (x); \
51 __ret = (__typeof__(*(ptr))) \
52 __arch_xchg((unsigned long)_x_, (ptr), sizeof(*(ptr))); \
81 __typeof__(*(ptr)) _o_ = (o); \
82 __typeof__(*(ptr)) _n_ = (n); \
83 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
108 ((__typeof__(*(ptr)))__cmpxchg_local((ptr), (unsigned long)(o), \
117 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
[all …]
/linux-6.15/arch/x86/include/asm/
H A Dcmpxchg.h45 switch (sizeof(*(ptr))) { \
78 #define arch_xchg(ptr, v) __xchg_op((ptr), (v), xchg, "") argument
87 __typeof__(*(ptr)) __ret; \
149 __cmpxchg(ptr, old, new, sizeof(*(ptr)))
152 __sync_cmpxchg(ptr, old, new, sizeof(*(ptr)))
155 __cmpxchg_local(ptr, old, new, sizeof(*(ptr)))
231 __try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
234 __sync_try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
237 __try_cmpxchg_local((ptr), (pold), (new), sizeof(*(ptr)))
245 #define __xadd(ptr, inc, lock) __xchg_op((ptr), (inc), xadd, lock) argument
[all …]
/linux-6.15/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-6.15/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-6.15/arch/mips/include/asm/
H A Dcmpxchg.h92 #define arch_xchg(ptr, x) \ argument
94 __typeof__(*(ptr)) __res; \
104 __res = (__typeof__(*(ptr))) \
105 __arch_xchg((ptr), (unsigned long)(x), sizeof(*(ptr))); \
178 ((__typeof__(*(ptr))) \
179 __cmpxchg((ptr), \
182 sizeof(*(ptr))))
186 __typeof__(*(ptr)) __res; \
224 # define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
302 __typeof__(*(ptr)) __res; \
[all …]
/linux-6.15/arch/loongarch/include/asm/
H A Dcmpxchg.h41 shift = (unsigned long)ptr & 0x3; in __xchg_small()
85 #define arch_xchg(ptr, x) \ argument
87 __typeof__(*(ptr)) __res; \
89 __res = (__typeof__(*(ptr))) \
90 __arch_xchg((ptr), (unsigned long)(x), sizeof(*(ptr))); \
186 ((__typeof__(*(ptr))) \
187 __cmpxchg((ptr), \
190 sizeof(*(ptr))))
194 __typeof__(*(ptr)) __res; \
215 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
[all …]
/linux-6.15/tools/testing/selftests/arm64/mte/
H A Dcheck_tags_inclusion.c30 ptr, ptr + BUFFER_SIZE, mode); in verify_mte_pointer_validity()
38 ptr[BUFFER_SIZE] = '2'; in verify_mte_pointer_validity()
42 ptr, mode); in verify_mte_pointer_validity()
51 char *ptr; in check_single_included_tags() local
65 ptr = mte_insert_tags(ptr, BUFFER_SIZE); in check_single_included_tags()
83 char *ptr; in check_multiple_included_tags() local
97 ptr = mte_insert_tags(ptr, BUFFER_SIZE); in check_multiple_included_tags()
115 char *ptr; in check_all_included_tags() local
128 ptr = (char *)mte_insert_tags(ptr, BUFFER_SIZE); in check_all_included_tags()
141 char *ptr; in check_none_included_tags() local
[all …]
/linux-6.15/arch/alpha/include/asm/
H A Dcmpxchg.h103 size == 1 ? ____xchg_u8(ptr, x) : in ____xchg()
228 #define xchg_local(ptr, x) \ argument
231 (__typeof__(*(ptr))) ____xchg((ptr), (unsigned long)_x_, \
232 sizeof(*(ptr))); \
239 (__typeof__(*(ptr))) ____cmpxchg((ptr), (unsigned long)_o_, \
241 sizeof(*(ptr))); \
254 #define arch_xchg(ptr, x) \ argument
256 __typeof__(*(ptr)) __ret; \
260 ____xchg((ptr), (unsigned long)_x_, sizeof(*(ptr))); \
267 __typeof__(*(ptr)) __ret; \
[all …]
/linux-6.15/include/rdma/
H A Diba.h14 return *ptr; in _iba_get8()
19 *ptr = (*ptr & ~mask) | prep_value; in _iba_set8()
24 return be16_to_cpu(*ptr); in _iba_get16()
29 *ptr = cpu_to_be16((be16_to_cpu(*ptr) & ~mask) | prep_value); in _iba_set16()
34 return be32_to_cpu(*ptr); in _iba_get32()
39 *ptr = cpu_to_be32((be32_to_cpu(*ptr) & ~mask) | prep_value); in _iba_set32()
53 put_unaligned(cpu_to_be64((_iba_get64(ptr) & ~mask) | prep_value), ptr); in _iba_set64()
62 #define IBA_SET(field, ptr, value) _IBA_SET(field, ptr, value) argument
69 #define IBA_GET_MEM_PTR(field, ptr) _IBA_GET_MEM_PTR(field, ptr) argument
82 #define IBA_SET_MEM(field, ptr, in, bytes) _IBA_SET_MEM(field, ptr, in, bytes) argument
[all …]
/linux-6.15/arch/csky/include/asm/
H A Dcmpxchg.h13 __typeof__(ptr) __ptr = (ptr); \
15 __typeof__(*(ptr)) __ret; \
55 (__xchg_relaxed((x), (ptr), sizeof(*(ptr))))
59 __typeof__(ptr) __ptr = (ptr); \
63 __typeof__(*(ptr)) __ret; \
88 (__cmpxchg_relaxed((ptr), (o), (n), sizeof(*(ptr))))
92 __typeof__(ptr) __ptr = (ptr); \
122 (__cmpxchg_acquire((ptr), (o), (n), sizeof(*(ptr))))
126 __typeof__(ptr) __ptr = (ptr); \
157 (__cmpxchg((ptr), (o), (n), sizeof(*(ptr))))
[all …]
/linux-6.15/arch/sparc/include/asm/
H A Dcmpxchg_64.h55 #define arch_xchg(ptr,x) \ argument
56 ({ __typeof__(*(ptr)) __ret; \
58 __arch_xchg((unsigned long)(x), (ptr), sizeof(*(ptr))); \
79 load32 = *ptr; in xchg16()
95 return xchg16(ptr, x); in __arch_xchg()
97 return xchg32(ptr, x); in __arch_xchg()
99 return xchg64(ptr, x); in __arch_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-6.15/drivers/video/
H A Dhdmi.c42 csum += ptr[i]; in hdmi_infoframe_checksum()
1586 frame->top_bar = (ptr[6] << 8) | ptr[5]; in hdmi_avi_infoframe_unpack()
1587 frame->bottom_bar = (ptr[8] << 8) | ptr[7]; in hdmi_avi_infoframe_unpack()
1590 frame->left_bar = (ptr[10] << 8) | ptr[9]; in hdmi_avi_infoframe_unpack()
1591 frame->right_bar = (ptr[12] << 8) | ptr[11]; in hdmi_avi_infoframe_unpack()
1646 ret = hdmi_spd_infoframe_init(frame, ptr, ptr + 8); in hdmi_spd_infoframe_unpack()
1733 (ptr[2] != 4 && ptr[2] != 5 && ptr[2] != 6)) in hdmi_vendor_any_infoframe_unpack()
1829 frame->white_point.x = (ptr[15] << 8) | ptr[14]; in hdmi_drm_infoframe_unpack_only()
1830 frame->white_point.y = (ptr[17] << 8) | ptr[16]; in hdmi_drm_infoframe_unpack_only()
1834 frame->max_cll = (ptr[23] << 8) | ptr[22]; in hdmi_drm_infoframe_unpack_only()
[all …]
/linux-6.15/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-6.15/arch/powerpc/include/asm/
H A Dcmpxchg.h222 return __xchg_u8_local(ptr, x); in __xchg_local()
224 return __xchg_u16_local(ptr, x); in __xchg_local()
257 (__typeof__(*(ptr))) __xchg_local((ptr), \
264 (__typeof__(*(ptr))) __xchg_relaxed((ptr), \
703 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
712 (__typeof__(*(ptr))) __cmpxchg_local((ptr), (unsigned long)_o_, \
720 (__typeof__(*(ptr))) __cmpxchg_relaxed((ptr), \
722 sizeof(*(ptr))); \
729 (__typeof__(*(ptr))) __cmpxchg_acquire((ptr), \
731 sizeof(*(ptr))); \
[all …]

12345678910>>...115