/linux/drivers/media/pci/zoran/ |
H A D | zr36050.c | 65 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 D | zr36060.c | 63 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 D | zr36016.c | 107 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/tools/testing/selftests/mm/ |
H A D | mseal_test.c | 220 void *ptr; in setup_single_address() local 228 void *ptr; in setup_single_address_rw() local 252 void *ptr; in seal_support() local 280 void *ptr; in test_seal_addseal() local 296 void *ptr; in test_seal_unmapped_start() local 324 void *ptr; in test_seal_unmapped_middle() local 356 void *ptr; in test_seal_unmapped_end() local 385 void *ptr; in test_seal_multiple_vmas() local 416 void *ptr; in test_seal_split_start() local 441 void *ptr; in test_seal_split_end() local [all …]
|
H A D | hmm-tests.c | 325 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/tools/testing/selftests/bpf/progs/ |
H A D | dynptr_fail.c | 17 struct bpf_dynptr ptr; member 118 struct bpf_dynptr ptr; in missing_release_callback_fn() local 141 struct bpf_dynptr ptr; in ringbuf_release_uninit_dynptr() local 154 struct bpf_dynptr ptr; in use_after_invalid() local 174 struct bpf_dynptr ptr; in ringbuf_invalid_api() local 197 struct bpf_dynptr ptr; in add_dynptr_to_map1() local 233 struct bpf_dynptr ptr; in data_slice_out_of_bounds_ringbuf() local 255 struct bpf_dynptr ptr; in data_slice_out_of_bounds_skb() local 408 bpf_strncmp((const char *)&ptr, sizeof(ptr), "hello!"); in invalid_helper1() 549 val = *(int *)&ptr; in invalid_read1() [all …]
|
H A D | dynptr_success.c | 40 struct bpf_dynptr ptr; in test_read_write() local 70 struct bpf_dynptr ptr; in test_dynptr_data() local 139 struct bpf_dynptr ptr; in test_ringbuf() local 173 struct bpf_dynptr ptr; in test_skb_readonly() local 194 struct bpf_dynptr ptr; in test_dynptr_skb_data() local 215 struct bpf_dynptr ptr; in test_adjust() local 235 err = bpf_dynptr_adjust(&ptr, off, bpf_dynptr_size(&ptr)); in test_adjust() 268 struct bpf_dynptr ptr; in test_adjust_err() local 326 struct bpf_dynptr ptr; in test_zero_size_dynptr() local 513 struct bpf_dynptr ptr; in test_dynptr_skb_no_buff() local [all …]
|
/linux/arch/arm/include/asm/ |
H A D | cmpxchg.h | 52 : "r" (x), "r" (ptr) in __arch_xchg() 62 : "r" (x), "r" (ptr) in __arch_xchg() 73 : "r" (x), "r" (ptr) in __arch_xchg() 98 : "r" (x), "r" (ptr) in __arch_xchg() 105 : "r" (x), "r" (ptr) in __arch_xchg() 119 (__typeof__(*(ptr)))__arch_xchg((unsigned long)(x), (ptr), \ 139 (__typeof(*ptr))__generic_cmpxchg_local((ptr), \ 212 (__typeof__(*(ptr)))__cmpxchg((ptr), \ 239 (__typeof(*ptr))__cmpxchg_local((ptr), \ 252 prefetchw(ptr); in __cmpxchg64() [all …]
|
/linux/net/bluetooth/ |
H A D | eir.c | 73 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/arch/parisc/include/asm/ |
H A D | cmpxchg.h | 47 #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/arch/x86/include/asm/ |
H A D | cmpxchg.h | 45 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/arch/xtensa/variants/test_kc705_hifi/include/variant/ |
H A D | tie-asm.h | 83 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/arch/alpha/include/asm/ |
H A D | cmpxchg.h | 13 #define xchg_local(ptr, x) \ argument 15 __typeof__(*(ptr)) _x_ = (x); \ 16 (__typeof__(*(ptr))) __arch_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 __arch_xchg((ptr), (unsigned long)_x_, sizeof(*(ptr))); \ 58 __typeof__(*(ptr)) __ret; \ [all …]
|
/linux/arch/xtensa/variants/test_kc705_be/include/variant/ |
H A D | tie-asm.h | 82 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/ |
H A D | cmpxchg.h | 92 #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/arch/loongarch/include/asm/ |
H A D | cmpxchg.h | 41 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/tools/testing/selftests/arm64/mte/ |
H A D | check_tags_inclusion.c | 30 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/include/rdma/ |
H A D | iba.h | 14 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/csky/include/asm/ |
H A D | cmpxchg.h | 13 __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/arch/sparc/include/asm/ |
H A D | cmpxchg_64.h | 55 #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/drivers/video/ |
H A D | hdmi.c | 42 csum += ptr[i]; in hdmi_infoframe_checksum() 1614 frame->top_bar = (ptr[6] << 8) | ptr[5]; in hdmi_avi_infoframe_unpack() 1615 frame->bottom_bar = (ptr[8] << 8) | ptr[7]; in hdmi_avi_infoframe_unpack() 1618 frame->left_bar = (ptr[10] << 8) | ptr[9]; in hdmi_avi_infoframe_unpack() 1619 frame->right_bar = (ptr[12] << 8) | ptr[11]; in hdmi_avi_infoframe_unpack() 1674 ret = hdmi_spd_infoframe_init(frame, ptr, ptr + 8); in hdmi_spd_infoframe_unpack() 1761 (ptr[2] != 4 && ptr[2] != 5 && ptr[2] != 6)) in hdmi_vendor_any_infoframe_unpack() 1857 frame->white_point.x = (ptr[15] << 8) | ptr[14]; in hdmi_drm_infoframe_unpack_only() 1858 frame->white_point.y = (ptr[17] << 8) | ptr[16]; in hdmi_drm_infoframe_unpack_only() 1862 frame->max_cll = (ptr[23] << 8) | ptr[22]; in hdmi_drm_infoframe_unpack_only() [all …]
|
/linux/arch/xtensa/variants/test_mmuhifi_c3/include/variant/ |
H A D | tie-asm.h | 102 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/m68k/include/asm/ |
H A D | cmpxchg.h | 20 tmp = *(u8 *)ptr; in __arch_xchg() 21 *(u8 *)ptr = x; in __arch_xchg() 25 tmp = *(u16 *)ptr; in __arch_xchg() 26 *(u16 *)ptr = x; in __arch_xchg() 30 tmp = *(u32 *)ptr; in __arch_xchg() 31 *(u32 *)ptr = x; in __arch_xchg() 78 #define arch_xchg(ptr,x) ({(__typeof__(*(ptr)))__arch_xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))… argument 82 #define arch_cmpxchg64_local(ptr, o, n) __generic_cmpxchg64_local((ptr), (o), (n)) argument 121 ({(__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \ 124 ({(__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \ [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | cmpxchg.h | 222 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 …]
|
/linux/arch/riscv/include/asm/ |
H A D | cmpxchg.h | 52 __typeof__(ptr) __ptr = (ptr); \ 76 #define arch_xchg_relaxed(ptr, x) \ argument 77 _arch_xchg(ptr, x, "", "", "", "", "") 79 #define arch_xchg_acquire(ptr, x) \ argument 80 _arch_xchg(ptr, x, "", "", "", \ 86 #define arch_xchg(ptr, x) \ argument 89 #define xchg32(ptr, x) \ argument 92 arch_xchg((ptr), (x)); \ 95 #define xchg64(ptr, x) \ argument 98 arch_xchg((ptr), (x)); \ [all …]
|