/linux-5.19.10/drivers/staging/media/zoran/ |
D | zr36050.c | 50 static u8 zr36050_read(struct zr36050 *ptr, u16 reg) in zr36050_read() argument 55 if (ptr->codec->master_data->readreg) in zr36050_read() 56 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xFF; in zr36050_read() 59 KERN_ERR "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36050_read() 61 dprintk(4, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); in zr36050_read() 66 static void zr36050_write(struct zr36050 *ptr, u16 reg, u8 value) in zr36050_write() argument 68 dprintk(4, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, reg); in zr36050_write() 71 if (ptr->codec->master_data->writereg) in zr36050_write() 72 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36050_write() 77 ptr->name); in zr36050_write() [all …]
|
D | zr36060.c | 51 static u8 zr36060_read(struct zr36060 *ptr, u16 reg) in zr36060_read() argument 56 if (ptr->codec->master_data->readreg) in zr36060_read() 57 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xff; in zr36060_read() 59 pr_err("%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36060_read() 64 static void zr36060_write(struct zr36060 *ptr, u16 reg, u8 value) in zr36060_write() argument 69 if (ptr->codec->master_data->writereg) in zr36060_write() 70 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36060_write() 72 pr_err("%s: invalid I/O setup, nothing written!\n", ptr->name); in zr36060_write() 82 static u8 zr36060_read_status(struct zr36060 *ptr) in zr36060_read_status() argument 84 ptr->status = zr36060_read(ptr, ZR060_CFSR); in zr36060_read_status() [all …]
|
D | zr36016.c | 43 static u8 zr36016_read(struct zr36016 *ptr, u16 reg) in zr36016_read() argument 48 if (ptr->codec->master_data->readreg) in zr36016_read() 49 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xFF; in zr36016_read() 51 pr_err("%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36016_read() 53 dprintk(4, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); in zr36016_read() 58 static void zr36016_write(struct zr36016 *ptr, u16 reg, u8 value) in zr36016_write() argument 60 dprintk(4, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, reg); in zr36016_write() 63 if (ptr->codec->master_data->writereg) in zr36016_write() 64 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36016_write() 66 pr_err("%s: invalid I/O setup, nothing written!\n", ptr->name); in zr36016_write() [all …]
|
/linux-5.19.10/arch/riscv/include/asm/ |
D | cmpxchg.h | 14 #define __xchg_relaxed(ptr, new, size) \ argument 16 __typeof__(ptr) __ptr = (ptr); \ 18 __typeof__(*(ptr)) __ret; \ 40 #define arch_xchg_relaxed(ptr, x) \ argument 42 __typeof__(*(ptr)) _x_ = (x); \ 43 (__typeof__(*(ptr))) __xchg_relaxed((ptr), \ 44 _x_, sizeof(*(ptr))); \ 47 #define __xchg_acquire(ptr, new, size) \ argument 49 __typeof__(ptr) __ptr = (ptr); \ 51 __typeof__(*(ptr)) __ret; \ [all …]
|
/linux-5.19.10/tools/testing/selftests/bpf/progs/ |
D | dynptr_fail.c | 14 struct bpf_dynptr ptr; member 50 static int get_map_val_dynptr(struct bpf_dynptr *ptr) in get_map_val_dynptr() argument 60 bpf_dynptr_from_mem(map_val, sizeof(*map_val), 0, ptr); in get_map_val_dynptr() 71 struct bpf_dynptr ptr; in ringbuf_missing_release1() local 73 bpf_ringbuf_reserve_dynptr(&ringbuf, val, 0, &ptr); in ringbuf_missing_release1() 105 struct bpf_dynptr ptr; in missing_release_callback_fn() local 107 bpf_ringbuf_reserve_dynptr(&ringbuf, val, 0, &ptr); in missing_release_callback_fn() 126 struct bpf_dynptr ptr; in ringbuf_release_uninit_dynptr() local 129 bpf_ringbuf_submit_dynptr(&ptr, 0); in ringbuf_release_uninit_dynptr() 138 struct bpf_dynptr ptr; in use_after_invalid() local [all …]
|
/linux-5.19.10/arch/arm/include/asm/ |
D | cmpxchg.h | 28 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size) in __xchg() argument 39 prefetchw((const void *)ptr); in __xchg() 51 : "r" (x), "r" (ptr) in __xchg() 61 : "r" (x), "r" (ptr) in __xchg() 72 : "r" (x), "r" (ptr) in __xchg() 81 ret = *(volatile unsigned char *)ptr; in __xchg() 82 *(volatile unsigned char *)ptr = x; in __xchg() 88 ret = *(volatile unsigned long *)ptr; in __xchg() 89 *(volatile unsigned long *)ptr = x; in __xchg() 97 : "r" (x), "r" (ptr) in __xchg() [all …]
|
/linux-5.19.10/tools/testing/selftests/vm/ |
D | hmm-tests.c | 41 void *ptr; member 133 cmd.addr = (__u64)buffer->ptr; in hmm_dmirror_cmd() 134 cmd.ptr = (__u64)buffer->mirror; in hmm_dmirror_cmd() 156 if (buffer->ptr) in hmm_buffer_free() 157 munmap(buffer->ptr, buffer->size); in hmm_buffer_free() 230 int *ptr; in TEST_F() local 246 buffer->ptr = mmap(NULL, size, in TEST_F() 250 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F() 256 i = 2 * self->page_size / sizeof(*ptr); in TEST_F() 257 for (ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F() [all …]
|
/linux-5.19.10/arch/parisc/include/asm/ |
D | cmpxchg.h | 25 __xchg(unsigned long x, volatile void *ptr, int size) in __xchg() argument 29 case 8: return __xchg64(x, (volatile unsigned long *) ptr); in __xchg() 31 case 4: return __xchg32((int) x, (volatile int *) ptr); in __xchg() 32 case 1: return __xchg8((char) x, (volatile char *) ptr); in __xchg() 47 #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))); \ 62 extern u64 __cmpxchg_u64(volatile u64 *ptr, u64 old, u64 new_); [all …]
|
/linux-5.19.10/net/bluetooth/ |
D | eir.c | 16 u8 eir_append_local_name(struct hci_dev *hdev, u8 *ptr, u8 ad_len) in eir_append_local_name() argument 28 return eir_append_data(ptr, ad_len, EIR_NAME_COMPLETE, in eir_append_local_name() 34 return eir_append_data(ptr, ad_len, EIR_NAME_SHORT, in eir_append_local_name() 46 return eir_append_data(ptr, ad_len, EIR_NAME_SHORT, name, in eir_append_local_name() 53 u8 eir_append_appearance(struct hci_dev *hdev, u8 *ptr, u8 ad_len) in eir_append_appearance() argument 55 return eir_append_le16(ptr, ad_len, EIR_APPEARANCE, hdev->appearance); in eir_append_appearance() 73 u8 *ptr = data, *uuids_start = NULL; in create_uuid16_list() local 77 return ptr; in create_uuid16_list() 93 uuids_start = ptr; in create_uuid16_list() 96 ptr += 2; in create_uuid16_list() [all …]
|
/linux-5.19.10/arch/xtensa/variants/test_kc705_hifi/include/variant/ |
D | tie-asm.h | 77 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 81 xchal_sa_align \ptr, 0, 1020, 4, 4 83 s32i \at1, \ptr, .Lxchal_ofs_+0 86 xchal_sa_align \ptr, 0, 1020, 4, 4 91 xchal_sa_align \ptr, 0, 1016, 4, 4 93 s32i \at1, \ptr, .Lxchal_ofs_+0 95 s32i \at1, \ptr, .Lxchal_ofs_+4 98 xchal_sa_align \ptr, 0, 1016, 4, 4 103 xchal_sa_align \ptr, 0, 1000, 4, 4 105 s32i \at1, \ptr, .Lxchal_ofs_+0 [all …]
|
/linux-5.19.10/arch/powerpc/include/asm/ |
D | cmpxchg.h | 152 __xchg_local(void *ptr, unsigned long x, unsigned int size) in __xchg_local() argument 156 return __xchg_u8_local(ptr, x); in __xchg_local() 158 return __xchg_u16_local(ptr, x); in __xchg_local() 160 return __xchg_u32_local(ptr, x); in __xchg_local() 163 return __xchg_u64_local(ptr, x); in __xchg_local() 171 __xchg_relaxed(void *ptr, unsigned long x, unsigned int size) in __xchg_relaxed() argument 175 return __xchg_u8_relaxed(ptr, x); in __xchg_relaxed() 177 return __xchg_u16_relaxed(ptr, x); in __xchg_relaxed() 179 return __xchg_u32_relaxed(ptr, x); in __xchg_relaxed() 182 return __xchg_u64_relaxed(ptr, x); in __xchg_relaxed() [all …]
|
/linux-5.19.10/lib/ |
D | test_kasan.c | 128 char *ptr; in kmalloc_oob_right() local 131 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right() 132 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ptr); in kmalloc_oob_right() 134 OPTIMIZER_HIDE_VAR(ptr); in kmalloc_oob_right() 140 KUNIT_EXPECT_KASAN_FAIL(test, ptr[size] = 'x'); in kmalloc_oob_right() 146 KUNIT_EXPECT_KASAN_FAIL(test, ptr[size + 5] = 'y'); in kmalloc_oob_right() 149 KUNIT_EXPECT_KASAN_FAIL(test, ptr[0] = in kmalloc_oob_right() 150 ptr[size + KASAN_GRANULE_SIZE + 5]); in kmalloc_oob_right() 152 kfree(ptr); in kmalloc_oob_right() 157 char *ptr; in kmalloc_oob_left() local [all …]
|
/linux-5.19.10/drivers/net/ethernet/neterion/vxge/ |
D | vxge-ethtool.c | 242 u64 *ptr = tmp_stats; in vxge_get_ethtool_stats() local 276 *ptr++ = 0; in vxge_get_ethtool_stats() 305 memset(ptr, 0, (VXGE_HW_VPATH_TX_STATS_LEN + in vxge_get_ethtool_stats() 307 ptr += (VXGE_HW_VPATH_TX_STATS_LEN + in vxge_get_ethtool_stats() 312 *ptr++ = vpath_info->tx_stats.tx_ttl_eth_frms; in vxge_get_ethtool_stats() 313 *ptr++ = vpath_info->tx_stats.tx_ttl_eth_octets; in vxge_get_ethtool_stats() 314 *ptr++ = vpath_info->tx_stats.tx_data_octets; in vxge_get_ethtool_stats() 315 *ptr++ = vpath_info->tx_stats.tx_mcast_frms; in vxge_get_ethtool_stats() 316 *ptr++ = vpath_info->tx_stats.tx_bcast_frms; in vxge_get_ethtool_stats() 317 *ptr++ = vpath_info->tx_stats.tx_ucast_frms; in vxge_get_ethtool_stats() [all …]
|
/linux-5.19.10/arch/parisc/lib/ |
D | bitops.c | 21 unsigned long notrace __xchg64(unsigned long x, volatile unsigned long *ptr) in __xchg64() argument 25 _atomic_spin_lock_irqsave(ptr, flags); in __xchg64() 26 temp = *ptr; in __xchg64() 27 *ptr = x; in __xchg64() 28 _atomic_spin_unlock_irqrestore(ptr, flags); in __xchg64() 33 unsigned long notrace __xchg32(int x, volatile int *ptr) in __xchg32() argument 38 _atomic_spin_lock_irqsave(ptr, flags); in __xchg32() 39 temp = (long) *ptr; /* XXX - sign extension wanted? */ in __xchg32() 40 *ptr = x; in __xchg32() 41 _atomic_spin_unlock_irqrestore(ptr, flags); in __xchg32() [all …]
|
/linux-5.19.10/arch/alpha/include/asm/ |
D | cmpxchg.h | 13 #define xchg_local(ptr, x) \ argument 15 __typeof__(*(ptr)) _x_ = (x); \ 16 (__typeof__(*(ptr))) __xchg_local((ptr), (unsigned long)_x_, \ 17 sizeof(*(ptr))); \ 20 #define arch_cmpxchg_local(ptr, o, n) \ argument 22 __typeof__(*(ptr)) _o_ = (o); \ 23 __typeof__(*(ptr)) _n_ = (n); \ 24 (__typeof__(*(ptr))) __cmpxchg_local((ptr), (unsigned long)_o_, \ 26 sizeof(*(ptr))); \ 29 #define arch_cmpxchg64_local(ptr, o, n) \ argument [all …]
|
/linux-5.19.10/drivers/video/ |
D | hdmi.c | 34 static u8 hdmi_infoframe_checksum(const u8 *ptr, size_t size) in hdmi_infoframe_checksum() argument 41 csum += ptr[i]; in hdmi_infoframe_checksum() 48 u8 *ptr = buffer; in hdmi_infoframe_set_checksum() local 50 ptr[3] = hdmi_infoframe_checksum(buffer, size); in hdmi_infoframe_set_checksum() 112 u8 *ptr = buffer; in hdmi_avi_infoframe_pack_only() local 127 ptr[0] = frame->type; in hdmi_avi_infoframe_pack_only() 128 ptr[1] = frame->version; in hdmi_avi_infoframe_pack_only() 129 ptr[2] = frame->length; in hdmi_avi_infoframe_pack_only() 130 ptr[3] = 0; /* checksum */ in hdmi_avi_infoframe_pack_only() 133 ptr += HDMI_INFOFRAME_HEADER_SIZE; in hdmi_avi_infoframe_pack_only() [all …]
|
/linux-5.19.10/arch/xtensa/variants/test_kc705_be/include/variant/ |
D | tie-asm.h | 76 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL alloc=0 80 xchal_sa_align \ptr, 0, 1020, 4, 4 82 s32i \at1, \ptr, .Lxchal_ofs_+0 85 xchal_sa_align \ptr, 0, 1020, 4, 4 90 xchal_sa_align \ptr, 0, 1016, 4, 4 92 s32i \at1, \ptr, .Lxchal_ofs_+0 94 s32i \at1, \ptr, .Lxchal_ofs_+4 97 xchal_sa_align \ptr, 0, 1016, 4, 4 102 xchal_sa_align \ptr, 0, 1000, 4, 4 104 s32i \at1, \ptr, .Lxchal_ofs_+0 [all …]
|
/linux-5.19.10/arch/mips/include/asm/ |
D | cmpxchg.h | 67 extern unsigned long __xchg_small(volatile void *ptr, unsigned long val, 71 unsigned long __xchg(volatile void *ptr, unsigned long x, int size) in __xchg() argument 76 return __xchg_small(ptr, x, size); in __xchg() 79 return __xchg_asm("ll", "sc", (volatile u32 *)ptr, x); in __xchg() 85 return __xchg_asm("lld", "scd", (volatile u64 *)ptr, x); in __xchg() 92 #define arch_xchg(ptr, x) \ argument 94 __typeof__(*(ptr)) __res; \ 104 __res = (__typeof__(*(ptr))) \ 105 __xchg((ptr), (unsigned long)(x), sizeof(*(ptr))); \ 148 extern unsigned long __cmpxchg_small(volatile void *ptr, unsigned long old, [all …]
|
/linux-5.19.10/arch/csky/include/asm/ |
D | cmpxchg.h | 11 #define __xchg_relaxed(new, ptr, size) \ argument 13 __typeof__(ptr) __ptr = (ptr); \ 15 __typeof__(*(ptr)) __ret; \ 34 #define arch_xchg_relaxed(ptr, x) \ argument 35 (__xchg_relaxed((x), (ptr), sizeof(*(ptr)))) 37 #define __cmpxchg_relaxed(ptr, old, new, size) \ argument 39 __typeof__(ptr) __ptr = (ptr); \ 43 __typeof__(*(ptr)) __ret; \ 64 #define arch_cmpxchg_relaxed(ptr, o, n) \ argument 65 (__cmpxchg_relaxed((ptr), (o), (n), sizeof(*(ptr)))) [all …]
|
/linux-5.19.10/tools/testing/selftests/arm64/mte/ |
D | check_tags_inclusion.c | 22 static int verify_mte_pointer_validity(char *ptr, int mode) in verify_mte_pointer_validity() argument 24 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE); in verify_mte_pointer_validity() 26 memset(ptr, '1', BUFFER_SIZE); in verify_mte_pointer_validity() 30 ptr, ptr + BUFFER_SIZE, mode); in verify_mte_pointer_validity() 34 if (!MT_FETCH_TAG((uintptr_t)ptr)) in verify_mte_pointer_validity() 36 mte_initialize_current_context(mode, (uintptr_t)ptr, BUFFER_SIZE + 1); 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 54 ptr = mte_allocate_memory(BUFFER_SIZE + MT_GRANULE_SIZE, mem_type, 0, false); in check_single_included_tags() [all …]
|
/linux-5.19.10/include/rdma/ |
D | iba.h | 12 static inline u32 _iba_get8(const u8 *ptr) in _iba_get8() argument 14 return *ptr; in _iba_get8() 17 static inline void _iba_set8(u8 *ptr, u32 mask, u32 prep_value) in _iba_set8() argument 19 *ptr = (*ptr & ~mask) | prep_value; in _iba_set8() 22 static inline u16 _iba_get16(const __be16 *ptr) in _iba_get16() argument 24 return be16_to_cpu(*ptr); in _iba_get16() 27 static inline void _iba_set16(__be16 *ptr, u16 mask, u16 prep_value) in _iba_set16() argument 29 *ptr = cpu_to_be16((be16_to_cpu(*ptr) & ~mask) | prep_value); in _iba_set16() 32 static inline u32 _iba_get32(const __be32 *ptr) in _iba_get32() argument 34 return be32_to_cpu(*ptr); in _iba_get32() [all …]
|
/linux-5.19.10/arch/loongarch/include/asm/ |
D | cmpxchg.h | 24 static inline unsigned long __xchg(volatile void *ptr, unsigned long x, in __xchg() argument 29 return __xchg_asm("amswap_db.w", (volatile u32 *)ptr, (u32)x); in __xchg() 32 return __xchg_asm("amswap_db.d", (volatile u64 *)ptr, (u64)x); in __xchg() 41 #define arch_xchg(ptr, x) \ argument 43 __typeof__(*(ptr)) __res; \ 45 __res = (__typeof__(*(ptr))) \ 46 __xchg((ptr), (unsigned long)(x), sizeof(*(ptr))); \ 70 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() argument 75 return __cmpxchg_asm("ll.w", "sc.w", (volatile u32 *)ptr, in __cmpxchg() 79 return __cmpxchg_asm("ll.d", "sc.d", (volatile u64 *)ptr, in __cmpxchg() [all …]
|
/linux-5.19.10/arch/sparc/include/asm/ |
D | cmpxchg_64.h | 55 #define arch_xchg(ptr,x) \ argument 56 ({ __typeof__(*(ptr)) __ret; \ 57 __ret = (__typeof__(*(ptr))) \ 58 __xchg((unsigned long)(x), (ptr), sizeof(*(ptr))); \ 75 unsigned int *ptr = (unsigned int *) (maddr & ~2); in xchg16() local 79 load32 = *ptr; in xchg16() 84 load32 = __cmpxchg_u32(ptr, old32, new32); in xchg16() 90 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, in __xchg() argument 95 return xchg16(ptr, x); in __xchg() 97 return xchg32(ptr, x); in __xchg() [all …]
|
/linux-5.19.10/arch/s390/include/asm/ |
D | bitops.h | 45 __bitops_word(unsigned long nr, const volatile unsigned long *ptr) in __bitops_word() argument 49 addr = (unsigned long)ptr + ((nr ^ (nr & (BITS_PER_LONG - 1))) >> 3); in __bitops_word() 58 static __always_inline void arch_set_bit(unsigned long nr, volatile unsigned long *ptr) in arch_set_bit() argument 60 unsigned long *addr = __bitops_word(nr, ptr); in arch_set_bit() 66 static __always_inline void arch_clear_bit(unsigned long nr, volatile unsigned long *ptr) in arch_clear_bit() argument 68 unsigned long *addr = __bitops_word(nr, ptr); in arch_clear_bit() 75 volatile unsigned long *ptr) in arch_change_bit() argument 77 unsigned long *addr = __bitops_word(nr, ptr); in arch_change_bit() 84 volatile unsigned long *ptr) in arch_test_and_set_bit() argument 86 unsigned long *addr = __bitops_word(nr, ptr); in arch_test_and_set_bit() [all …]
|
/linux-5.19.10/arch/xtensa/variants/test_mmuhifi_c3/include/variant/ |
D | tie-asm.h | 36 .macro xchal_ncp_store ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL 39 xchal_sa_align \ptr, 0, 1024-4, 4, 4 41 s32i \at1, \ptr, .Lxchal_ofs_ + 0 45 xchal_sa_align \ptr, 0, 1024-4, 4, 4 47 s32i \at1, \ptr, .Lxchal_ofs_ + 0 51 xchal_sa_align \ptr, 0, 1024-4, 4, 4 53 s32i \at1, \ptr, .Lxchal_ofs_ + 0 63 .macro xchal_ncp_load ptr at1 at2 at3 at4 continue=0 ofs=-1 select=XTHAL_SAS_ALL 66 xchal_sa_align \ptr, 0, 1024-4, 4, 4 67 l32i \at1, \ptr, .Lxchal_ofs_ + 0 [all …]
|