/kernel/linux/linux-6.6/arch/sparc/include/asm/ |
H A D | uaccess_64.h | 59 #define put_user(x, ptr) ({ \ 60 unsigned long __pu_addr = (unsigned long)(ptr); \ 61 __chk_user_ptr(ptr); \ 62 __put_user_nocheck((__typeof__(*(ptr)))(x), __pu_addr, sizeof(*(ptr)));\ 65 #define get_user(x, ptr) ({ \ 66 unsigned long __gu_addr = (unsigned long)(ptr); \ 67 __chk_user_ptr(ptr); \ 68 __get_user_nocheck((x), __gu_addr, sizeof(*(ptr)), __typeof__(*(ptr)));\ [all...] |
/third_party/gn/src/gn/ |
H A D | pointer_set.h | 24 // T* ptr = *it; 30 // for (T* ptr : my_set) { 54 static size_t MakeHash(const void* ptr) { in MakeHash() 55 return std::hash<const void*>()(ptr); in MakeHash() 100 bool add(T* ptr) { in add() argument 101 NodeType* node = Lookup(ptr); in add() 105 node->ptr_ = ptr; in add() 111 bool contains(T* ptr) const { return Lookup(ptr)->is_valid(); } in contains() 115 bool erase(T* ptr) { in erase() argument 127 insert(T* ptr) insert() argument [all...] |
/third_party/libdrm/tegra/ |
H A D | pushbuf.c | 40 drm_tegra_pushbuf_get_offset(struct drm_tegra_pushbuf *pushbuf, uint32_t *ptr) in drm_tegra_pushbuf_get_offset() argument 42 return ptr - pushbuf->start; in drm_tegra_pushbuf_get_offset() 65 void *ptr; in drm_tegra_pushbuf_begin() local 67 if (pushbuf->ptr + words >= pushbuf->end) { in drm_tegra_pushbuf_begin() 70 offset = pushbuf->ptr - pushbuf->start; in drm_tegra_pushbuf_begin() 72 ptr = realloc(pushbuf->start, size); in drm_tegra_pushbuf_begin() 73 if (!ptr) in drm_tegra_pushbuf_begin() 76 pushbuf->start = ptr; in drm_tegra_pushbuf_begin() 78 pushbuf->ptr = pushbuf->start + offset; in drm_tegra_pushbuf_begin() 82 *ptrp = pushbuf->ptr; in drm_tegra_pushbuf_begin() 88 drm_tegra_pushbuf_end(struct drm_tegra_pushbuf *pushbuf, uint32_t *ptr) drm_tegra_pushbuf_end() argument [all...] |
/foundation/communication/netmanager_ext/frameworks/native/netvpnclient/src/ |
H A D | sysvpn_config.cpp | 70 bool SysVpnConfig::Unmarshalling(Parcel &parcel, sptr<SysVpnConfig> ptr) in Unmarshalling() argument 72 bool allOK = VpnConfig::UnmarshallingVpnConfig(parcel, ptr) && in Unmarshalling() 73 parcel.ReadString(ptr->vpnId_) && in Unmarshalling() 74 parcel.ReadString(ptr->vpnName_) && in Unmarshalling() 75 parcel.ReadInt32(ptr->vpnType_) && in Unmarshalling() 76 parcel.ReadString(ptr->userName_) && in Unmarshalling() 77 parcel.ReadString(ptr->password_) && in Unmarshalling() 78 parcel.ReadBool(ptr->saveLogin_) && in Unmarshalling() 79 parcel.ReadInt32(ptr->userId_) && in Unmarshalling() 80 parcel.ReadString(ptr in Unmarshalling() [all...] |
/kernel/linux/linux-5.10/arch/s390/include/asm/ |
H A D | cmpxchg.h | 15 #define cmpxchg(ptr, o, n) \ 17 __typeof__(*(ptr)) __o = (o); \ 18 __typeof__(*(ptr)) __n = (n); \ 19 (__typeof__(*(ptr))) __sync_val_compare_and_swap((ptr),__o,__n);\ 26 #define xchg(ptr, x) \ 28 __typeof__(ptr) __ptr = (ptr); \ 29 __typeof__(*(ptr)) __old; \ 44 " cdsg %[old],%[new],%[ptr]\ [all...] |
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
H A D | uaccess_32.h | 16 #define __get_user_size(x,ptr,size,retval) \ 21 __get_user_asm(x, ptr, retval, "b"); \ 24 __get_user_asm(x, ptr, retval, "w"); \ 27 __get_user_asm(x, ptr, retval, "l"); \ 30 __get_user_u64(x, ptr, retval); \ 122 #define __put_user_size(x,ptr,size,retval) \ 127 __put_user_asm(x, ptr, retval, "b"); \ 130 __put_user_asm(x, ptr, retval, "w"); \ 133 __put_user_asm(x, ptr, retval, "l"); \ 136 __put_user_u64(x, ptr, retva [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | virtual_address_range.c | 65 static int validate_addr(char *ptr, int high_addr) in validate_addr() argument 67 unsigned long addr = (unsigned long) ptr; in validate_addr() 86 char *ptr; in validate_lower_address_hint() local 88 ptr = mmap((void *) (1UL << 45), MAP_CHUNK_SIZE, PROT_READ | in validate_lower_address_hint() 91 if (ptr == MAP_FAILED) in validate_lower_address_hint() 99 char *ptr[NR_CHUNKS_LOW]; in main() local 105 ptr[i] = mmap(NULL, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main() 108 if (ptr[i] == MAP_FAILED) { in main() 114 if (validate_addr(ptr[i], 0)) in main() 133 munmap(ptr[ in main() [all...] |
/kernel/linux/linux-6.6/arch/sh/include/asm/ |
H A D | uaccess_32.h | 16 #define __get_user_size(x,ptr,size,retval) \ 21 __get_user_asm(x, ptr, retval, "b"); \ 24 __get_user_asm(x, ptr, retval, "w"); \ 27 __get_user_asm(x, ptr, retval, "l"); \ 30 __get_user_u64(x, ptr, retval); \ 122 #define __put_user_size(x,ptr,size,retval) \ 127 __put_user_asm(x, ptr, retval, "b"); \ 130 __put_user_asm(x, ptr, retval, "w"); \ 133 __put_user_asm(x, ptr, retval, "l"); \ 136 __put_user_u64(x, ptr, retva [all...] |
/third_party/node/deps/cares/src/lib/ |
H A D | ares_library_init.c | 74 void *(*ares_realloc)(void *ptr, size_t size) = default_realloc; 75 void (*ares_free)(void *ptr) = default_free; 79 void *ptr = ares_malloc(size); in ares_malloc_zero() local 80 if (ptr != NULL) { in ares_malloc_zero() 81 memset(ptr, 0, size); in ares_malloc_zero() 84 return ptr; in ares_malloc_zero() 87 void *ares_realloc_zero(void *ptr, size_t orig_size, size_t new_size) in ares_realloc_zero() argument 89 void *p = ares_realloc(ptr, new_size); in ares_realloc_zero() 117 void (*afree)(void *ptr), in ares_library_init_mem() 118 void *(*arealloc)(void *ptr, size_ in ares_library_init_mem() 116 ares_library_init_mem(int flags, void *(*amalloc)(size_t size), void (*afree)(void *ptr), void *(*arealloc)(void *ptr, size_t size)) ares_library_init_mem() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/r300/ |
H A D | r300_cb.h | 75 #define BEGIN_CB(ptr, size) do { \ 76 assert(sizeof(*(ptr)) == sizeof(uint32_t)); \ 78 cs_ptr = (ptr); \ 81 #define NEW_CB(ptr, size) \ 83 assert(sizeof(*(ptr)) == sizeof(uint32_t)); \ 85 cs_ptr = (ptr) = malloc((size) * sizeof(uint32_t)); \ 101 #define NEW_CB(ptr, size) \ 102 cs_ptr = (ptr) = malloc((size) * sizeof(uint32_t)) 104 #define BEGIN_CB(ptr, size) cs_ptr = (ptr) [all...] |
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
H A D | union-align.rs | 18 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_Bar() 30 unsafe { ::std::ptr::addr_of!((*ptr).foo) as usize - ptr as usize }, in bindgen_test_layout_Bar() 39 ::std::ptr::write_bytes(&mut s, 0, 1); in default() 54 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_Baz() 66 unsafe { ::std::ptr::addr_of!((*ptr).bar) as usize - ptr as usize }, in bindgen_test_layout_Baz() 75 ::std::ptr in default() [all...] |
H A D | issue-1281.rs | 22 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_foo() 34 unsafe { ::std::ptr::addr_of!((*ptr).foo) as usize - ptr as usize }, in bindgen_test_layout_foo() 43 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_bar() 55 unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize }, in bindgen_test_layout_bar() 70 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_baz() 82 unsafe { ::std::ptr in bindgen_test_layout_baz() [all...] |
H A D | derive-partialeq-pointer.rs | 17 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_Bar() 29 unsafe { ::std::ptr::addr_of!((*ptr).b) as usize - ptr as usize }, in bindgen_test_layout_Bar() 38 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 70 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 92 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 106 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_a() 118 unsafe { ::std::ptr::addr_of!((*ptr) in bindgen_test_layout_a() [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | test_vmalloc.c | 84 void *ptr; in random_size_align_alloc_test() local 100 ptr = __vmalloc_node(size, align, GFP_KERNEL | __GFP_ZERO, 0, in random_size_align_alloc_test() 102 if (!ptr) in random_size_align_alloc_test() 105 vfree(ptr); in random_size_align_alloc_test() 117 void *ptr; in align_shift_alloc_test() local 123 ptr = __vmalloc_node(PAGE_SIZE, align, GFP_KERNEL|__GFP_ZERO, 0, in align_shift_alloc_test() 125 if (!ptr) in align_shift_alloc_test() 128 vfree(ptr); in align_shift_alloc_test() 136 void *ptr; in fix_align_alloc_test() local 140 ptr in fix_align_alloc_test() 177 void **ptr; long_busy_list_alloc_test() local 219 void **ptr, **junk_ptr, *tmp; full_fit_alloc_test() local 270 void *ptr; fix_size_alloc_test() local [all...] |
/third_party/cups-filters/cupsfilters/ |
H A D | ipp.c | 498 *ptr; /* Pointer into string */; in ippfind_based_uri_converter() local 605 ptr = buffer; in ippfind_based_uri_converter() 612 while (ptr && !isalnum(*ptr & 255)) ptr ++; in ippfind_based_uri_converter() 614 service_hostname = ptr; in ippfind_based_uri_converter() 615 ptr = memchr(ptr, '\t', MAX_OUTPUT_LEN - (ptr - buffer)); in ippfind_based_uri_converter() 616 if (!ptr) got in ippfind_based_uri_converter() [all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/mali/common/ |
H A D | mali_osk_list.h | 202 * @param ptr the pointer to the _mali_osk_list_t member in this structure 204 * @param member the member of the structure that ptr points to. 206 * \a member, as pointed to by the _mali_osk_list_t \a *ptr. 208 #define _MALI_OSK_LIST_ENTRY(ptr, type, member) \ 209 _MALI_OSK_CONTAINER_OF(ptr, type, member) 223 * loop body, then it is guaranteed that ptr->member == list, even if the loop 226 * @param ptr a pointer to an object of type 'type', which points to the 237 #define _MALI_OSK_LIST_FOREACHENTRY(ptr, tmp, list, type, member) \ 238 for (ptr = _MALI_OSK_LIST_ENTRY((list)->next, type, member), \ 239 tmp = _MALI_OSK_LIST_ENTRY(ptr [all...] |
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/mali/common/ |
H A D | mali_osk_list.h | 203 * @param ptr the pointer to the _mali_osk_list_t member in this structure 205 * @param member the member of the structure that ptr points to. 207 * \a member, as pointed to by the _mali_osk_list_t \a *ptr. 209 #define MALI_OSK_LIST_ENTRY(ptr, type, member) MALI_OSK_CONTAINER_OF(ptr, type, member) 223 * loop body, then it is guaranteed that ptr->member == list, even if the loop 226 * @param ptr a pointer to an object of type 'type', which points to the 237 #define MALI_OSK_LIST_FOREACHENTRY(ptr, tmp, list, type, member) \ 238 for (ptr = MALI_OSK_LIST_ENTRY((list)->next, type, member), \ 239 tmp = MALI_OSK_LIST_ENTRY((ptr) [all...] |
/kernel/linux/linux-5.10/drivers/misc/cb710/ |
H A D | sgbuf2.c | 45 static inline bool needs_unaligned_copy(const void *ptr) in needs_unaligned_copy() argument 50 return ((uintptr_t)ptr & 3) != 0; in needs_unaligned_copy() 54 static bool sg_dwiter_get_next_block(struct sg_mapping_iter *miter, uint32_t **ptr) in sg_dwiter_get_next_block() argument 65 *ptr = miter->addr + miter->consumed; in sg_dwiter_get_next_block() 92 uint32_t *ptr = NULL; in cb710_sg_dwiter_read_next_block() local 94 if (likely(sg_dwiter_get_next_block(miter, &ptr))) in cb710_sg_dwiter_read_next_block() 95 return ptr ? *ptr : 0; in cb710_sg_dwiter_read_next_block() 133 uint32_t *ptr = NULL; in cb710_sg_dwiter_write_next_block() local 135 if (likely(sg_dwiter_get_next_block(miter, &ptr))) { in cb710_sg_dwiter_write_next_block() [all...] |
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | percpu.h | 13 size_t align, void *base_addr, int off, void __percpu *ptr), 15 TP_ARGS(reserved, is_atomic, size, align, base_addr, off, ptr), 24 __field( void __percpu *, ptr ) 34 __entry->ptr = ptr; 37 TP_printk("reserved=%d is_atomic=%d size=%zu align=%zu base_addr=%p off=%d ptr=%p", 40 __entry->base_addr, __entry->off, __entry->ptr) 45 TP_PROTO(void *base_addr, int off, void __percpu *ptr), 47 TP_ARGS(base_addr, off, ptr), 52 __field( void __percpu *, ptr ) [all...] |
/kernel/linux/linux-6.6/drivers/misc/cb710/ |
H A D | sgbuf2.c | 45 static inline bool needs_unaligned_copy(const void *ptr) in needs_unaligned_copy() argument 50 return ((uintptr_t)ptr & 3) != 0; in needs_unaligned_copy() 54 static bool sg_dwiter_get_next_block(struct sg_mapping_iter *miter, uint32_t **ptr) in sg_dwiter_get_next_block() argument 65 *ptr = miter->addr + miter->consumed; in sg_dwiter_get_next_block() 92 uint32_t *ptr = NULL; in cb710_sg_dwiter_read_next_block() local 94 if (likely(sg_dwiter_get_next_block(miter, &ptr))) in cb710_sg_dwiter_read_next_block() 95 return ptr ? *ptr : 0; in cb710_sg_dwiter_read_next_block() 133 uint32_t *ptr = NULL; in cb710_sg_dwiter_write_next_block() local 135 if (likely(sg_dwiter_get_next_block(miter, &ptr))) { in cb710_sg_dwiter_write_next_block() [all...] |
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | percpu.h | 16 void __percpu *ptr, size_t bytes_alloc, gfp_t gfp_flags), 19 ptr, bytes_alloc, gfp_flags), 29 __field( void __percpu *, ptr ) 41 __entry->ptr = ptr; 46 TP_printk("call_site=%pS reserved=%d is_atomic=%d size=%zu align=%zu base_addr=%p off=%d ptr=%p bytes_alloc=%zu gfp_flags=%s", 50 __entry->base_addr, __entry->off, __entry->ptr, 56 TP_PROTO(void *base_addr, int off, void __percpu *ptr), 58 TP_ARGS(base_addr, off, ptr), 63 __field( void __percpu *, ptr ) [all...] |
/kernel/liteos_m/arch/risc-v/nuclei/gcc/nmsis/Core/Include/ |
H A D | core_compatiable.h | 49 #define __LDRBT(ptr) __LB((ptr)) 51 #define __LDRHT(ptr) __LH((ptr)) 53 #define __LDRT(ptr) __LW((ptr)) 56 #define __STRBT(val, ptr) __SB((ptr), (val)) 58 #define __STRHT(val, ptr) __SH((ptr), (va [all...] |
/third_party/mesa3d/src/util/ |
H A D | os_memory_fd.c | 68 os_import_memory_fd(int fd, void **ptr, uint64_t *size, char const *driver_id) in os_import_memory_fd() argument 92 *ptr = (void*)((uintptr_t)mapped_ptr + header.offset); in os_import_memory_fd() 104 void *ptr, *buf; in os_malloc_aligned_fd() local 133 ptr = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_SHARED, mem_fd, 0); in os_malloc_aligned_fd() 134 if (ptr == MAP_FAILED) in os_malloc_aligned_fd() 143 buf = (char *)(((uintptr_t)ptr + header_size + alignment - 1) & ~((uintptr_t)(alignment - 1))); in os_malloc_aligned_fd() 144 offset = (size_t)((uintptr_t)buf - (uintptr_t)ptr); in os_malloc_aligned_fd() 145 struct memory_header* header = (struct memory_header*)ptr; in os_malloc_aligned_fd() 170 os_free_fd(void *ptr) in os_free_fd() argument 172 if (ptr) { in os_free_fd() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_init/ |
H A D | 5-1.c | 91 void *ptr, *ptr_prev = NULL; in main() local 161 ptr = malloc(sz); /* Allocate one page of memory */ in main() 162 if (ptr == NULL) in main() 167 *(void **)ptr = ptr_prev; /* Write into the allocated page */ in main() 168 ptr_prev = ptr; in main() 176 ptr = malloc(sizeof(void *)); /* Allocate every remaining bits of memory */ in main() 177 if (ptr == NULL) in main() 182 *(void **)ptr = ptr_prev; /* Keep track of allocated memory */ in main() 183 ptr_prev = ptr; in main() 201 ptr in main() [all...] |
/third_party/musl/libc-test/src/common/ |
H A D | cfi_util.h | 37 struct dirent *ptr;
in ShowCfiLogFile() local 39 while ((ptr = readdir(dir)) != NULL) {
in ShowCfiLogFile() 40 if (strstr(ptr->d_name, UBSAN_LOG_TAG) != NULL) {
in ShowCfiLogFile() 41 printf("%s: %s\n", UBSAN_LOG_DIR, ptr->d_name);
in ShowCfiLogFile() 55 struct dirent *ptr;
in ClearCfiLog() local 57 while ((ptr = readdir(dir)) != NULL) {
in ClearCfiLog() 58 if (strstr(ptr->d_name, log_tag) != NULL) {
in ClearCfiLog() 60 snprintf(tmp, BUFFER_SIZE, "%s/%s", log_dir, ptr->d_name);
in ClearCfiLog() 117 struct dirent *ptr;
in FindDirAndCheck() local 118 while ((ptr in FindDirAndCheck() [all...] |