/linux-4.19.296/include/linux/unaligned/ |
D | generic.h | 11 #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 …]
|
D | packed_struct.h | 12 const struct __una_u16 *ptr = (const struct __una_u16 *)p; in __get_unaligned_cpu16() local 13 return ptr->x; in __get_unaligned_cpu16() 18 const struct __una_u32 *ptr = (const struct __una_u32 *)p; in __get_unaligned_cpu32() local 19 return ptr->x; in __get_unaligned_cpu32() 24 const struct __una_u64 *ptr = (const struct __una_u64 *)p; in __get_unaligned_cpu64() local 25 return ptr->x; in __get_unaligned_cpu64() 30 struct __una_u16 *ptr = (struct __una_u16 *)p; in __put_unaligned_cpu16() local 31 ptr->x = val; in __put_unaligned_cpu16() 36 struct __una_u32 *ptr = (struct __una_u32 *)p; in __put_unaligned_cpu32() local 37 ptr->x = val; in __put_unaligned_cpu32() [all …]
|
/linux-4.19.296/lib/ |
D | test_kasan.c | 32 char *ptr; in kmalloc_oob_right() local 36 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right() 37 if (!ptr) { in kmalloc_oob_right() 42 ptr[size] = 'x'; in kmalloc_oob_right() 43 kfree(ptr); in kmalloc_oob_right() 48 char *ptr; in kmalloc_oob_left() local 52 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_left() 53 if (!ptr) { in kmalloc_oob_left() 58 *ptr = *(ptr - 1); in kmalloc_oob_left() 59 kfree(ptr); in kmalloc_oob_left() [all …]
|
D | assoc_array.c | 31 const struct assoc_array_ptr *cursor, *ptr, *parent; in assoc_array_subtree_iterate() local 56 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_subtree_iterate() 57 has_meta |= (unsigned long)ptr; in assoc_array_subtree_iterate() 58 if (ptr && assoc_array_ptr_is_leaf(ptr)) { in assoc_array_subtree_iterate() 63 ret = iterator(assoc_array_ptr_to_leaf(ptr), in assoc_array_subtree_iterate() 85 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_subtree_iterate() 86 if (assoc_array_ptr_is_meta(ptr)) { in assoc_array_subtree_iterate() 87 cursor = ptr; in assoc_array_subtree_iterate() 181 struct assoc_array_ptr *cursor, *ptr; in assoc_array_walk() local 213 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_walk() [all …]
|
/linux-4.19.296/include/asm-generic/ |
D | cmpxchg.h | 26 unsigned long __xchg(unsigned long x, volatile void *ptr, int size) in __xchg() argument 33 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() 47 ret = *(volatile u16 *)ptr; in __xchg() 48 *(volatile u16 *)ptr = x; in __xchg() 55 return __xchg_u32(x, ptr); in __xchg() 58 ret = *(volatile u32 *)ptr; in __xchg() 59 *(volatile u32 *)ptr = x; in __xchg() [all …]
|
D | uaccess.h | 57 #define __put_user(x, ptr) \ argument 59 __typeof__(*(ptr)) __x = (x); \ 61 __chk_user_ptr(ptr); \ 62 switch (sizeof (*(ptr))) { \ 67 __pu_err = __put_user_fn(sizeof (*(ptr)), \ 68 ptr, &__x); \ 77 #define put_user(x, ptr) \ argument 79 void __user *__p = (ptr); \ 81 access_ok(VERIFY_WRITE, __p, sizeof(*ptr)) ? \ 82 __put_user((x), ((__typeof__(*(ptr)) __user *)__p)) : \ [all …]
|
D | cmpxchg-local.h | 8 extern unsigned long wrong_size_cmpxchg(volatile void *ptr) 15 static inline unsigned long __cmpxchg_local_generic(volatile void *ptr, in __cmpxchg_local_generic() argument 24 wrong_size_cmpxchg(ptr); in __cmpxchg_local_generic() 28 case 1: prev = *(u8 *)ptr; in __cmpxchg_local_generic() 30 *(u8 *)ptr = (u8)new; in __cmpxchg_local_generic() 32 case 2: prev = *(u16 *)ptr; in __cmpxchg_local_generic() 34 *(u16 *)ptr = (u16)new; in __cmpxchg_local_generic() 36 case 4: prev = *(u32 *)ptr; in __cmpxchg_local_generic() 38 *(u32 *)ptr = (u32)new; in __cmpxchg_local_generic() 40 case 8: prev = *(u64 *)ptr; in __cmpxchg_local_generic() [all …]
|
/linux-4.19.296/crypto/ |
D | dh_helper.c | 46 u8 *ptr = buf; in crypto_dh_encode_key() local 47 u8 * const end = ptr + len; in crypto_dh_encode_key() 56 ptr = dh_pack_data(ptr, end, &secret, sizeof(secret)); in crypto_dh_encode_key() 57 ptr = dh_pack_data(ptr, end, ¶ms->key_size, in crypto_dh_encode_key() 59 ptr = dh_pack_data(ptr, end, ¶ms->p_size, sizeof(params->p_size)); in crypto_dh_encode_key() 60 ptr = dh_pack_data(ptr, end, ¶ms->q_size, sizeof(params->q_size)); in crypto_dh_encode_key() 61 ptr = dh_pack_data(ptr, end, ¶ms->g_size, sizeof(params->g_size)); in crypto_dh_encode_key() 62 ptr = dh_pack_data(ptr, end, params->key, params->key_size); in crypto_dh_encode_key() 63 ptr = dh_pack_data(ptr, end, params->p, params->p_size); in crypto_dh_encode_key() 64 ptr = dh_pack_data(ptr, end, params->q, params->q_size); in crypto_dh_encode_key() [all …]
|
D | ecdh_helper.c | 40 u8 *ptr = buf; in crypto_ecdh_encode_key() local 52 ptr = ecdh_pack_data(ptr, &secret, sizeof(secret)); in crypto_ecdh_encode_key() 53 ptr = ecdh_pack_data(ptr, ¶ms->curve_id, sizeof(params->curve_id)); in crypto_ecdh_encode_key() 54 ptr = ecdh_pack_data(ptr, ¶ms->key_size, sizeof(params->key_size)); in crypto_ecdh_encode_key() 55 ecdh_pack_data(ptr, params->key, params->key_size); in crypto_ecdh_encode_key() 64 const u8 *ptr = buf; in crypto_ecdh_decode_key() local 70 ptr = ecdh_unpack_data(&secret, ptr, sizeof(secret)); in crypto_ecdh_decode_key() 77 ptr = ecdh_unpack_data(¶ms->curve_id, ptr, sizeof(params->curve_id)); in crypto_ecdh_decode_key() 78 ptr = ecdh_unpack_data(¶ms->key_size, ptr, sizeof(params->key_size)); in crypto_ecdh_decode_key() 85 params->key = (void *)ptr; in crypto_ecdh_decode_key()
|
/linux-4.19.296/include/linux/ |
D | kmemleak.h | 30 extern void kmemleak_alloc(const void *ptr, size_t size, int min_count, 32 extern void kmemleak_alloc_percpu(const void __percpu *ptr, size_t size, 36 extern void kmemleak_free(const void *ptr) __ref; 37 extern void kmemleak_free_part(const void *ptr, size_t size) __ref; 38 extern void kmemleak_free_percpu(const void __percpu *ptr) __ref; 39 extern void kmemleak_update_trace(const void *ptr) __ref; 40 extern void kmemleak_not_leak(const void *ptr) __ref; 41 extern void kmemleak_ignore(const void *ptr) __ref; 42 extern void kmemleak_scan_area(const void *ptr, size_t size, gfp_t gfp) __ref; 43 extern void kmemleak_no_scan(const void *ptr) __ref; [all …]
|
D | err.h | 29 static inline long __must_check PTR_ERR(__force const void *ptr) in PTR_ERR() argument 31 return (long) ptr; in PTR_ERR() 34 static inline bool __must_check IS_ERR(__force const void *ptr) in IS_ERR() argument 36 return IS_ERR_VALUE((unsigned long)ptr); in IS_ERR() 39 static inline bool __must_check IS_ERR_OR_NULL(__force const void *ptr) in IS_ERR_OR_NULL() argument 41 return unlikely(!ptr) || IS_ERR_VALUE((unsigned long)ptr); in IS_ERR_OR_NULL() 51 static inline void * __must_check ERR_CAST(__force const void *ptr) in ERR_CAST() argument 54 return (void *) ptr; in ERR_CAST() 57 static inline int __must_check PTR_ERR_OR_ZERO(__force const void *ptr) in PTR_ERR_OR_ZERO() argument 59 if (IS_ERR(ptr)) in PTR_ERR_OR_ZERO() [all …]
|
D | ptr_ring.h | 108 static inline int __ptr_ring_produce(struct ptr_ring *r, void *ptr) in __ptr_ring_produce() argument 117 WRITE_ONCE(r->queue[r->producer++], ptr); in __ptr_ring_produce() 128 static inline int ptr_ring_produce(struct ptr_ring *r, void *ptr) in ptr_ring_produce() argument 133 ret = __ptr_ring_produce(r, ptr); in ptr_ring_produce() 139 static inline int ptr_ring_produce_irq(struct ptr_ring *r, void *ptr) in ptr_ring_produce_irq() argument 144 ret = __ptr_ring_produce(r, ptr); in ptr_ring_produce_irq() 150 static inline int ptr_ring_produce_any(struct ptr_ring *r, void *ptr) in ptr_ring_produce_any() argument 156 ret = __ptr_ring_produce(r, ptr); in ptr_ring_produce_any() 162 static inline int ptr_ring_produce_bh(struct ptr_ring *r, void *ptr) in ptr_ring_produce_bh() argument 167 ret = __ptr_ring_produce(r, ptr); in ptr_ring_produce_bh() [all …]
|
D | if_tun.h | 25 bool tun_is_xdp_frame(void *ptr); 26 void *tun_xdp_to_ptr(void *ptr); 27 void *tun_ptr_to_xdp(void *ptr); 28 void tun_ptr_free(void *ptr); 42 static inline bool tun_is_xdp_frame(void *ptr) in tun_is_xdp_frame() argument 46 static inline void *tun_xdp_to_ptr(void *ptr) in tun_xdp_to_ptr() argument 50 static inline void *tun_ptr_to_xdp(void *ptr) in tun_ptr_to_xdp() argument 54 static inline void tun_ptr_free(void *ptr) in tun_ptr_free() argument
|
/linux-4.19.296/drivers/extcon/ |
D | devres.c | 76 struct extcon_dev **ptr, *edev; in devm_extcon_dev_allocate() local 78 ptr = devres_alloc(devm_extcon_dev_release, sizeof(*ptr), GFP_KERNEL); in devm_extcon_dev_allocate() 79 if (!ptr) in devm_extcon_dev_allocate() 84 devres_free(ptr); in devm_extcon_dev_allocate() 90 *ptr = edev; in devm_extcon_dev_allocate() 91 devres_add(dev, ptr); in devm_extcon_dev_allocate() 128 struct extcon_dev **ptr; in devm_extcon_dev_register() local 131 ptr = devres_alloc(devm_extcon_dev_unreg, sizeof(*ptr), GFP_KERNEL); in devm_extcon_dev_register() 132 if (!ptr) in devm_extcon_dev_register() 137 devres_free(ptr); in devm_extcon_dev_register() [all …]
|
/linux-4.19.296/drivers/misc/lkdtm/ |
D | perms.c | 83 unsigned long *ptr = (unsigned long *)&rodata; in lkdtm_WRITE_RO() local 85 pr_info("attempting bad rodata write at %px\n", ptr); in lkdtm_WRITE_RO() 86 *ptr ^= 0xabcd1234; in lkdtm_WRITE_RO() 91 unsigned long *ptr = &ro_after_init; in lkdtm_WRITE_RO_AFTER_INIT() local 98 if ((*ptr & 0xAA) != 0xAA) { in lkdtm_WRITE_RO_AFTER_INIT() 99 pr_info("%p was NOT written during init!?\n", ptr); in lkdtm_WRITE_RO_AFTER_INIT() 103 pr_info("attempting bad ro_after_init write at %px\n", ptr); in lkdtm_WRITE_RO_AFTER_INIT() 104 *ptr ^= 0xabcd1234; in lkdtm_WRITE_RO_AFTER_INIT() 110 unsigned char *ptr; in lkdtm_WRITE_KERN() local 113 ptr = (unsigned char *)do_overwritten; in lkdtm_WRITE_KERN() [all …]
|
/linux-4.19.296/fs/xfs/ |
D | kmem.c | 21 void *ptr; in kmem_alloc() local 24 ptr = kmalloc(size, lflags); in kmem_alloc() 25 if (ptr || (flags & (KM_MAYFAIL|KM_NOSLEEP))) in kmem_alloc() 26 return ptr; in kmem_alloc() 40 void *ptr; in kmem_alloc_large() local 43 ptr = kmem_alloc(size, flags | KM_MAYFAIL); in kmem_alloc_large() 44 if (ptr) in kmem_alloc_large() 45 return ptr; in kmem_alloc_large() 58 ptr = __vmalloc(size, lflags, PAGE_KERNEL); in kmem_alloc_large() 63 return ptr; in kmem_alloc_large() [all …]
|
/linux-4.19.296/drivers/sh/intc/ |
D | access.c | 78 void __iomem *ptr = (void __iomem *)addr; in test_8() local 79 return intc_get_field_from_handle(__raw_readb(ptr), h); in test_8() 85 void __iomem *ptr = (void __iomem *)addr; in test_16() local 86 return intc_get_field_from_handle(__raw_readw(ptr), h); in test_16() 92 void __iomem *ptr = (void __iomem *)addr; in test_32() local 93 return intc_get_field_from_handle(__raw_readl(ptr), h); in test_32() 99 void __iomem *ptr = (void __iomem *)addr; in write_8() local 100 __raw_writeb(intc_set_field_from_handle(0, data, h), ptr); in write_8() 101 (void)__raw_readb(ptr); /* Defeat write posting */ in write_8() 108 void __iomem *ptr = (void __iomem *)addr; in write_16() local [all …]
|
/linux-4.19.296/drivers/regulator/ |
D | gpio-regulator.c | 54 int ptr; in gpio_regulator_get_value() local 56 for (ptr = 0; ptr < data->nr_states; ptr++) in gpio_regulator_get_value() 57 if (data->states[ptr].gpios == data->state) in gpio_regulator_get_value() 58 return data->states[ptr].value; in gpio_regulator_get_value() 68 int ptr, target = 0, state, best_val = INT_MAX; in gpio_regulator_set_voltage() local 70 for (ptr = 0; ptr < data->nr_states; ptr++) in gpio_regulator_set_voltage() 71 if (data->states[ptr].value < best_val && in gpio_regulator_set_voltage() 72 data->states[ptr].value >= min_uV && in gpio_regulator_set_voltage() 73 data->states[ptr].value <= max_uV) { in gpio_regulator_set_voltage() 74 target = data->states[ptr].gpios; in gpio_regulator_set_voltage() [all …]
|
/linux-4.19.296/fs/nilfs2/ |
D | direct.c | 30 __u64 key, __u64 ptr) in nilfs_direct_set_ptr() argument 32 *(nilfs_direct_dptrs(direct) + key) = cpu_to_le64(ptr); in nilfs_direct_set_ptr() 38 __u64 ptr; in nilfs_direct_lookup() local 42 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup() 43 if (ptr == NILFS_BMAP_INVALID_PTR) in nilfs_direct_lookup() 46 *ptrp = ptr; in nilfs_direct_lookup() 55 __u64 ptr, ptr2; in nilfs_direct_lookup_contig() local 61 ptr = nilfs_direct_get_ptr(direct, key); in nilfs_direct_lookup_contig() 62 if (ptr == NILFS_BMAP_INVALID_PTR) in nilfs_direct_lookup_contig() 67 ret = nilfs_dat_translate(dat, ptr, &blocknr); in nilfs_direct_lookup_contig() [all …]
|
/linux-4.19.296/include/trace/events/ |
D | kmem.h | 15 const void *ptr, 20 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags), 24 __field( const void *, ptr ) 32 __entry->ptr = ptr; 40 __entry->ptr, 48 TP_PROTO(unsigned long call_site, const void *ptr, 51 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags) 56 TP_PROTO(unsigned long call_site, const void *ptr, 59 TP_ARGS(call_site, ptr, bytes_req, bytes_alloc, gfp_flags) 65 const void *ptr, [all …]
|
/linux-4.19.296/drivers/clk/ |
D | clk-devres.c | 19 struct clk **ptr, *clk; in devm_clk_get() local 21 ptr = devres_alloc(devm_clk_release, sizeof(*ptr), GFP_KERNEL); in devm_clk_get() 22 if (!ptr) in devm_clk_get() 27 *ptr = clk; in devm_clk_get() 28 devres_add(dev, ptr); in devm_clk_get() 30 devres_free(ptr); in devm_clk_get() 96 struct clk **ptr, *clk; in devm_get_clk_from_child() local 98 ptr = devres_alloc(devm_clk_release, sizeof(*ptr), GFP_KERNEL); in devm_get_clk_from_child() 99 if (!ptr) in devm_get_clk_from_child() 104 *ptr = clk; in devm_get_clk_from_child() [all …]
|
/linux-4.19.296/lib/zstd/ |
D | zstd_common.c | 30 void *const ptr = ZSTD_PTR_ALIGN((stack)->ptr); \ 31 (stack)->ptr = (char *)ptr + (size); \ 32 (stack)->ptr <= (stack)->end ? ptr : NULL; \ 45 stack->ptr = workspace; in ZSTD_initStack() 54 *size = (BYTE const *)stack->end - (BYTE *)ZSTD_PTR_ALIGN(stack->ptr); in ZSTD_stackAllocAll() 71 void ZSTD_free(void *ptr, ZSTD_customMem customMem) in ZSTD_free() argument 73 if (ptr != NULL) in ZSTD_free() 74 customMem.customFree(customMem.opaque, ptr); in ZSTD_free()
|
D | bitstream.h | 74 char *ptr; member 106 const char *ptr; member 167 bitC->ptr = bitC->startPtr; in BIT_initCStream() 168 bitC->endPtr = bitC->startPtr + dstCapacity - sizeof(bitC->ptr); in BIT_initCStream() 169 if (dstCapacity <= sizeof(bitC->ptr)) in BIT_initCStream() 196 ZSTD_writeLEST(bitC->ptr, bitC->bitContainer); in BIT_flushBitsFast() 197 bitC->ptr += nbBytes; in BIT_flushBitsFast() 208 ZSTD_writeLEST(bitC->ptr, bitC->bitContainer); in BIT_flushBits() 209 bitC->ptr += nbBytes; in BIT_flushBits() 210 if (bitC->ptr > bitC->endPtr) in BIT_flushBits() [all …]
|
/linux-4.19.296/drivers/misc/cb710/ |
D | sgbuf2.c | 48 static inline bool needs_unaligned_copy(const void *ptr) in needs_unaligned_copy() argument 53 return ((uintptr_t)ptr & 3) != 0; in needs_unaligned_copy() 57 static bool sg_dwiter_get_next_block(struct sg_mapping_iter *miter, uint32_t **ptr) in sg_dwiter_get_next_block() argument 68 *ptr = miter->addr + miter->consumed; in sg_dwiter_get_next_block() 95 uint32_t *ptr = NULL; in cb710_sg_dwiter_read_next_block() local 97 if (likely(sg_dwiter_get_next_block(miter, &ptr))) in cb710_sg_dwiter_read_next_block() 98 return ptr ? *ptr : 0; in cb710_sg_dwiter_read_next_block() 135 uint32_t *ptr = NULL; in cb710_sg_dwiter_write_next_block() local 137 if (likely(sg_dwiter_get_next_block(miter, &ptr))) { in cb710_sg_dwiter_write_next_block() 138 if (ptr) in cb710_sg_dwiter_write_next_block() [all …]
|
/linux-4.19.296/include/net/ |
D | snmp.h | 145 __typeof__((mib->mibs) + 0) ptr = mib->mibs; \ 146 this_cpu_inc(ptr[basefield##PKTS]); \ 147 this_cpu_add(ptr[basefield##OCTETS], addend); \ 151 __typeof__((mib->mibs) + 0) ptr = mib->mibs; \ 152 __this_cpu_inc(ptr[basefield##PKTS]); \ 153 __this_cpu_add(ptr[basefield##OCTETS], addend); \ 161 __typeof__(*mib) *ptr = raw_cpu_ptr(mib); \ 162 u64_stats_update_begin(&ptr->syncp); \ 163 ptr->mibs[field] += addend; \ 164 u64_stats_update_end(&ptr->syncp); \ [all …]
|