Home
last modified time | relevance | path

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

12345678910>>...97

/linux/drivers/staging/media/zoran/
A Dzr36050.c79 ptr->name); in zr36050_write()
91 ptr->status1 = zr36050_read(ptr, ZR050_STATUS_1); in zr36050_read_status1()
106 ptr->scalefact = (zr36050_read(ptr, ZR050_SF_HI) << 8) | in zr36050_read_scalefactor()
129 ptr->name, ptr->status1); in zr36050_wait_end()
314 ptr->width, ptr->height, NO_OF_COMPONENTS); in zr36050_set_sof()
448 ptr->name, ptr->status1); in zr36050_init()
464 ptr->name, sum, ptr->real_code_vol, bitcnt, tmp); in zr36050_init()
517 ptr->name, ptr->status1); in zr36050_init()
574 size = ptr->width * ptr->height; in zr36050_set_video()
757 ptr = kzalloc(sizeof(*ptr), GFP_KERNEL); in zr36050_setup()
[all …]
A Dzr36060.c73 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36060_write()
87 ptr->status = zr36060_read(ptr, ZR060_CFSR); in zr36060_read_status()
96 ptr->scalefact = (zr36060_read(ptr, ZR060_SF_HI) << 8) | in zr36060_read_scalefactor()
114 ptr->name, ptr->status); in zr36060_wait_end()
259 ptr->width, ptr->height, NO_OF_COMPONENTS); in zr36060_set_sof()
349 zr36060_write(ptr, ZR060_SF_HI, ptr->scalefact >> 8); in zr36060_init()
384 ptr->name, sum, ptr->real_code_vol, bitcnt, tmp); in zr36060_init()
610 size = ptr->width * ptr->height; in zr36060_set_video()
760 if (ptr) { in zr36060_unset()
793 ptr = kzalloc(sizeof(*ptr), GFP_KERNEL); in zr36060_setup()
[all …]
A Dzr36016.c111 ptr->version = zr36016_read(ptr, 0) >> 4; in zr36016_read_version()
204 zr36016_writei(ptr, ZR016I_PAX_HI, ptr->width >> 8); in zr36016_init()
205 zr36016_writei(ptr, ZR016I_PAX_LO, ptr->width & 0xFF); in zr36016_init()
206 zr36016_writei(ptr, ZR016I_PAY_HI, ptr->height >> 8); in zr36016_init()
208 zr36016_writei(ptr, ZR016I_NAX_HI, ptr->xoff >> 8); in zr36016_init()
209 zr36016_writei(ptr, ZR016I_NAX_LO, ptr->xoff & 0xFF); in zr36016_init()
210 zr36016_writei(ptr, ZR016I_NAY_HI, ptr->yoff >> 8); in zr36016_init()
211 zr36016_writei(ptr, ZR016I_NAY_LO, ptr->yoff & 0xFF); in zr36016_init()
329 if (ptr) { in zr36016_unset()
364 ptr = kzalloc(sizeof(*ptr), GFP_KERNEL); in zr36016_setup()
[all …]
/linux/arch/riscv/include/asm/
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/tools/testing/selftests/vm/
A Dhmm-tests.c257 for (ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
316 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
334 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
385 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
437 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
451 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
491 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
512 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
528 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
569 for (i = 0, ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F()
[all …]
/linux/net/bluetooth/
A Deir.c64 return ptr; in create_uuid16_list()
83 ptr += 2; in create_uuid16_list()
97 return ptr; in create_uuid16_list()
116 ptr += 2; in create_uuid32_list()
130 return ptr; in create_uuid32_list()
149 ptr += 2; in create_uuid128_list()
159 ptr += 16; in create_uuid128_list()
195 ptr += 3; in eir_create()
210 ptr = create_uuid16_list(hdev, ptr, HCI_MAX_EIR_LENGTH - (ptr - data)); in eir_create()
211 ptr = create_uuid32_list(hdev, ptr, HCI_MAX_EIR_LENGTH - (ptr - data)); in eir_create()
[all …]
/linux/arch/arm/include/asm/
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()
104 : "r" (x), "r" (ptr) in __xchg()
118 (__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), \
138 (__typeof(*ptr))__generic_cmpxchg_local((ptr), \
211 (__typeof__(*(ptr)))__cmpxchg((ptr), \
238 (__typeof(*ptr))__cmpxchg_local((ptr), \
251 prefetchw(ptr); in __cmpxchg64()
[all …]
/linux/arch/xtensa/variants/test_kc705_hifi/include/variant/
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/lib/
A Dtest_kasan.c122 char *ptr; in kmalloc_oob_right() local
150 char *ptr; in kmalloc_oob_left() local
156 KUNIT_EXPECT_KASAN_FAIL(test, *ptr = *(ptr - 1)); in kmalloc_oob_left()
162 char *ptr; in kmalloc_node_oob_right() local
168 KUNIT_EXPECT_KASAN_FAIL(test, ptr[0] = ptr[size]); in kmalloc_node_oob_right()
180 char *ptr; in kmalloc_pagealloc_oob_right() local
195 char *ptr; in kmalloc_pagealloc_uaf() local
209 char *ptr; in kmalloc_pagealloc_invalid_free() local
238 KUNIT_EXPECT_KASAN_FAIL(test, ptr[0] = ptr[size]); in pagealloc_oob_right()
1094 ptr = set_tag(ptr, KASAN_TAG_KERNEL); in match_all_ptr_tag()
[all …]
/linux/drivers/net/ethernet/neterion/vxge/
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/arch/powerpc/include/asm/
A Dcmpxchg.h156 return __xchg_u8_local(ptr, x); in __xchg_local()
158 return __xchg_u16_local(ptr, x); in __xchg_local()
191 (__typeof__(*(ptr))) __xchg_local((ptr), \
198 (__typeof__(*(ptr))) __xchg_relaxed((ptr), \
474 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
483 (__typeof__(*(ptr))) __cmpxchg_local((ptr), (unsigned long)_o_, \
491 (__typeof__(*(ptr))) __cmpxchg_relaxed((ptr), \
493 sizeof(*(ptr))); \
500 (__typeof__(*(ptr))) __cmpxchg_acquire((ptr), \
502 sizeof(*(ptr))); \
[all …]
/linux/arch/parisc/include/asm/
A Dcmpxchg.h47 #define arch_xchg(ptr, x) \ argument
49 __typeof__(*(ptr)) __ret; \
50 __typeof__(*(ptr)) _x_ = (x); \
51 __ret = (__typeof__(*(ptr))) \
52 __xchg((unsigned long)_x_, (ptr), sizeof(*(ptr))); \
83 __typeof__(*(ptr)) _o_ = (o); \
84 __typeof__(*(ptr)) _n_ = (n); \
85 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
110 ((__typeof__(*(ptr)))__cmpxchg_local((ptr), (unsigned long)(o), \
119 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
[all …]
/linux/drivers/video/
A Dhdmi.c41 csum += ptr[i]; in hdmi_infoframe_checksum()
1576 frame->top_bar = (ptr[6] << 8) | ptr[5]; in hdmi_avi_infoframe_unpack()
1577 frame->bottom_bar = (ptr[8] << 8) | ptr[7]; in hdmi_avi_infoframe_unpack()
1580 frame->left_bar = (ptr[10] << 8) | ptr[9]; in hdmi_avi_infoframe_unpack()
1581 frame->right_bar = (ptr[12] << 8) | ptr[11]; in hdmi_avi_infoframe_unpack()
1636 ret = hdmi_spd_infoframe_init(frame, ptr, ptr + 8); in hdmi_spd_infoframe_unpack()
1723 (ptr[2] != 4 && ptr[2] != 5 && ptr[2] != 6)) in hdmi_vendor_any_infoframe_unpack()
1819 frame->white_point.x = (ptr[15] << 8) | ptr[14]; in hdmi_drm_infoframe_unpack_only()
1820 frame->white_point.y = (ptr[17] << 8) | ptr[16]; in hdmi_drm_infoframe_unpack_only()
1824 frame->max_cll = (ptr[23] << 8) | ptr[22]; in hdmi_drm_infoframe_unpack_only()
[all …]
/linux/arch/xtensa/variants/test_kc705_be/include/variant/
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/arch/mips/include/asm/
A Dcmpxchg.h93 #define arch_xchg(ptr, x) \ argument
95 __typeof__(*(ptr)) __res; \
105 __res = (__typeof__(*(ptr))) \
106 __xchg((ptr), (unsigned long)(x), sizeof(*(ptr))); \
179 ((__typeof__(*(ptr))) \
180 __cmpxchg((ptr), \
183 sizeof(*(ptr))))
187 __typeof__(*(ptr)) __res; \
225 # define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument
303 __typeof__(*(ptr)) __res; \
[all …]
/linux/arch/parisc/lib/
A Dbitops.c25 _atomic_spin_lock_irqsave(ptr, flags); in __xchg64()
26 temp = *ptr; in __xchg64()
27 *ptr = x; in __xchg64()
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()
78 *ptr = new; in __cmpxchg_u32()
89 if ((prev = *ptr) == old) in __cmpxchg_u8()
[all …]
/linux/include/rdma/
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/arch/x86/include/asm/
A Duaccess.h128 __chk_user_ptr(ptr); \
132 : "0" (ptr), "i" (sizeof(*(ptr)))); \
155 #define get_user(x,ptr) ({ might_fault(); do_get_user_call(get_user,x,ptr); }) argument
178 #define __get_user(x,ptr) do_get_user_call(get_user_nocheck,x,ptr) argument
223 __ptr_pu = (ptr); \
252 #define put_user(x, ptr) ({ might_fault(); do_put_user_call(put_user,x,ptr); }) argument
274 #define __put_user(x, ptr) do_put_user_call(put_user_nocheck,x,ptr) argument
349 __typeof__(ptr) __ptr = (ptr); \
488 __put_user_size((__typeof__(*(ptr)))(x), (ptr), sizeof(*(ptr)), label)
494 __get_user_size(__gu_val, (ptr), sizeof(*(ptr)), err_label); \
[all …]
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)))
171 [ptr] "+m" (*__ptr), \
183 [ptr] "+m" (*__ptr), \
225 __try_cmpxchg((ptr), (pold), (new), sizeof(*(ptr)))
233 #define __xadd(ptr, inc, lock) __xchg_op((ptr), (inc), xadd, lock) argument
[all …]
/linux/tools/testing/selftests/arm64/mte/
A Dcheck_tags_inclusion.c26 memset((void *)ptr, '1', BUFFER_SIZE); in verify_mte_pointer_validity()
31 if (!MT_FETCH_TAG((uintptr_t)ptr)) in verify_mte_pointer_validity()
35 ptr[BUFFER_SIZE] = '2'; in verify_mte_pointer_validity()
45 char *ptr; in check_single_included_tags() local
57 ptr = (char *)mte_insert_tags(ptr, BUFFER_SIZE); in check_single_included_tags()
75 char *ptr; in check_multiple_included_tags() local
89 ptr = (char *)mte_insert_tags(ptr, BUFFER_SIZE); in check_multiple_included_tags()
107 char *ptr; in check_all_included_tags() local
118 ptr = (char *)mte_insert_tags(ptr, BUFFER_SIZE); in check_all_included_tags()
131 char *ptr; in check_none_included_tags() local
[all …]
/linux/arch/alpha/include/asm/
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 arch_xchg(ptr, x) \ argument
47 __typeof__(*(ptr)) __ret; \
51 __xchg((ptr), (unsigned long)_x_, sizeof(*(ptr))); \
58 __typeof__(*(ptr)) __ret; \
[all …]
/linux/arch/xtensa/variants/test_mmuhifi_c3/include/variant/
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/arch/sparc/include/asm/
A Dcmpxchg_64.h55 #define arch_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/arch/s390/include/asm/
A Dbitops.h75 volatile unsigned long *ptr) in arch_change_bit() argument
84 volatile unsigned long *ptr) in arch_test_and_set_bit() argument
95 volatile unsigned long *ptr) in arch_test_and_clear_bit() argument
106 volatile unsigned long *ptr) in arch_test_and_change_bit() argument
125 volatile unsigned long *ptr) in arch___clear_bit() argument
143 volatile unsigned long *ptr) in arch___test_and_set_bit() argument
190 if (arch_test_bit(nr, ptr)) in arch_test_and_set_bit_lock()
196 volatile unsigned long *ptr) in arch_clear_bit_unlock() argument
199 arch_clear_bit(nr, ptr); in arch_clear_bit_unlock()
206 arch___clear_bit(nr, ptr); in arch___clear_bit_unlock()
[all …]
/linux/drivers/gpu/drm/radeon/
A Datom.c224 (*ptr)++; in atom_get_src_int()
233 (*ptr)++; in atom_get_src_int()
281 (*ptr)++; in atom_get_src_int()
320 (*ptr)++; in atom_get_src_int()
327 (*ptr)++; in atom_get_src_int()
380 (*ptr)++; in atom_skip_src_int()
428 (*ptr)++; in atom_get_src_direct()
498 (*ptr)++; in atom_put_dst()
504 (*ptr)++; in atom_put_dst()
537 (*ptr)++; in atom_put_dst()
[all …]

Completed in 92 milliseconds

12345678910>>...97