Searched refs:ptr (Results 1 - 25 of 101) sorted by relevance

12345

/system/core/libion/tests/
H A Dmap_test.cpp41 unsigned char *ptr = NULL; local
42 ASSERT_EQ(0, ion_map(m_ionFd, handle, size, PROT_READ | PROT_WRITE, MAP_SHARED, 0, &ptr, &map_fd));
43 ASSERT_TRUE(ptr != NULL);
50 memset(ptr, 0xaa, size);
52 ASSERT_EQ(0, munmap(ptr, size));
69 void *ptr; local
70 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0);
71 ASSERT_TRUE(ptr != NULL);
75 memset(ptr, 0xaa, size);
77 ASSERT_EQ(0, munmap(ptr, siz
91 unsigned char *ptr; local
125 void *ptr; local
151 void *ptr; local
[all...]
H A Ddevice_test.cpp42 void dirtyCache(void *ptr, size_t size);
62 .ptr = (uint64_t)buf,
76 .ptr = (uint64_t)buf,
90 .ptr = (uint64_t)buf,
104 .ptr = (uint64_t)buf,
125 void Device::dirtyCache(void *ptr, size_t size) argument
129 ((volatile char *)ptr)[i];
130 ((char *)ptr)[i] = i;
147 void *ptr; local
148 ptr
184 void *ptr; local
215 void *ptr; local
250 void *ptr; local
281 void *ptr; local
318 void *ptr; local
349 void *ptr; local
386 void *ptr; local
418 void *ptr; local
455 void *ptr; local
486 void *ptr; local
521 void *ptr; local
551 void *ptr; local
[all...]
H A Dexit_test.cpp101 void *ptr;
102 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0);
103 ASSERT_TRUE(ptr != NULL);
124 void *ptr;
125 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0);
126 ASSERT_TRUE(ptr != NULL);
128 ASSERT_EQ(0, munmap(ptr, size / 2));
148 void *ptr;
149 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, map_fd, 0);
150 ASSERT_TRUE(ptr !
[all...]
H A Dallocate_test.cpp104 void *ptr = NULL; local
105 ptr = mmap(NULL, 4096, PROT_WRITE, MAP_SHARED, map_fd, 0);
106 ASSERT_TRUE(ptr != NULL);
108 memset(ptr, 0xaa, 4096);
110 ASSERT_EQ(0, munmap(ptr, 4096));
124 void *ptr = NULL; local
125 ptr = mmap(NULL, 4096, PROT_READ, MAP_SHARED, map_fd, 0);
126 ASSERT_TRUE(ptr != NULL);
128 ASSERT_EQ(0, memcmp(ptr, zeroes, 4096));
130 ASSERT_EQ(0, munmap(ptr, 409
[all...]
H A Dformerly_valid_handle_test.cpp53 unsigned char *ptr; local
55 ASSERT_EQ(-EINVAL, ion_map(m_ionFd, m_handle, 4096, PROT_READ, 0, 0, &ptr, &map_fd));
/system/bt/btcore/src/
H A Dbdaddr.c54 const uint8_t *ptr = addr->address; local
56 ptr[0], ptr[1], ptr[2],
57 ptr[3], ptr[4], ptr[5]);
85 uint8_t *ptr = new_addr.address; local
87 &ptr[0], &ptr[
[all...]
/system/core/toolbox/
H A Dps.c52 char *ptr, *name, *state; local
89 ptr = statline;
90 nexttok(&ptr); // skip pid
91 ptr++; // skip "("
93 name = ptr;
94 ptr = strrchr(ptr, ')'); // Skip to *last* occurence of ')',
95 *ptr++ = '\0'; // and null-terminate name.
97 ptr++; // skip " "
98 state = nexttok(&ptr);
[all...]
/system/media/audio_utils/include/audio_utils/
H A Dsndfile.h65 sf_count_t sf_readf_short(SNDFILE *handle, short *ptr, sf_count_t desired);
66 sf_count_t sf_readf_float(SNDFILE *handle, float *ptr, sf_count_t desired);
67 sf_count_t sf_readf_int(SNDFILE *handle, int *ptr, sf_count_t desired);
70 sf_count_t sf_writef_short(SNDFILE *handle, const short *ptr, sf_count_t desired);
71 sf_count_t sf_writef_float(SNDFILE *handle, const float *ptr, sf_count_t desired);
72 sf_count_t sf_writef_int(SNDFILE *handle, const int *ptr, sf_count_t desired);
/system/bt/embdrv/sbc/decoder/include/
H A Doi_bitstream.h74 #define OI_BITSTREAM_GetWritePtr(bs) ((bs)->ptr.w - 3)
75 #define OI_BITSTREAM_GetReadPtr(bs) ((bs)->ptr.r - 3)
80 #define OI_BITSTREAM_READUINT(result, bits, ptr, value, bitPtr) \
91 value = ((value) << 8) | *ptr++; \
98 #define OI_BITSTREAM_WRITEUINT(ptr, value, bitPtr, datum, bits) \
105 *ptr++ = (OI_UINT8)(value >> 24);\
110 #define OI_BITSTREAM_WRITEFLUSH(ptr, value, bitPtr) \
114 *ptr++ = (OI_UINT8)(value >> 24);\
/system/bt/osi/include/
H A Dallocation_tracker.h42 // If |ptr| is NULL, this function does nothing. |requested_size| is the
45 // by calling |allocation_tracker_resize_for_canary|. Returns |ptr| offset
47 void *allocation_tracker_notify_alloc(allocator_id_t allocator_id, void *ptr, size_t requested_size);
49 // Notify the tracker of an allocation that is being freed. |ptr| must be a
51 // same |allocator_id|. If |ptr| is NULL, this function does nothing. Returns
52 // |ptr| offset to the real beginning of the allocation including any canary
54 void *allocation_tracker_notify_free(allocator_id_t allocator_id, void *ptr);
H A Dallocator.h25 typedef void (*free_fn)(void *ptr);
40 void osi_free(void *ptr);
/system/security/keystore-engine/
H A Dkeyhandle.cpp40 void keyhandle_free(void *, void *ptr, CRYPTO_EX_DATA*, int, long, void*) { argument
41 char* keyhandle = reinterpret_cast<char*>(ptr);
52 void** ptr = reinterpret_cast<void**>(ptrRef); local
53 char* keyhandle = reinterpret_cast<char*>(*ptr);
56 *ptr = keyhandle_copy;
/system/core/init/
H A Dparser.cpp28 char *x = state->ptr;
40 state->ptr = x;
44 state->ptr = x;
54 state->ptr = x+1;
57 state->ptr = x;
66 state->ptr = x;
91 state->ptr = x;
H A Dparser.h26 char *ptr; member in struct:parse_state
/system/media/audio_utils/
H A Dtinysndfile.c38 static unsigned little2u(unsigned char *ptr) argument
40 return (ptr[1] << 8) + ptr[0];
43 static unsigned little4u(unsigned char *ptr) argument
45 return (ptr[3] << 24) + (ptr[2] << 16) + (ptr[1] << 8) + ptr[0];
55 static void my_swab(short *ptr, size_t numToSwap) argument
58 *ptr
289 write4u(unsigned char *ptr, unsigned u) argument
420 sf_readf_short(SNDFILE *handle, short *ptr, sf_count_t desiredFrames) argument
469 sf_readf_float(SNDFILE *handle, float *ptr, sf_count_t desiredFrames) argument
520 sf_readf_int(SNDFILE *handle, int *ptr, sf_count_t desiredFrames) argument
571 sf_writef_short(SNDFILE *handle, const short *ptr, sf_count_t desiredFrames) argument
608 sf_writef_float(SNDFILE *handle, const float *ptr, sf_count_t desiredFrames) argument
633 sf_writef_int(SNDFILE *handle, const int *ptr, sf_count_t desiredFrames) argument
[all...]
/system/bt/osi/src/
H A Dallocation_tracker.c36 void *ptr; member in struct:__anon763
118 void *allocation_tracker_notify_alloc(uint8_t allocator_id, void *ptr, size_t requested_size) { argument
119 if (!allocations || !ptr)
120 return ptr;
122 char *return_ptr = (char *)ptr;
139 allocation->ptr = return_ptr;
150 void *allocation_tracker_notify_free(uint8_t allocator_id, void *ptr) { argument
151 if (!allocations || !ptr)
152 return ptr;
156 allocation_t *allocation = (allocation_t *)hash_map_get(allocations, ptr);
[all...]
H A Dallocator.c58 void osi_free(void *ptr) { argument
59 free(allocation_tracker_notify_free(alloc_allocator_id, ptr));
/system/core/libion/
H A Dion_test.c78 unsigned char *ptr; local
83 ret = ion_map(fd, handle, len, prot, map_flags, 0, &ptr, &map_fd);
88 ptr[i] = (unsigned char)i;
91 if (ptr[i] != (unsigned char)i)
93 "memory\n", __func__, i, ptr[i]);
97 munmap(ptr, len);
104 munmap(ptr, len);
110 ret = ion_map(fd, handle, len, prot, flags, 0, &ptr, &map_fd);
137 char *ptr; local
144 ptr
171 char* ptr; local
[all...]
/system/bt/embdrv/sbc/decoder/srce/
H A Dbitstream-decode.c44 bs->ptr.r = buffer + 3;
52 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr);
69 bs->value = (bs->value << 8) | *bs->ptr.r++;
83 bs->value = (bs->value << 8) | *bs->ptr.r++;
/system/core/adb/
H A Dadb_utils.h27 void dump_hex(const void* ptr, size_t byte_count);
/system/core/libion/kernel-headers/linux/
H A Dion_test.h25 __u64 ptr; member in struct:ion_test_rw_data
/system/core/libion/original-kernel-headers/linux/
H A Dion_test.h25 * @ptr: a pointer to an area at least as large as size
31 __u64 ptr; member in struct:ion_test_rw_data
/system/core/fastboot/
H A Dusb_linux.c114 char *ptr, int len, int writable,
128 if (check(ptr, len, USB_DT_DEVICE, USB_DT_DEVICE_SIZE))
130 dev = (struct usb_device_descriptor *)ptr;
132 ptr += dev->bLength;
134 if (check(ptr, len, USB_DT_CONFIG, USB_DT_CONFIG_SIZE))
136 cfg = (struct usb_config_descriptor *)ptr;
138 ptr += cfg->bLength;
182 struct usb_descriptor_header *hdr = (struct usb_descriptor_header *)ptr;
186 ptr += hdr->bLength;
192 ifc = (struct usb_interface_descriptor *)ptr;
113 filter_usb_device(char* sysfs_name, char *ptr, int len, int writable, ifc_match_func callback, int *ept_in_id, int *ept_out_id, int *ifc_id) argument
[all...]
/system/core/toolbox/upstream-netbsd/bin/dd/
H A Dmisc.c197 const char *ptr; local
211 for (ptr = fmt; *ptr; ptr++) {
212 if (*ptr != '%') {
213 ADDC(*ptr);
217 switch (*++ptr) {
295 ADDC(*ptr);
298 if (*ptr == '\0')
301 "msgfmt string", *ptr);
[all...]
/system/core/logd/
H A DLogCommand.cpp43 char *ptr; local
47 for (buf = strtok_r(buf, ws, &ptr); buf; buf = strtok_r(NULL, ws, &ptr)) {

Completed in 424 milliseconds

12345