/third_party/ltp/tools/sparse/sparse-src/validation/ |
H A D | typeof-mods.c | 8 unsigned int obj, *ptr; in test_spec() local 10 typeof(ptr) ptr2 = ptr; in test_spec() 11 typeof(*ptr) var2 = obj; in test_spec() 12 typeof(*ptr) *ptr3 = ptr; in test_spec() 13 typeof(obj) *ptr4 = ptr; in test_spec() 15 ptr = ptr; in test_spec() 16 ptr in test_spec() 22 const int obj, *ptr; test_const() local 34 volatile int obj, *ptr; test_volatile() local 48 int *restrict obj, *restrict *ptr; test_restrict() local 62 int _Atomic obj, *ptr; test_atomic() local 77 type_t obj, *ptr; test_bitwise() local 91 static int obj, *ptr; test_static() local 105 static __thread int obj, *ptr; test_tls() local 119 int __nocast obj, *ptr; test_nocast() local [all...] |
/third_party/skia/third_party/externals/expat/expat/lib/ |
H A D | xmltok_impl.c | 44 # define IS_INVALID_CHAR(enc, ptr, n) (0) 47 # define INVALID_LEAD_CASE(n, ptr, nextTokPtr) \ 49 if (end - ptr < n) \ 51 if (IS_INVALID_CHAR(enc, ptr, n)) { \ 52 *(nextTokPtr) = (ptr); \ 55 ptr += n; \ 58 # define INVALID_CASES(ptr, nextTokPtr) \ 59 INVALID_LEAD_CASE(2, ptr, nextTokPtr) \ 60 INVALID_LEAD_CASE(3, ptr, nextTokPtr) \ 61 INVALID_LEAD_CASE(4, ptr, nextTokPt [all...] |
/third_party/python/Modules/expat/ |
H A D | xmltok_impl.c | 45 # define IS_INVALID_CHAR(enc, ptr, n) (0) 48 # define INVALID_LEAD_CASE(n, ptr, nextTokPtr) \ 50 if (end - ptr < n) \ 52 if (IS_INVALID_CHAR(enc, ptr, n)) { \ 53 *(nextTokPtr) = (ptr); \ 56 ptr += n; \ 59 # define INVALID_CASES(ptr, nextTokPtr) \ 60 INVALID_LEAD_CASE(2, ptr, nextTokPtr) \ 61 INVALID_LEAD_CASE(3, ptr, nextTokPtr) \ 62 INVALID_LEAD_CASE(4, ptr, nextTokPt 145 scanComment(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) scanComment() argument 182 scanDecl(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) scanDecl() argument 231 checkPiTarget(const ENCODING *enc, const char *ptr, const char *end, int *tokPtr) checkPiTarget() argument 276 scanPi(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) scanPi() argument 336 scanCdataSection(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) scanCdataSection() argument 355 cdataSectionTok(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) cdataSectionTok() argument 431 scanEndTag(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) scanEndTag() argument 482 scanHexCharRef(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) scanHexCharRef() argument 513 scanCharRef(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) scanCharRef() argument 544 scanRef(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) scanRef() argument 572 scanAtts(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) scanAtts() argument 725 scanLt(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) scanLt() argument 823 contentTok(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) contentTok() argument 923 scanPercent(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) scanPercent() argument 953 scanPoundName(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) scanPoundName() argument 983 scanLit(int open, const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) scanLit() argument 1017 prologTok(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) prologTok() argument 1261 attributeValueTok(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) attributeValueTok() argument 1330 entityValueTok(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) entityValueTok() argument 1397 ignoreSectionTok(const ENCODING *enc, const char *ptr, const char *end, const char **nextTokPtr) ignoreSectionTok() argument 1449 isPublicId(const ENCODING *enc, const char *ptr, const char *end, const char **badPtr) isPublicId() argument 1509 getAtts(const ENCODING *enc, const char *ptr, int attsMax, ATTRIBUTE *atts) getAtts() argument 1602 charRefNumber(const ENCODING *enc, const char *ptr) charRefNumber() argument 1660 predefinedEntityName(const ENCODING *enc, const char *ptr, const char *end) predefinedEntityName() argument 1733 nameLength(const ENCODING *enc, const char *ptr) nameLength() argument 1763 skipS(const ENCODING *enc, const char *ptr) skipS() argument 1778 updatePosition(const ENCODING *enc, const char *ptr, const char *end, POSITION *pos) updatePosition() argument [all...] |
/third_party/node/deps/openssl/openssl/include/internal/ |
H A D | tsan_assist.h | 57 # define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed) 58 # define tsan_store(ptr, val) atomic_store_explicit((ptr), (val), memory_order_relaxed) 59 # define tsan_counter(ptr) atomic_fetch_add_explicit((ptr), 1, memory_order_relaxed) 60 # define tsan_decr(ptr) atomic_fetch_add_explicit((ptr), -1, memory_order_relaxed) 61 # define tsan_ld_acq(ptr) atomic_load_explicit((ptr), memory_order_acquir [all...] |
/third_party/openssl/ohos_lite/include/internal/ |
H A D | tsan_assist.h | 57 # define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed) 58 # define tsan_store(ptr, val) atomic_store_explicit((ptr), (val), memory_order_relaxed) 59 # define tsan_counter(ptr) atomic_fetch_add_explicit((ptr), 1, memory_order_relaxed) 60 # define tsan_decr(ptr) atomic_fetch_add_explicit((ptr), -1, memory_order_relaxed) 61 # define tsan_ld_acq(ptr) atomic_load_explicit((ptr), memory_order_acquir [all...] |
/third_party/openssl/include/internal/ |
H A D | tsan_assist.h | 57 # define tsan_load(ptr) atomic_load_explicit((ptr), memory_order_relaxed) 58 # define tsan_store(ptr, val) atomic_store_explicit((ptr), (val), memory_order_relaxed) 59 # define tsan_counter(ptr) atomic_fetch_add_explicit((ptr), 1, memory_order_relaxed) 60 # define tsan_decr(ptr) atomic_fetch_add_explicit((ptr), -1, memory_order_relaxed) 61 # define tsan_ld_acq(ptr) atomic_load_explicit((ptr), memory_order_acquir [all...] |
/third_party/mesa3d/src/gallium/drivers/i915/ |
H A D | i915_debug.c | 71 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); in debug() local 74 mesa_logi("Error - zero length packet (0x%08x)", stream->ptr[0]); in debug() 84 mesa_logi("\t0x%08x", ptr[i]); in debug() 142 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); in debug_prim() local 143 const char *prim = get_prim_name(ptr[0]); in debug_prim() 147 mesa_logi("\t0x%08x", ptr[0]); in debug_prim() 150 mesa_logi("\t0x%08x // %f", ptr[i], *(float *)&ptr[ in debug_prim() 165 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); debug_program() local 186 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); debug_chain() local 209 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); debug_variable_length_prim() local 274 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); debug_load_immediate() local 377 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); debug_load_indirect() local 498 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); debug_copy_blit() local 520 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); debug_color_blit() local 540 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); debug_modes4() local 560 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); debug_map_state() local 611 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); debug_sampler_state() local 670 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); debug_dest_vars() local 704 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); debug_buf_info() local 733 unsigned *ptr = (unsigned *)(stream->ptr + stream->offset); i915_debug_packet() local [all...] |
/third_party/mesa3d/src/util/ |
H A D | u_debug_describe.c | 33 debug_describe_reference(char* buf, UNUSED const struct pipe_reference*ptr) in debug_describe_reference() 39 debug_describe_resource(char* buf, const struct pipe_resource *ptr) in debug_describe_resource() argument 41 switch(ptr->target) in debug_describe_resource() 44 sprintf(buf, "pipe_buffer<%u>", (unsigned)util_format_get_stride(ptr->format, ptr->width0)); in debug_describe_resource() 47 sprintf(buf, "pipe_texture1d<%u,%s,%u>", ptr->width0, util_format_short_name(ptr->format), ptr->last_level); in debug_describe_resource() 50 sprintf(buf, "pipe_texture2d<%u,%u,%s,%u>", ptr->width0, ptr in debug_describe_resource() 77 debug_describe_surface(char* buf, const struct pipe_surface *ptr) debug_describe_surface() argument 85 debug_describe_sampler_view(char* buf, const struct pipe_sampler_view *ptr) debug_describe_sampler_view() argument 93 debug_describe_image_view(char* buf, const struct pipe_image_view *ptr) debug_describe_image_view() argument 102 debug_describe_so_target(char* buf, const struct pipe_stream_output_target *ptr) debug_describe_so_target() argument [all...] |
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | ptrlist.h | 14 #define CHECK_TYPE(head,ptr) (void)(&(ptr) == &(head)->list[0]) 59 #define add_ptr_list(list, ptr) ({ \ 61 CHECK_TYPE(*(list),ptr); \ 62 (__typeof__(&(ptr))) __add_ptr_list(head, ptr); \ 64 #define add_ptr_list_tag(list, ptr, tag) ({ \ 66 CHECK_TYPE(*(list),ptr); \ 67 (__typeof__(&(ptr))) __add_ptr_list_tag(head, ptr, ta 304 unsigned long *ptr = p; update_tag() local 308 tag_ptr(void *ptr, unsigned long tag) tag_ptr() argument [all...] |
/third_party/rust/crates/memchr/src/memchr/x86/ |
H A D | sse2.rs | 113 let mut ptr = start_ptr; in memchr() variables 116 while ptr < end_ptr { in memchr() 117 if *ptr == n1 { in memchr() 118 return Some(sub(ptr, start_ptr)); in memchr() 120 ptr = ptr.offset(1); in memchr() 125 if let Some(i) = forward_search1(start_ptr, end_ptr, ptr, vn1) { in memchr() 129 ptr = ptr.add(VECTOR_SIZE - (start_ptr as usize & VECTOR_ALIGN)); in memchr() 130 debug_assert!(ptr > start_pt in memchr() 197 let mut ptr = start_ptr; memchr2() variables 272 let mut ptr = start_ptr; memchr3() variables 348 let mut ptr = end_ptr; memrchr() variables 428 let mut ptr = end_ptr; memrchr2() variables 501 let mut ptr = end_ptr; memrchr3() variables [all...] |
H A D | avx.rs | 35 ptr: *const u8, in memchr() 41 let mut at = sub(ptr, start_ptr); in memchr() 67 let mut ptr = start_ptr; in memchr() variables 77 if let Some(i) = forward_search1(start_ptr, end_ptr, ptr, vn1) { in memchr() 81 ptr = ptr.add(VECTOR_SIZE - (start_ptr as usize & VECTOR_ALIGN)); in memchr() 82 debug_assert!(ptr > start_ptr && end_ptr.sub(VECTOR_SIZE) >= start_ptr); in memchr() 83 while loop_size == LOOP_SIZE && ptr <= end_ptr.sub(loop_size) { in memchr() 84 debug_assert_eq!(0, (ptr as usize) % VECTOR_SIZE); in memchr() 86 let a = _mm256_load_si256(ptr a in memchr() 153 let mut ptr = start_ptr; memchr2() variables 246 let mut ptr = start_ptr; memchr3() variables 312 let mut ptr = end_ptr; memrchr() variables 392 let mut ptr = end_ptr; memrchr2() variables 465 let mut ptr = end_ptr; memrchr3() variables [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | faccessat.c | 33 char ptr[PATH_MAX] = {0}; in faccessat_0100() local 34 FILE_ABSOLUTE_PATH(STR_FACCESSAT_TEST_TXT, ptr); in faccessat_0100() 35 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE); in faccessat_0100() 37 int isExist = faccessat(fd, ptr, F_OK, 0); in faccessat_0100() 40 remove(ptr); in faccessat_0100() 50 char ptr[PATH_MAX] = {0}; in faccessat_0200() local 51 FILE_ABSOLUTE_PATH(STR_FACCESSAT_TEST_TXT, ptr); in faccessat_0200() 53 int isExist = faccessat(fd, ptr, F_OK, 0); in faccessat_0200() 56 remove(ptr); in faccessat_0200() 66 char ptr[PATH_MA in faccessat_0300() local 83 char ptr[PATH_MAX] = {0}; faccessat_0400() local 100 char ptr[PATH_MAX] = {0}; faccessat_0500() local 120 char ptr[PATH_MAX] = {0}; faccessat_0600() local 137 char ptr[PATH_MAX] = {0}; faccessat_0700() local 154 char ptr[PATH_MAX] = {0}; faccessat_0800() local 171 char ptr[PATH_MAX] = {0}; faccessat_0900() local 190 char ptr[PATH_MAX] = {0}; faccessat_1000() local 208 char ptr[PATH_MAX] = {0}; faccessat_1100() local [all...] |
/third_party/skia/third_party/externals/freetype/include/freetype/internal/ |
H A D | ftmemory.h | 160 #define FT_MEM_ALLOC( ptr, size ) \ 161 FT_ASSIGNP_INNER( ptr, ft_mem_alloc( memory, \ 165 #define FT_MEM_FREE( ptr ) \ 167 FT_DEBUG_INNER( ft_mem_free( memory, (ptr) ) ); \ 168 (ptr) = NULL; \ 171 #define FT_MEM_NEW( ptr ) \ 172 FT_MEM_ALLOC( ptr, sizeof ( *(ptr) ) ) 174 #define FT_MEM_REALLOC( ptr, cursz, newsz ) \ 175 FT_ASSIGNP_INNER( ptr, ft_mem_reallo [all...] |
/third_party/python/Modules/_sre/ |
H A D | sre_lib.h | 16 SRE(at)(SRE_STATE* state, const SRE_CHAR* ptr, SRE_CODE at) in at() argument 26 return ((void*) ptr == state->beginning); in at() 29 return ((void*) ptr == state->beginning || in at() 30 SRE_IS_LINEBREAK((int) ptr[-1])); in at() 33 return (((SRE_CHAR *)state->end - ptr == 1 && in at() 34 SRE_IS_LINEBREAK((int) ptr[0])) || in at() 35 ((void*) ptr == state->end)); in at() 38 return ((void*) ptr == state->end || in at() 39 SRE_IS_LINEBREAK((int) ptr[0])); in at() 42 return ((void*) ptr in at() 209 const SRE_CHAR* ptr = (const SRE_CHAR *)state->ptr; count() local 521 const SRE_CHAR* ptr; global() member 586 const SRE_CHAR *ptr = (SRE_CHAR *)state->ptr; match() local 1633 SRE_CHAR* ptr = (SRE_CHAR *)state->start; search() local [all...] |
/third_party/cups-filters/utils/ |
H A D | driverless.c | 69 *ptr, /* Pointer into string */ in listPrintersInArray() local 94 ptr = ippfind_output; in listPrintersInArray() 108 service_hostname = ptr; in listPrintersInArray() 109 ptr = memchr(ptr, '\t', sizeof(buffer) - (ptr - buffer)); in listPrintersInArray() 110 if (!ptr) in listPrintersInArray() 112 *ptr = '\0'; in listPrintersInArray() 113 ptr ++; in listPrintersInArray() 115 resource = ptr; in listPrintersInArray() 379 char *ptr, list_printers() local [all...] |
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
H A D | issue-1291.rs | 32 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_RTCRay() 44 unsafe { ::std::ptr::addr_of!((*ptr).org) as usize - ptr as usize }, in bindgen_test_layout_RTCRay() 54 unsafe { ::std::ptr::addr_of!((*ptr).align0) as usize - ptr as usize }, in bindgen_test_layout_RTCRay() 64 unsafe { ::std::ptr::addr_of!((*ptr).dir) as usize - ptr a in bindgen_test_layout_RTCRay() [all...] |
H A D | layout_kni_mbuf.rs | 39 let ptr = UNINIT.as_ptr(); in bindgen_test_layout_rte_kni_mbuf() 52 ::std::ptr::addr_of!((*ptr).buf_addr) as usize - ptr as usize in bindgen_test_layout_rte_kni_mbuf() 64 ::std::ptr::addr_of!((*ptr).buf_physaddr) as usize - ptr as usize in bindgen_test_layout_rte_kni_mbuf() 75 unsafe { ::std::ptr::addr_of!((*ptr).pad0) as usize - ptr a in bindgen_test_layout_rte_kni_mbuf() [all...] |
/third_party/libsnd/src/ |
H A D | sfendian.h | 177 psf_put_be64 (uint8_t *ptr, int offset, int64_t value) in psf_put_be64() argument 179 ptr [offset] = (uint8_t) (value >> 56) ; in psf_put_be64() 180 ptr [offset + 1] = (uint8_t) (value >> 48) ; in psf_put_be64() 181 ptr [offset + 2] = (uint8_t) (value >> 40) ; in psf_put_be64() 182 ptr [offset + 3] = (uint8_t) (value >> 32) ; in psf_put_be64() 183 ptr [offset + 4] = (uint8_t) (value >> 24) ; in psf_put_be64() 184 ptr [offset + 5] = (uint8_t) (value >> 16) ; in psf_put_be64() 185 ptr [offset + 6] = (uint8_t) (value >> 8) ; in psf_put_be64() 186 ptr [offset + 7] = (uint8_t) value ; in psf_put_be64() 190 psf_put_be32 (uint8_t *ptr, in argument 199 psf_put_be16(uint8_t *ptr, int offset, int16_t value) psf_put_be16() argument 206 psf_get_be64(const uint8_t *ptr, int offset) psf_get_be64() argument 224 psf_get_le64(const uint8_t *ptr, int offset) psf_get_le64() argument 240 psf_get_be32(const uint8_t *ptr, int offset) psf_get_be32() argument 249 psf_get_le32(const uint8_t *ptr, int offset) psf_get_le32() argument 258 psf_get_be24(const uint8_t *ptr, int offset) psf_get_be24() argument 266 psf_get_le24(const uint8_t *ptr, int offset) psf_get_le24() argument 274 psf_get_be16(const uint8_t *ptr, int offset) psf_get_be16() argument 283 endswap_short_array(short *ptr, int len) endswap_short_array() argument 300 endswap_int_array(int *ptr, int len) endswap_int_array() argument 320 endswap_int64_t_array(int64_t *ptr, int len) endswap_int64_t_array() argument 340 endswap_float_array(float *ptr, int len) endswap_float_array() argument 345 endswap_double_array(double *ptr, int len) endswap_double_array() argument [all...] |
/third_party/rust/crates/memchr/src/memchr/ |
H A D | fallback.rs | 52 let mut ptr = start_ptr; in memchr() variables 57 return forward_search(start_ptr, end_ptr, ptr, confirm); in memchr() 60 let chunk = (ptr as *const usize).read_unaligned(); in memchr() 62 return forward_search(start_ptr, end_ptr, ptr, confirm); in memchr() 65 ptr = ptr.add(USIZE_BYTES - (start_ptr as usize & align)); in memchr() 66 debug_assert!(ptr > start_ptr); in memchr() 68 while loop_size == LOOP_SIZE && ptr <= end_ptr.sub(loop_size) { in memchr() 69 debug_assert_eq!(0, (ptr as usize) % USIZE_BYTES); in memchr() 71 let a = *(ptr a in memchr() 91 let mut ptr = start_ptr; memchr2() variables 132 let mut ptr = start_ptr; memchr3() variables 177 let mut ptr = end_ptr; memrchr() variables 215 let mut ptr = end_ptr; memrchr2() variables 255 let mut ptr = end_ptr; memrchr3() variables [all...] |
/third_party/libcoap/src/oscore/ |
H A D | oscore_cose.c | 278 cose_encrypt0_encode(cose_encrypt0_t *ptr, uint8_t *buffer, size_t buf_len) { in cose_encrypt0_encode() argument 287 ptr->ciphertext.s, in cose_encrypt0_encode() 288 ptr->ciphertext.length); in cose_encrypt0_encode() 293 int cose_encrypt0_decode(cose_encrypt0_t *ptr, uint8_t *buffer, size_t size); 297 cose_encrypt0_init(cose_encrypt0_t *ptr) { in cose_encrypt0_init() argument 298 memset(ptr, 0, sizeof(cose_encrypt0_t)); in cose_encrypt0_init() 302 cose_encrypt0_set_alg(cose_encrypt0_t *ptr, uint8_t alg) { in cose_encrypt0_set_alg() argument 303 ptr->alg = alg; in cose_encrypt0_set_alg() 307 cose_encrypt0_set_ciphertext(cose_encrypt0_t *ptr, in cose_encrypt0_set_ciphertext() argument 310 ptr in cose_encrypt0_set_ciphertext() 315 cose_encrypt0_set_plaintext(cose_encrypt0_t *ptr, uint8_t *buffer, size_t size) cose_encrypt0_set_plaintext() argument 325 cose_encrypt0_set_partial_iv(cose_encrypt0_t *ptr, coap_bin_const_t *partial_iv) cose_encrypt0_set_partial_iv() argument 341 cose_encrypt0_get_partial_iv(cose_encrypt0_t *ptr) cose_encrypt0_get_partial_iv() argument 346 cose_encrypt0_set_key_id(cose_encrypt0_t *ptr, coap_bin_const_t *key_id) cose_encrypt0_set_key_id() argument 356 cose_encrypt0_get_key_id(cose_encrypt0_t *ptr, const uint8_t **buffer) cose_encrypt0_get_key_id() argument 362 cose_encrypt0_get_kid_context(cose_encrypt0_t *ptr, const uint8_t **buffer) cose_encrypt0_get_kid_context() argument 368 cose_encrypt0_set_kid_context(cose_encrypt0_t *ptr, coap_bin_const_t *kid_context) cose_encrypt0_set_kid_context() argument 379 cose_encrypt0_set_external_aad(cose_encrypt0_t *ptr, coap_bin_const_t *external_aad) cose_encrypt0_set_external_aad() argument 390 cose_encrypt0_set_aad(cose_encrypt0_t *ptr, coap_bin_const_t *aad) cose_encrypt0_set_aad() argument 401 cose_encrypt0_set_key(cose_encrypt0_t *ptr, coap_bin_const_t *key) cose_encrypt0_set_key() argument 411 cose_encrypt0_set_nonce(cose_encrypt0_t *ptr, coap_bin_const_t *nonce) cose_encrypt0_set_nonce() argument 421 cose_encrypt0_encrypt(cose_encrypt0_t *ptr, uint8_t *ciphertext_buffer, size_t ciphertext_len) cose_encrypt0_encrypt() argument 460 cose_encrypt0_decrypt(cose_encrypt0_t *ptr, uint8_t *plaintext_buffer, size_t plaintext_len) cose_encrypt0_decrypt() argument [all...] |
/third_party/protobuf/src/google/protobuf/ |
H A D | parse_context.cc | 55 auto ptr = begin + overrun; in ParseEndsInSlopRegion() local 57 while (ptr < end) { in ParseEndsInSlopRegion() 59 ptr = ReadTag(ptr, &tag); in ParseEndsInSlopRegion() 60 if (ptr == nullptr || ptr > end) return false; in ParseEndsInSlopRegion() 67 ptr = VarintParse(ptr, &val); in ParseEndsInSlopRegion() 68 if (ptr == nullptr) return false; in ParseEndsInSlopRegion() 72 ptr in ParseEndsInSlopRegion() 157 DoneFallback(const char* ptr, int d) DoneFallback() argument 195 SkipFallback(const char* ptr, int size) SkipFallback() argument 199 ReadStringFallback(const char* ptr, int size, std::string* str) ReadStringFallback() argument 212 AppendStringFallback(const char* ptr, int size, std::string* str) AppendStringFallback() argument 226 ReadRepeatedFixed(const char* ptr, Tag expected_tag, RepeatedField<T>* out) ReadRepeatedFixed() argument 251 ReadPackedFixed(const char* ptr, int size, RepeatedField<T>* out) ReadPackedFixed() argument 294 auto ptr = static_cast<const char*>(data); InitFrom() local 303 auto ptr = buffer_ + 2 * kSlopBytes - size; InitFrom() local 315 ParseMessage(MessageLite* msg, const char* ptr) ParseMessage() argument 318 ParseMessage(Message* msg, const char* ptr) ParseMessage() argument 423 InlineGreedyStringParser(std::string* s, const char* ptr, ParseContext* ctx) InlineGreedyStringParser() argument 432 VarintParser(void* object, const char* ptr, ParseContext* ctx) VarintParser() argument 448 PackedInt32Parser(void* object, const char* ptr, ParseContext* ctx) PackedInt32Parser() argument 452 PackedUInt32Parser(void* object, const char* ptr, ParseContext* ctx) PackedUInt32Parser() argument 456 PackedInt64Parser(void* object, const char* ptr, ParseContext* ctx) PackedInt64Parser() argument 460 PackedUInt64Parser(void* object, const char* ptr, ParseContext* ctx) PackedUInt64Parser() argument 464 PackedSInt32Parser(void* object, const char* ptr, ParseContext* ctx) PackedSInt32Parser() argument 468 PackedSInt64Parser(void* object, const char* ptr, ParseContext* ctx) PackedSInt64Parser() argument 473 PackedEnumParser(void* object, const char* ptr, ParseContext* ctx) PackedEnumParser() argument 477 PackedBoolParser(void* object, const char* ptr, ParseContext* ctx) PackedBoolParser() argument 482 FixedParser(void* object, const char* ptr, ParseContext* ctx) FixedParser() argument 489 PackedFixed32Parser(void* object, const char* ptr, ParseContext* ctx) PackedFixed32Parser() argument 493 PackedSFixed32Parser(void* object, const char* ptr, ParseContext* ctx) PackedSFixed32Parser() argument 497 PackedFixed64Parser(void* object, const char* ptr, ParseContext* ctx) PackedFixed64Parser() argument 501 PackedSFixed64Parser(void* object, const char* ptr, ParseContext* ctx) PackedSFixed64Parser() argument 505 PackedFloatParser(void* object, const char* ptr, ParseContext* ctx) PackedFloatParser() argument 509 PackedDoubleParser(void* object, const char* ptr, ParseContext* ctx) PackedDoubleParser() argument 532 ParseLengthDelimited(uint32 num, const char* ptr, ParseContext* ctx) ParseLengthDelimited() argument 541 ParseGroup(uint32 num, const char* ptr, ParseContext* ctx) ParseGroup() argument 557 _InternalParse(const char* ptr, ParseContext* ctx) _InternalParse() argument 565 UnknownGroupLiteParse(std::string* unknown, const char* ptr, ParseContext* ctx) UnknownGroupLiteParse() argument 571 UnknownFieldParse(uint32 tag, std::string* unknown, const char* ptr, ParseContext* ctx) UnknownFieldParse() argument [all...] |
/foundation/communication/netmanager_base/frameworks/native/netmanagernative/ |
H A D | netfirewall_parcel.cpp | 54 sptr<NetFirewallIpParam> ptr = new (std::nothrow) NetFirewallIpParam();
in Unmarshalling() local 55 if (ptr == nullptr) {
in Unmarshalling() 56 NETMGR_LOG_E("NetFirewallIpParam ptr is null");
in Unmarshalling() 59 parcel.ReadUint8(ptr->family);
in Unmarshalling() 60 if (!parcel.ReadUint8(ptr->type)) {
in Unmarshalling() 63 parcel.ReadUint8(ptr->mask);
in Unmarshalling() 65 if (ptr->family == FAMILY_IPV4) {
in Unmarshalling() 66 parcel.ReadUint32(ptr->ipv4.startIp.s_addr);
in Unmarshalling() 67 if (ptr->type == MULTIPLE_IP) {
in Unmarshalling() 68 parcel.ReadUint32(ptr in Unmarshalling() 142 sptr<NetFirewallPortParam> ptr = new (std::nothrow) NetFirewallPortParam(); Unmarshalling() local 170 sptr<NetFirewallDomainParam> ptr = new (std::nothrow) NetFirewallDomainParam(); Unmarshalling() local 196 sptr<NetFirewallDnsParam> ptr = new (std::nothrow) NetFirewallDnsParam(); Unmarshalling() local 281 sptr<NetFirewallRule> ptr = new (std::nothrow) NetFirewallRule(); Unmarshalling() local 354 sptr<NetFirewallBaseRule> ptr = new (std::nothrow) NetFirewallBaseRule(); Unmarshalling() local 364 UnmarshallingBase(Parcel &parcel, sptr<NetFirewallBaseRule> ptr) UnmarshallingBase() argument 391 sptr<NetFirewallIpRule> ptr = new (std::nothrow) NetFirewallIpRule(); Unmarshalling() local 431 sptr<NetFirewallDomainRule> ptr = new (std::nothrow) NetFirewallDomainRule(); Unmarshalling() local 459 sptr<NetFirewallDnsRule> ptr = new (std::nothrow) NetFirewallDnsRule(); Unmarshalling() local 498 sptr<InterceptRecord> ptr = new (std::nothrow) InterceptRecord(); Unmarshalling() local [all...] |
/test/xts/hats/kernel/syscalls/mem/madvisecall/ |
H A D | MadvisecallApiTest.cpp | 73 void *ptr; in HWTEST_F() local 77 ptr = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in HWTEST_F() 78 EXPECT_NE(ptr, MAP_FAILED); in HWTEST_F() 80 ret = madvise(ptr, size, MADV_DOFORK); in HWTEST_F() 82 munmap(ptr, size); in HWTEST_F() 95 void *ptr; in HWTEST_F() local 99 ptr = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in HWTEST_F() 100 EXPECT_NE(ptr, MAP_FAILED); in HWTEST_F() 102 ret = madvise(ptr, size, MADV_NORMAL); in HWTEST_F() 104 munmap(ptr, siz in HWTEST_F() 117 void *ptr; HWTEST_F() local 139 void *ptr; HWTEST_F() local 161 void *ptr; HWTEST_F() local 183 void *ptr; HWTEST_F() local 205 void *ptr; HWTEST_F() local 227 void *ptr; HWTEST_F() local 249 void *ptr; HWTEST_F() local 271 void *ptr; HWTEST_F() local [all...] |
/foundation/communication/ipc/ipc/native/c/manager/src/ |
H A D | serializer.c | 81 void *ptr = io->bufferCur; in IoPush() local 84 return ptr; in IoPush() 99 void *ptr = io->bufferCur; in IoPop() local 102 return ptr; in IoPop() 114 void *ptr = io->bufferCur; in IoPushUnaligned() local 117 return ptr; in IoPushUnaligned() 138 char *ptr = (uint8_t *)IoPush(dst, srcUsedBufferSize); in IpcIoAppend() local 139 if (ptr == NULL) { in IpcIoAppend() 142 size_t offsetAdjust = ptr - dst->bufferBase; in IpcIoAppend() 143 if (memset_s(ptr, IPC_IO_ALIG in IpcIoAppend() 166 int32_t *ptr = (int32_t *)IoPush(io, sizeof(value)); WriteInt32() local 180 uint32_t *ptr = (uint32_t *)IoPush(io, sizeof(value)); WriteUint32() local 203 bool *ptr = (bool *)IoPushUnaligned(io, sizeof(value)); WriteBoolUnaligned() local 217 uintptr_t *ptr = (uintptr_t *)IoPush(io, sizeof(value)); WritePointer() local 240 int8_t *ptr = (int8_t *)IoPushUnaligned(io, sizeof(value)); WriteInt8Unaligned() local 263 uint8_t *ptr = (uint8_t *)IoPushUnaligned(io, sizeof(value)); WriteUint8Unaligned() local 286 int16_t *ptr = (int16_t *)IoPushUnaligned(io, sizeof(value)); WriteInt16Unaligned() local 309 uint16_t *ptr = (uint16_t *)IoPushUnaligned(io, sizeof(value)); WriteUint16Unaligned() local 323 int64_t *ptr = (int64_t *)IoPush(io, sizeof(value)); WriteInt64() local 337 uint64_t *ptr = (uint64_t *)IoPush(io, sizeof(value)); WriteUint64() local 351 float *ptr = (float *)IoPush(io, sizeof(value)); WriteFloat() local 365 double *ptr = (double *)IoPush(io, sizeof(value)); WriteDouble() local 381 uint8_t *ptr = NULL; WriteString() local 418 void *ptr = io->bufferCur; IoPopUnaligned() local 431 bool *ptr = (bool *)IoPop(io, sizeof(*ptr)); ReadBool() local 445 bool *ptr = (bool *)IoPopUnaligned(io, sizeof(*ptr)); ReadBoolUnaligned() local 459 uintptr_t *ptr = (uintptr_t *)IoPop(io, sizeof(*ptr)); ReadPointer() local 469 int8_t *ptr = (int8_t *)IoPop(io, sizeof(*ptr)); ReadInt8() local 483 int8_t *ptr = (int8_t *)IoPopUnaligned(io, sizeof(*ptr)); ReadInt8Unaligned() local 497 uint8_t *ptr = (uint8_t *)IoPop(io, sizeof(*ptr)); ReadUint8() local 511 uint8_t *ptr = (uint8_t*)IoPopUnaligned(io, sizeof(*ptr)); ReadUInt8Unaligned() local 525 int16_t *ptr = (int16_t *)IoPop(io, sizeof(*ptr)); ReadInt16() local 539 int16_t *ptr = (int16_t *)IoPopUnaligned(io, sizeof(*ptr)); ReadInt16Unaligned() local 553 uint16_t *ptr = (uint16_t *)IoPop(io, sizeof(*ptr)); ReadUint16() local 567 uint16_t *ptr = (uint16_t *)IoPopUnaligned(io, sizeof(*ptr)); ReadUInt16Unaligned() local 581 int32_t *ptr = (int32_t *)IoPop(io, sizeof(*ptr)); ReadInt32() local 595 uint32_t *ptr = (uint32_t *)IoPop(io, sizeof(*ptr)); ReadUint32() local 609 int64_t *ptr = (int64_t *)IoPop(io, sizeof(*ptr)); ReadInt64() local 623 uint64_t *ptr = (uint64_t*)IoPop(io, sizeof(*ptr)); ReadUint64() local 637 float *ptr = (float *)IoPop(io, sizeof(*ptr)); ReadFloat() local 651 double *ptr = (double *)IoPop(io, sizeof(*ptr)); ReadDouble() local 695 uint8_t *ptr = (uint8_t *)IoPush(io, desireCapacity); WriteBufferAddTerminator() local 750 uint8_t *ptr = (uint8_t *)IoPush(io, desireCapacity); WriteBuffer() local 835 int8_t *ptr = (int8_t *)IoPushUnaligned(io, desireCapacity); WriteInt8Vector() local 879 int32_t *ptr = (int32_t *)IoPushUnaligned(io, desireCapacity); WriteInt32Vector() local 903 int64_t *ptr = (int64_t *)IoPushUnaligned(io, desireCapacity); WriteInt64Vector() local 927 uint8_t *ptr = (uint8_t *)IoPushUnaligned(io, desireCapacity); WriteUInt8Vector() local 951 uint16_t *ptr = (uint16_t *)IoPushUnaligned(io, desireCapacity); WriteUInt16Vector() local 975 uint32_t *ptr = (uint32_t *)IoPushUnaligned(io, desireCapacity); WriteUInt32Vector() local 999 uint64_t *ptr = (uint64_t *)IoPushUnaligned(io, desireCapacity); WriteUInt64Vector() local 1023 float *ptr = (float *)IoPushUnaligned(io, desireCapacity); WriteFloatVector() local 1047 double *ptr = (double *)IoPushUnaligned(io, desireCapacity); WriteDoubleVector() local 1074 uint16_t *ptr = (uint16_t *)IoPop(io, readCapacity); ReadString16() local 1095 uint16_t *ptr = (uint16_t *)IoPop(io, readCapacity); ReadInterfaceToken() local 1144 int32_t *ptr = NULL; ReadBoolVector() local 1169 int8_t *ptr = (int8_t *)IoPopUnaligned(io, readCapacity); ReadInt8Vector() local 1194 int32_t *ptr = NULL; ReadInt16Vector() local 1219 int32_t *ptr = (int32_t *)IoPopUnaligned(io, readCapacity); ReadInt32Vector() local 1240 int64_t *ptr = (int64_t *)IoPopUnaligned(io, readCapacity); ReadInt64Vector() local 1261 uint8_t *ptr = (uint8_t *)IoPopUnaligned(io, readCapacity); ReadUInt8Vector() local 1282 uint16_t *ptr = (uint16_t *)IoPopUnaligned(io, readCapacity); ReadUInt16Vector() local 1303 uint32_t *ptr = (uint32_t *)IoPopUnaligned(io, readCapacity); ReadUInt32Vector() local 1324 uint64_t *ptr = (uint64_t *)IoPopUnaligned(io, readCapacity); ReadUInt64Vector() local 1345 float *ptr = (float *)IoPopUnaligned(io, readCapacity); ReadFloatVector() local 1366 double *ptr = (double *)IoPopUnaligned(io, readCapacity); ReadDoubleVector() local [all...] |
/foundation/multimedia/audio_framework/services/audio_service/test/unittest/ |
H A D | audio_endpoint_separate_unit_test.cpp | 92 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); in HWTEST() local 93 ptr->fastSink_ = FastAudioRendererSink::CreateFastRendererSink(); in HWTEST() 94 auto ret = ptr->SetVolume(streamType, volume); in HWTEST() 110 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); in HWTEST() local 111 ptr->fastSink_ = FastAudioRendererSink::CreateFastRendererSink(); in HWTEST() 113 ptr->streamType_ = STREAM_DEFAULT; in HWTEST() 114 auto ret = ptr->SetVolume(streamType, volume); in HWTEST() 129 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); in HWTEST() local 130 ptr->isInited_ = false; in HWTEST() 132 auto ret = ptr in HWTEST() 147 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 174 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 190 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 207 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 234 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 252 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 279 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 303 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 343 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 366 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 383 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 405 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 431 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 446 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 463 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 481 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 504 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 533 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 562 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 578 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 595 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 615 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 654 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 695 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 714 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 744 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 775 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 795 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 824 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 857 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 888 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 918 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 950 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 983 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 1019 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 1050 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 1077 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 1104 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 1124 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local 1150 std::shared_ptr<AudioEndpointSeparate> ptr = std::make_shared<AudioEndpointSeparate>(type, id, streamType); HWTEST() local [all...] |