/linux/drivers/media/pci/zoran/ |
H A D | zr36050.c | 41 static u8 zr36050_read(struct zr36050 *ptr, u16 reg) in zr36050_read() argument 43 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_read() 47 if (ptr->codec->master_data->readreg) in zr36050_read() 48 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xFF; in zr36050_read() 50 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36050_read() 52 zrdev_dbg(zr, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); in zr36050_read() 57 static void zr36050_write(struct zr36050 *ptr, u16 reg, u8 value) in zr36050_write() argument 59 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36050_write() 61 zrdev_dbg(zr, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, reg); in zr36050_write() 64 if (ptr->codec->master_data->writereg) in zr36050_write() [all …]
|
H A D | zr36060.c | 41 static u8 zr36060_read(struct zr36060 *ptr, u16 reg) in zr36060_read() argument 44 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_read() 47 if (ptr->codec->master_data->readreg) in zr36060_read() 48 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xff; in zr36060_read() 50 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36060_read() 55 static void zr36060_write(struct zr36060 *ptr, u16 reg, u8 value) in zr36060_write() argument 57 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36060_write() 62 if (ptr->codec->master_data->writereg) in zr36060_write() 63 ptr->codec->master_data->writereg(ptr->codec, reg, value); in zr36060_write() 65 zrdev_err(zr, "%s: invalid I/O setup, nothing written!\n", ptr->name); in zr36060_write() [all …]
|
H A D | zr36016.c | 33 static u8 zr36016_read(struct zr36016 *ptr, u16 reg) in zr36016_read() argument 36 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_read() 39 if (ptr->codec->master_data->readreg) in zr36016_read() 40 value = (ptr->codec->master_data->readreg(ptr->codec, reg)) & 0xFF; in zr36016_read() 42 zrdev_err(zr, "%s: invalid I/O setup, nothing read!\n", ptr->name); in zr36016_read() 44 zrdev_dbg(zr, "%s: reading from 0x%04x: %02x\n", ptr->name, reg, value); in zr36016_read() 49 static void zr36016_write(struct zr36016 *ptr, u16 reg, u8 value) in zr36016_write() argument 51 struct zoran *zr = videocodec_to_zoran(ptr->codec); in zr36016_write() 53 zrdev_dbg(zr, "%s: writing 0x%02x to 0x%04x\n", ptr->name, value, reg); in zr36016_write() 56 if (ptr->codec->master_data->writereg) in zr36016_write() [all …]
|
/linux/tools/testing/selftests/mm/ |
H A D | mseal_test.c | 65 static int sys_mprotect(void *ptr, size_t size, unsigned long prot) in sys_mprotect() argument 70 sret = syscall(__NR_mprotect, ptr, size, prot); in sys_mprotect() 74 static int sys_mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, in sys_mprotect_pkey() argument 80 sret = syscall(__NR_pkey_mprotect, ptr, size, orig_prot, pkey); in sys_mprotect_pkey() 84 static int sys_munmap(void *ptr, size_t size) in sys_munmap() argument 89 sret = syscall(__NR_munmap, ptr, size); in sys_munmap() 172 void *ptr; in setup_single_address() local 174 ptr = mmap(NULL, size, PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in setup_single_address() 175 *ptrOut = ptr; in setup_single_address() 180 void *ptr; in setup_single_address_rw() local 187 clean_single_address(void * ptr,int size) clean_single_address() argument 194 seal_single_address(void * ptr,int size) seal_single_address() argument 204 void *ptr; seal_support() local 232 void *ptr; test_seal_addseal() local 248 void *ptr; test_seal_unmapped_start() local 276 void *ptr; test_seal_unmapped_middle() local 308 void *ptr; test_seal_unmapped_end() local 337 void *ptr; test_seal_multiple_vmas() local 368 void *ptr; test_seal_split_start() local 393 void *ptr; test_seal_split_end() local 417 void *ptr; test_seal_invalid_input() local 452 void *ptr; test_seal_zero_length() local 476 void *ptr; test_seal_zero_address() local 503 void *ptr; test_seal_twice() local 522 void *ptr; test_seal_mprotect() local 546 void *ptr; test_seal_start_mprotect() local 576 void *ptr; test_seal_end_mprotect() local 606 void *ptr; test_seal_mprotect_unalign_len() local 635 void *ptr; test_seal_mprotect_unalign_len_variant_2() local 663 void *ptr; test_seal_mprotect_two_vma() local 698 void *ptr; test_seal_mprotect_two_vma_with_split() local 745 void *ptr; test_seal_mprotect_partial_mprotect() local 771 void *ptr; test_seal_mprotect_partial_mprotect_tail() local 807 void *ptr; test_seal_mprotect_two_vma_with_gap() local 850 void *ptr; test_seal_mprotect_split() local 887 void *ptr; test_seal_mprotect_merge() local 921 void *ptr; test_seal_munmap() local 952 void *ptr; test_seal_munmap_two_vma() local 993 void *ptr; test_seal_munmap_vma_with_gap() local 1024 void *ptr; test_seal_munmap_partial_across_vmas() local 1054 void *ptr; test_munmap_start_freed() local 1094 void *ptr; test_munmap_end_freed() local 1124 void *ptr; test_munmap_middle_freed() local 1168 void *ptr; test_seal_mremap_shrink() local 1197 void *ptr; test_seal_mremap_expand() local 1229 void *ptr, *newPtr; test_seal_mremap_move() local 1262 void *ptr; test_seal_mmap_overwrite_prot() local 1290 void *ptr; test_seal_mmap_expand() local 1321 void *ptr; test_seal_mmap_shrink() local 1349 void *ptr; test_seal_mremap_shrink_fixed() local 1380 void *ptr; test_seal_mremap_expand_fixed() local 1411 void *ptr; test_seal_mremap_move_fixed() local 1441 void *ptr; test_seal_mremap_move_fixed_zero() local 1472 void *ptr; test_seal_mremap_move_dontunmap() local 1501 void *ptr, *ptr2; test_seal_mremap_move_dontunmap_anyaddr() local 1542 void *ptr; test_seal_merge_and_split() local 1634 void *ptr; test_seal_discard_ro_anon_on_rw() local 1663 void *ptr; test_seal_discard_ro_anon_on_pkey() local 1710 void *ptr; test_seal_discard_ro_anon_on_filebacked() local 1747 void *ptr; test_seal_discard_ro_anon_on_shared() local 1776 void *ptr; test_seal_discard_ro_anon() local 1806 void *ptr; test_seal_discard_across_vmas() local 1837 void *ptr; test_seal_madvise_nodiscard() local [all...] |
H A D | hmm-tests.c | 38 void *ptr; member 187 cmd.addr = (__u64)buffer->ptr; in hmm_dmirror_cmd() 188 cmd.ptr = (__u64)buffer->mirror; in hmm_dmirror_cmd() 210 if (buffer->ptr) in hmm_buffer_free() 211 munmap(buffer->ptr, buffer->size); in hmm_buffer_free() 298 int *ptr; in TEST_F() local 314 buffer->ptr = mmap(NULL, size, in TEST_F() 318 ASSERT_NE(buffer->ptr, MAP_FAILED); in TEST_F() 324 i = 2 * self->page_size / sizeof(*ptr); in TEST_F() 325 for (ptr = buffer->ptr; i < size / sizeof(*ptr); ++i) in TEST_F() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | dynptr_fail.c | 18 struct bpf_dynptr ptr; member 62 static int get_map_val_dynptr(struct bpf_dynptr *ptr) in get_map_val_dynptr() argument 72 bpf_dynptr_from_mem(map_val, sizeof(*map_val), 0, ptr); in get_map_val_dynptr() 84 struct bpf_dynptr ptr = {}; in ringbuf_missing_release1() local 86 bpf_ringbuf_reserve_dynptr(&ringbuf, val, 0, &ptr); in ringbuf_missing_release1() 119 struct bpf_dynptr ptr; in missing_release_callback_fn() local 121 bpf_ringbuf_reserve_dynptr(&ringbuf, val, 0, &ptr); in missing_release_callback_fn() 142 struct bpf_dynptr ptr; in ringbuf_release_uninit_dynptr() local 145 bpf_ringbuf_submit_dynptr(&ptr, 0); in ringbuf_release_uninit_dynptr() 155 struct bpf_dynptr ptr; in use_after_invalid() local [all …]
|
H A D | dynptr_success.c | 41 struct bpf_dynptr ptr; in test_read_write() local 47 bpf_ringbuf_reserve_dynptr(&ringbuf, sizeof(write_data), 0, &ptr); in test_read_write() 50 err = bpf_dynptr_write(&ptr, 0, write_data, sizeof(write_data), 0); in test_read_write() 53 err = err ?: bpf_dynptr_read(read_data, sizeof(read_data), &ptr, 0, 0); in test_read_write() 63 bpf_ringbuf_discard_dynptr(&ptr, 0); in test_read_write() 71 struct bpf_dynptr ptr; in test_dynptr_data() local 88 bpf_dynptr_from_mem(map_val, map_val_size, 0, &ptr); in test_dynptr_data() 91 data = bpf_dynptr_data(&ptr, map_val_size + 1, 1); in test_dynptr_data() 98 data = bpf_dynptr_data(&ptr, 0, map_val_size + 1); in test_dynptr_data() 104 data = bpf_dynptr_data(&ptr, 0, sizeof(__u32)); in test_dynptr_data() [all …]
|
/linux/arch/arm/include/asm/ |
H A D | cmpxchg.h | 30 __arch_xchg(unsigned long x, volatile void *ptr, int size) in __arch_xchg() argument 41 prefetchw((const void *)ptr); in __arch_xchg() 53 : "r" (x), "r" (ptr) in __arch_xchg() 63 : "r" (x), "r" (ptr) in __arch_xchg() 74 : "r" (x), "r" (ptr) in __arch_xchg() 83 ret = *(volatile unsigned char *)ptr; in __arch_xchg() 84 *(volatile unsigned char *)ptr = x; in __arch_xchg() 90 ret = *(volatile unsigned long *)ptr; in __arch_xchg() 91 *(volatile unsigned long *)ptr = x; in __arch_xchg() 99 : "r" (x), "r" (ptr) in __arch_xchg() [all …]
|
/linux/net/bluetooth/ |
H A 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() 42 return eir_append_data(ptr, ad_len, EIR_NAME_SHORT, in eir_append_local_name() 49 u8 eir_append_appearance(struct hci_dev *hdev, u8 *ptr, u8 ad_len) in eir_append_appearance() argument 51 return eir_append_le16(ptr, ad_len, EIR_APPEARANCE, hdev->appearance); in eir_append_appearance() 69 u8 *ptr = data, *uuids_start = NULL; in create_uuid16_list() local 73 return ptr; in create_uuid16_list() 89 uuids_start = ptr; in create_uuid16_list() 92 ptr += 2; in create_uuid16_list() [all …]
|
/linux/arch/xtensa/variants/test_kc705_hifi/include/variant/ |
H A 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/arch/x86/include/asm/ |
H A D | cmpxchg.h | 42 #define __xchg_op(ptr, arg, op, lock) \ argument 44 __typeof__ (*(ptr)) __ret = (arg); \ 45 switch (sizeof(*(ptr))) { \ 48 : "+q" (__ret), "+m" (*(ptr)) \ 53 : "+r" (__ret), "+m" (*(ptr)) \ 58 : "+r" (__ret), "+m" (*(ptr)) \ 63 : "+r" (__ret), "+m" (*(ptr)) \ 78 #define arch_xchg(ptr, v) __xchg_op((ptr), (v), xchg, "") argument 85 #define __raw_cmpxchg(ptr, old, new, size, lock) \ argument 87 __typeof__(*(ptr)) __ret; \ [all …]
|
/linux/arch/parisc/include/asm/ |
H A D | cmpxchg.h | 25 __arch_xchg(unsigned long x, volatile void *ptr, int size) in __arch_xchg() argument 29 case 8: return __xchg64(x, (volatile unsigned long *) ptr); in __arch_xchg() 31 case 4: return __xchg32((int) x, (volatile int *) ptr); in __arch_xchg() 32 case 1: return __xchg8((char) x, (volatile char *) ptr); in __arch_xchg() 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))); \ 60 extern u8 __cmpxchg_u8(volatile u8 *ptr, u8 old, u8 new_); [all …]
|
H A D | uaccess.h | 23 #define LDD_USER(sr, val, ptr) __get_user_asm64(sr, val, ptr) argument 24 #define STD_USER(sr, x, ptr) __put_user_asm64(sr, x, ptr) argument 26 #define LDD_USER(sr, val, ptr) __get_user_asm(sr, val, "ldd", ptr) argument 27 #define STD_USER(sr, x, ptr) __put_user_asm(sr, "std", x, ptr) argument 30 #define __get_user_internal(sr, val, ptr) \ argument 34 switch (sizeof(*(ptr))) { \ 35 case 1: __get_user_asm(sr, val, "ldb", ptr); break; \ 36 case 2: __get_user_asm(sr, val, "ldh", ptr); break; \ 37 case 4: __get_user_asm(sr, val, "ldw", ptr); break; \ 38 case 8: LDD_USER(sr, val, ptr); break; \ [all …]
|
/linux/arch/xtensa/variants/test_kc705_be/include/variant/ |
H A 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/arch/mips/include/asm/ |
H A D | cmpxchg.h | 67 extern unsigned long __xchg_small(volatile void *ptr, unsigned long val, 71 unsigned long __arch_xchg(volatile void *ptr, unsigned long x, int size) in __arch_xchg() argument 76 return __xchg_small(ptr, x, size); in __arch_xchg() 79 return __xchg_asm("ll", "sc", (volatile u32 *)ptr, x); in __arch_xchg() 85 return __xchg_asm("lld", "scd", (volatile u64 *)ptr, x); in __arch_xchg() 92 #define arch_xchg(ptr, x) \ argument 94 __typeof__(*(ptr)) __res; \ 104 __res = (__typeof__(*(ptr))) \ 105 __arch_xchg((ptr), (unsigned long)(x), sizeof(*(ptr))); \ 148 extern unsigned long __cmpxchg_small(volatile void *ptr, unsigned long old, [all …]
|
/linux/arch/loongarch/include/asm/ |
H A D | cmpxchg.h | 25 static inline unsigned int __xchg_small(volatile void *ptr, unsigned int val, in __xchg_small() argument 41 shift = (unsigned long)ptr & 0x3; in __xchg_small() 49 ptr32 = (volatile u32 *)((unsigned long)ptr & ~0x3); in __xchg_small() 65 __arch_xchg(volatile void *ptr, unsigned long x, int size) in __arch_xchg() argument 70 return __xchg_small(ptr, x, size); in __arch_xchg() 73 return __xchg_asm("amswap_db.w", (volatile u32 *)ptr, (u32)x); in __arch_xchg() 76 return __xchg_asm("amswap_db.d", (volatile u64 *)ptr, (u64)x); in __arch_xchg() 85 #define arch_xchg(ptr, x) \ argument 87 __typeof__(*(ptr)) __res; \ 89 __res = (__typeof__(*(ptr))) \ [all …]
|
H A D | uaccess.h | 45 #define get_user(x, ptr) \ argument 47 const __typeof__(*(ptr)) __user *__p = (ptr); \ 71 #define put_user(x, ptr) \ argument 73 __typeof__(*(ptr)) __user *__p = (ptr); \ 100 #define __get_user(x, ptr) \ argument 104 __chk_user_ptr(ptr); \ 105 __get_user_common((x), sizeof(*(ptr)), ptr); \ 129 #define __put_user(x, ptr) \ argument 132 __typeof__(*(ptr)) __pu_val; \ 135 __chk_user_ptr(ptr); \ [all …]
|
/linux/include/rdma/ |
H A 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/arch/alpha/include/asm/ |
H A D | cmpxchg.h | 100 ____xchg(volatile void *ptr, unsigned long x, int size) in ____xchg() argument 103 size == 1 ? ____xchg_u8(ptr, x) : in ____xchg() 104 size == 2 ? ____xchg_u16(ptr, x) : in ____xchg() 105 size == 4 ? ____xchg_u32(ptr, x) : in ____xchg() 106 size == 8 ? ____xchg_u64(ptr, x) : in ____xchg() 217 ____cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in ____cmpxchg() argument 221 size == 1 ? ____cmpxchg_u8(ptr, old, new) : in ____cmpxchg() 222 size == 2 ? ____cmpxchg_u16(ptr, old, new) : in ____cmpxchg() 223 size == 4 ? ____cmpxchg_u32(ptr, old, new) : in ____cmpxchg() 224 size == 8 ? ____cmpxchg_u64(ptr, old, new) : in ____cmpxchg() [all …]
|
/linux/arch/csky/include/asm/ |
H A D | cmpxchg.h | 11 #define __xchg_relaxed(new, ptr, size) \ argument 13 __typeof__(ptr) __ptr = (ptr); \ 15 __typeof__(*(ptr)) __ret; \ 22 __ptr = (__typeof__(ptr))((ulong)__ptr & ~2); \ 34 __ret = (__typeof__(*(ptr))) \ 54 #define arch_xchg_relaxed(ptr, x) \ argument 55 (__xchg_relaxed((x), (ptr), sizeof(*(ptr)))) 57 #define __cmpxchg_relaxed(ptr, old, new, size) \ argument 59 __typeof__(ptr) __ptr = (ptr); \ 63 __typeof__(*(ptr)) __ret; \ [all …]
|
/linux/arch/sparc/include/asm/ |
H A D | cmpxchg_64.h | 55 #define arch_xchg(ptr,x) \ argument 56 ({ __typeof__(*(ptr)) __ret; \ 57 __ret = (__typeof__(*(ptr))) \ 58 __arch_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() 91 __arch_xchg(unsigned long x, __volatile__ void * ptr, int size) in __arch_xchg() argument 95 return xchg16(ptr, x); in __arch_xchg() 97 return xchg32(ptr, x); in __arch_xchg() [all …]
|
/linux/arch/powerpc/include/asm/ |
H A D | cmpxchg.h | 218 __xchg_local(void *ptr, unsigned long x, unsigned int size) in __xchg_local() argument 222 return __xchg_u8_local(ptr, x); in __xchg_local() 224 return __xchg_u16_local(ptr, x); in __xchg_local() 226 return __xchg_u32_local(ptr, x); in __xchg_local() 229 return __xchg_u64_local(ptr, x); in __xchg_local() 237 __xchg_relaxed(void *ptr, unsigned long x, unsigned int size) in __xchg_relaxed() argument 241 return __xchg_u8_relaxed(ptr, x); in __xchg_relaxed() 243 return __xchg_u16_relaxed(ptr, x); in __xchg_relaxed() 245 return __xchg_u32_relaxed(ptr, x); in __xchg_relaxed() 248 return __xchg_u64_relaxed(ptr, x); in __xchg_relaxed() [all …]
|
/linux/arch/xtensa/variants/test_mmuhifi_c3/include/variant/ |
H A 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 …]
|
/linux/mm/kasan/ |
H A D | kasan_test_c.c | 165 char *ptr; in kmalloc_oob_right() local 168 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right() 169 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, ptr); in kmalloc_oob_right() 171 OPTIMIZER_HIDE_VAR(ptr); in kmalloc_oob_right() 177 KUNIT_EXPECT_KASAN_FAIL(test, ptr[size] = 'x'); in kmalloc_oob_right() 183 KUNIT_EXPECT_KASAN_FAIL(test, ptr[size + 5] = 'y'); in kmalloc_oob_right() 186 KUNIT_EXPECT_KASAN_FAIL(test, ptr[0] = in kmalloc_oob_right() 187 ptr[size + KASAN_GRANULE_SIZE + 5]); in kmalloc_oob_right() 189 kfree(ptr); in kmalloc_oob_right() 194 char *ptr; in kmalloc_oob_left() local [all …]
|
/linux/drivers/gpu/drm/radeon/ |
H A D | atom.c | 181 int *ptr, uint32_t *saved, int print) in atom_get_src_int() argument 189 idx = U16(*ptr); in atom_get_src_int() 190 (*ptr) += 2; in atom_get_src_int() 221 idx = U8(*ptr); in atom_get_src_int() 222 (*ptr)++; in atom_get_src_int() 233 idx = U8(*ptr); in atom_get_src_int() 234 (*ptr)++; in atom_get_src_int() 273 idx = U16(*ptr); in atom_get_src_int() 274 (*ptr) += 2; in atom_get_src_int() 284 idx = U8(*ptr); in atom_get_src_int() [all …]
|