Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 707) sorted by relevance

12345678910>>...29

/hardware/qcom/display/msm8960/libgralloc/
Dionalloc.cpp72 void *base = 0; in alloc_buffer() local
103 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
105 if(base == MAP_FAILED) { in alloc_buffer()
112 memset(base, 0, ionAllocData.len); in alloc_buffer()
114 clean_buffer(base, data.size, data.offset, fd_data.fd, in alloc_buffer()
118 data.base = base; in alloc_buffer()
122 data.base, ionAllocData.len, data.fd); in alloc_buffer()
127 int IonAlloc::free_buffer(void* base, size_t size, int offset, int fd) in free_buffer() argument
131 base, size, fd); in free_buffer()
137 if(base) in free_buffer()
[all …]
Dmapper.cpp71 hnd->base = 0; in gralloc_map()
75 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map()
97 void* base = (void*)hnd->base; in gralloc_unmap() local
101 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap()
103 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
105 base = (void*)hnd->base_metadata; in gralloc_unmap()
107 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap()
109 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
115 hnd->base = 0; in gralloc_unmap()
142 hnd->base = 0; in gralloc_register_buffer()
[all …]
/hardware/qcom/display/msm8996/libgralloc/
Dionalloc.cpp81 void *base = 0; in alloc_buffer() local
108 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
110 if(base == MAP_FAILED) { in alloc_buffer()
119 data.base = base; in alloc_buffer()
123 data.base, ionAllocData.len, data.fd); in alloc_buffer()
128 int IonAlloc::free_buffer(void* base, unsigned int size, unsigned int offset, in free_buffer() argument
134 base, size, fd); in free_buffer()
140 if(base) in free_buffer()
141 err = unmap_buffer(base, size, offset); in free_buffer()
151 void *base = 0; in map_buffer() local
[all …]
/hardware/qcom/display/msm8909w_3100/libgralloc/
Dionalloc.cpp76 void *base = 0; in alloc_buffer() local
103 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
105 if(base == MAP_FAILED) { in alloc_buffer()
114 data.base = base; in alloc_buffer()
118 data.base, ionAllocData.len, data.fd); in alloc_buffer()
123 int IonAlloc::free_buffer(void* base, unsigned int size, unsigned int offset, in free_buffer() argument
129 base, size, fd); in free_buffer()
135 if(base) in free_buffer()
136 err = unmap_buffer(base, size, offset); in free_buffer()
146 void *base = 0; in map_buffer() local
[all …]
/hardware/qcom/display/msm8226/libgralloc/
Dionalloc.cpp72 void *base = 0; in alloc_buffer() local
103 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
105 if(base == MAP_FAILED) { in alloc_buffer()
114 data.base = base; in alloc_buffer()
118 data.base, ionAllocData.len, data.fd); in alloc_buffer()
123 int IonAlloc::free_buffer(void* base, unsigned int size, unsigned int offset, in free_buffer() argument
128 base, size, fd); in free_buffer()
134 if(base) in free_buffer()
135 err = unmap_buffer(base, size, offset); in free_buffer()
144 void *base = 0; in map_buffer() local
[all …]
Dmapper.cpp72 hnd->base = 0; in gralloc_map()
76 hnd->base = uint64_t(mappedAddress) + hnd->offset; in gralloc_map()
101 void* base = (void*)hnd->base; in gralloc_unmap() local
105 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap()
107 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
109 base = (void*)hnd->base_metadata; in gralloc_unmap()
111 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap()
113 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
119 hnd->base = 0; in gralloc_unmap()
146 hnd->base = 0; in gralloc_register_buffer()
[all …]
/hardware/qcom/display/msm8084/libgralloc/
Dionalloc.cpp72 void *base = 0; in alloc_buffer() local
103 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
105 if(base == MAP_FAILED) { in alloc_buffer()
114 data.base = base; in alloc_buffer()
118 data.base, ionAllocData.len, data.fd); in alloc_buffer()
123 int IonAlloc::free_buffer(void* base, size_t size, size_t offset, int fd) in free_buffer() argument
127 base, size, fd); in free_buffer()
133 if(base) in free_buffer()
134 err = unmap_buffer(base, size, offset); in free_buffer()
142 void *base = 0; in map_buffer() local
[all …]
Dmapper.cpp72 hnd->base = 0; in gralloc_map()
76 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map()
101 void* base = (void*)hnd->base; in gralloc_unmap() local
105 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap()
107 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
109 base = (void*)hnd->base_metadata; in gralloc_unmap()
111 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap()
113 ALOGE("Could not unmap memory at address %p", base); in gralloc_unmap()
119 hnd->base = 0; in gralloc_unmap()
146 hnd->base = 0; in gralloc_register_buffer()
[all …]
/hardware/qcom/display/msm8909/libgralloc/
Dionalloc.cpp76 void *base = 0; in alloc_buffer() local
103 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
105 if(base == MAP_FAILED) { in alloc_buffer()
114 data.base = base; in alloc_buffer()
118 data.base, ionAllocData.len, data.fd); in alloc_buffer()
123 int IonAlloc::free_buffer(void* base, unsigned int size, unsigned int offset, in free_buffer() argument
129 base, size, fd); in free_buffer()
135 if(base) in free_buffer()
136 err = unmap_buffer(base, size, offset); in free_buffer()
146 void *base = 0; in map_buffer() local
[all …]
/hardware/qcom/display/msm8994/libgralloc/
Dionalloc.cpp77 void *base = 0; in alloc_buffer() local
114 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
116 if(base == MAP_FAILED) { in alloc_buffer()
125 data.base = base; in alloc_buffer()
129 data.base, ionAllocData.len, data.fd); in alloc_buffer()
134 int IonAlloc::free_buffer(void* base, unsigned int size, unsigned int offset, in free_buffer() argument
140 base, size, fd); in free_buffer()
146 if(base) in free_buffer()
147 err = unmap_buffer(base, size, offset); in free_buffer()
157 void *base = 0; in map_buffer() local
[all …]
/hardware/libhardware/tests/hwc/
Dcnativewindow.c50 aBuffer base; member
57 aWindow base; member
113 static void cnw_inc_ref(aBase *base) { TRACE("buf %p ref++\n",base); } in cnw_inc_ref() argument
114 static void cnw_dec_ref(aBase *base) { TRACE("buf %p ref--\n",base); } in cnw_dec_ref() argument
116 static inline CNativeWindow *from_base(aWindow *base) { in from_base() argument
117 return (CNativeWindow *) base; in from_base()
120 static inline CNativeWindow *from_base_const(const aWindow *base) { in from_base_const() argument
121 return (CNativeWindow *) base; in from_base_const()
124 static int cnw_set_swap_interval(aWindow *base, int interval) { in cnw_set_swap_interval() argument
125 CNativeWindow *win = from_base(base); in cnw_set_swap_interval()
[all …]
/hardware/google/pixel/perfstatsd/
Dcpu_usage.cpp33 if (android::base::ReadFileToString("/proc/stat", &procstat)) { in CpuUsage()
37 std::vector<std::string> fields = android::base::Split(line, " "); in CpuUsage()
53 if (!base::ParseUint(value, &val)) { in setOptions()
88 if (android::base::ReadFileToString("/proc/" + pidStr + "/stat", &pidStat)) { in profileProcess()
89 std::vector<std::string> fields = android::base::Split(pidStat, " "); in profileProcess()
96 if (!base::ParseUint(fields[0], &pid) || in profileProcess()
97 !base::ParseUint(fields[13], &utime) || in profileProcess()
98 !base::ParseUint(fields[14], &stime) || in profileProcess()
99 !base::ParseUint(fields[15], &cutime) || in profileProcess()
100 !base::ParseUint(fields[16], &cstime)) { in profileProcess()
[all …]
/hardware/nxp/secure_element/libese-spi/p73/utils/
Dringbuffer.cpp27 uint8_t* base; member
37 p->base = static_cast<uint8_t*>(calloc(size, sizeof(uint8_t))); in ringbuffer_init()
38 p->head = p->tail = p->base; in ringbuffer_init()
45 if (rb != NULL) free(rb->base); in ringbuffer_free()
67 if (rb->tail >= (rb->base + rb->total)) rb->tail = rb->base; in ringbuffer_insert()
80 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total; in ringbuffer_delete()
93 uint8_t* b = ((rb->head - rb->base + offset) % rb->total) + rb->base; in ringbuffer_peek()
100 if (b >= (rb->base + rb->total)) b = rb->base; in ringbuffer_peek()
112 if (rb->head >= (rb->base + rb->total)) rb->head -= rb->total; in ringbuffer_pop()
/hardware/libhardware/modules/gralloc/
Dmapper.cpp50 hnd->base = uintptr_t(mappedAddress) + hnd->offset; in gralloc_map()
54 *vaddr = (void*)hnd->base; in gralloc_map()
63 void* base = (void*)hnd->base; in gralloc_unmap() local
66 if (munmap(base, size) < 0) { in gralloc_unmap()
70 hnd->base = 0; in gralloc_unmap()
133 if (hnd->base) in gralloc_unregister_buffer()
149 if (hnd->base) { in terminateBuffer()
174 *vaddr = (void*)hnd->base; in gralloc_lock()
/hardware/interfaces/radio/1.4/vts/functional/
Dradio_hidl_hal_api.cpp227 if (cardStatus.base.base.cardState == CardState::ABSENT) { in TEST_P()
229 } else if (cardStatus.base.base.cardState == CardState::PRESENT) { in TEST_P()
267 if (cardStatus.base.base.cardState == CardState::ABSENT) { in TEST_P()
270 } else if (cardStatus.base.base.cardState == CardState::PRESENT) { in TEST_P()
300 if (cardStatus.base.base.cardState == CardState::ABSENT) { in TEST_P()
303 } else if (cardStatus.base.base.cardState == CardState::PRESENT) { in TEST_P()
332 if (cardStatus.base.base.cardState == CardState::ABSENT) { in TEST_P()
335 } else if (cardStatus.base.base.cardState == CardState::PRESENT) { in TEST_P()
364 if (cardStatus.base.base.cardState == CardState::ABSENT) { in TEST_P()
367 } else if (cardStatus.base.base.cardState == CardState::PRESENT) { in TEST_P()
[all …]
/hardware/interfaces/
Dupdate-base-files.sh23 -o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/sensors-base.h \
26 -o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/nfc-base.h \
29 -o $ANDROID_BUILD_TOP/hardware/libhardware/include/hardware/gnss-base.h \
34 -o $ANDROID_BUILD_TOP/system/core/include/system/graphics-base-v1.0.h \
37 -o $ANDROID_BUILD_TOP/system/core/include/system/graphics-base-v1.1.h \
40 -o $ANDROID_BUILD_TOP/system/core/include/system/graphics-base-v1.2.h \
45 -o $ANDROID_BUILD_TOP/system/media/audio/include/system/audio-base.h \
48 -o $ANDROID_BUILD_TOP/system/media/audio/include/system/audio_effect-base.h \
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_ion_alloc.cpp105 int IonAlloc::FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, in FreeBuffer() argument
109 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d handle:0x%x", base, size, fd, in FreeBuffer()
112 if (base) { in FreeBuffer()
113 err = UnmapBuffer(base, size, offset); in FreeBuffer()
125 int IonAlloc::MapBuffer(void **base, unsigned int size, unsigned int offset, int fd) { in MapBuffer() argument
133 *base = addr; in MapBuffer()
156 int IonAlloc::UnmapBuffer(void *base, unsigned int size, unsigned int /*offset*/) { in UnmapBuffer() argument
158 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%u", base, size); in UnmapBuffer()
161 if (munmap(base, size)) { in UnmapBuffer()
163 ALOGE("ion: Failed to unmap memory at %p : %s", base, strerror(errno)); in UnmapBuffer()
[all …]
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_ion_alloc.cpp105 int IonAlloc::FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, in FreeBuffer() argument
109 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d handle:0x%x", base, size, fd, in FreeBuffer()
112 if (base) { in FreeBuffer()
113 err = UnmapBuffer(base, size, offset); in FreeBuffer()
125 int IonAlloc::MapBuffer(void **base, unsigned int size, unsigned int offset, int fd) { in MapBuffer() argument
133 *base = addr; in MapBuffer()
156 int IonAlloc::UnmapBuffer(void *base, unsigned int size, unsigned int /*offset*/) { in UnmapBuffer() argument
158 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%u", base, size); in UnmapBuffer()
161 if (munmap(base, size)) { in UnmapBuffer()
163 ALOGE("ion: Failed to unmap memory at %p : %s", base, strerror(errno)); in UnmapBuffer()
[all …]
/hardware/qcom/display/msm8909/gralloc/
Dgr_ion_alloc.cpp105 int IonAlloc::FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, in FreeBuffer() argument
109 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d handle:0x%x", base, size, fd, in FreeBuffer()
112 if (base) { in FreeBuffer()
113 err = UnmapBuffer(base, size, offset); in FreeBuffer()
125 int IonAlloc::MapBuffer(void **base, unsigned int size, unsigned int offset, int fd) { in MapBuffer() argument
133 *base = addr; in MapBuffer()
156 int IonAlloc::UnmapBuffer(void *base, unsigned int size, unsigned int /*offset*/) { in UnmapBuffer() argument
158 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%u", base, size); in UnmapBuffer()
161 if (munmap(base, size)) { in UnmapBuffer()
163 ALOGE("ion: Failed to unmap memory at %p : %s", base, strerror(errno)); in UnmapBuffer()
[all …]
Dgr_ion_alloc.h46 void *base = NULL; member
67 int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, int ion_handle);
68 int MapBuffer(void **base, unsigned int size, unsigned int offset, int fd);
70 int UnmapBuffer(void *base, unsigned int size, unsigned int offset);
71 int CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op);
/hardware/qcom/sdm845/display/gralloc/
Dgr_ion_alloc.cpp114 int IonAlloc::FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, in FreeBuffer() argument
118 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d handle:0x%x", base, size, fd, in FreeBuffer()
121 if (base) { in FreeBuffer()
122 err = UnmapBuffer(base, size, offset); in FreeBuffer()
134 int IonAlloc::MapBuffer(void **base, unsigned int size, unsigned int offset, int fd) { in MapBuffer() argument
142 *base = addr; in MapBuffer()
165 int IonAlloc::UnmapBuffer(void *base, unsigned int size, unsigned int /*offset*/) { in UnmapBuffer() argument
167 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%u", base, size); in UnmapBuffer()
170 if (munmap(base, size)) { in UnmapBuffer()
172 ALOGE("ion: Failed to unmap memory at %p : %s", base, strerror(errno)); in UnmapBuffer()
[all …]
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_ion_alloc.cpp119 int IonAlloc::FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, in FreeBuffer() argument
123 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d handle:0x%x", base, size, fd, in FreeBuffer()
126 if (base) { in FreeBuffer()
127 err = UnmapBuffer(base, size, offset); in FreeBuffer()
139 int IonAlloc::MapBuffer(void **base, unsigned int size, unsigned int offset, int fd) { in MapBuffer() argument
147 *base = addr; in MapBuffer()
170 int IonAlloc::UnmapBuffer(void *base, unsigned int size, unsigned int /*offset*/) { in UnmapBuffer() argument
172 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%u", base, size); in UnmapBuffer()
175 if (munmap(base, size)) { in UnmapBuffer()
177 ALOGE("ion: Failed to unmap memory at %p : %s", base, strerror(errno)); in UnmapBuffer()
[all …]
Dgr_ion_alloc.h46 void *base = NULL; member
67 int FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, int ion_handle);
68 int MapBuffer(void **base, unsigned int size, unsigned int offset, int fd);
70 int UnmapBuffer(void *base, unsigned int size, unsigned int offset);
71 int CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op);
/hardware/qcom/sm8150/display/gralloc/
Dgr_ion_alloc.cpp110 int IonAlloc::FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, in FreeBuffer() argument
114 ALOGD_IF(DEBUG, "libion: Freeing buffer base:%p size:%u fd:%d", base, size, fd); in FreeBuffer()
116 if (base) { in FreeBuffer()
117 err = UnmapBuffer(base, size, offset); in FreeBuffer()
220 int IonAlloc::FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, in FreeBuffer() argument
224 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d handle:0x%x", base, size, fd, in FreeBuffer()
227 if (base) { in FreeBuffer()
228 err = UnmapBuffer(base, size, offset); in FreeBuffer()
252 int IonAlloc::CleanBuffer(void *base, unsigned int size, unsigned int offset, int handle, int op, in CleanBuffer() argument
264 flush_data.vaddr = base; in CleanBuffer()
[all …]
/hardware/interfaces/radio/1.5/vts/functional/
Dradio_hidl_hal_api.cpp411 if (cardStatus.base.base.base.cardState != CardState::ABSENT) return; in TEST_P()
438 if (cardStatus.base.base.base.cardState != CardState::PRESENT) return; in TEST_P()
492 if (cardStatus.base.base.base.cardState == CardState::ABSENT) { in TEST_P()
494 } else if (cardStatus.base.base.base.cardState == CardState::PRESENT) { in TEST_P()
578 if (cardStatus.base.base.base.cardState == CardState::ABSENT) { in TEST_P()
580 } else if (cardStatus.base.base.base.cardState == CardState::PRESENT) { in TEST_P()
612 if (cardStatus.base.base.base.cardState == CardState::ABSENT) { in TEST_P()
615 } else if (cardStatus.base.base.base.cardState == CardState::PRESENT) { in TEST_P()
656 if (cardStatus.base.base.base.cardState == CardState::ABSENT) { in TEST_P()
659 } else if (cardStatus.base.base.base.cardState == CardState::PRESENT) { in TEST_P()
[all …]

12345678910>>...29