Home
last modified time | relevance | path

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

12345678910>>...17

/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/msm8909/libgralloc/
Dionalloc.cpp75 void *base = 0; in alloc_buffer() local
106 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
108 if(base == MAP_FAILED) { in alloc_buffer()
117 data.base = base; in alloc_buffer()
121 data.base, ionAllocData.len, data.fd); in alloc_buffer()
126 int IonAlloc::free_buffer(void* base, unsigned int size, unsigned int offset, in free_buffer() argument
132 base, size, fd); in free_buffer()
138 if(base) in free_buffer()
139 err = unmap_buffer(base, size, offset); in free_buffer()
149 void *base = 0; in map_buffer() local
[all …]
Dmapper.cpp79 hnd->base = 0; in gralloc_map()
83 hnd->base = uint64_t(mappedAddress) + hnd->offset; in gralloc_map()
113 void* base = (void*)hnd->base; in gralloc_unmap() local
117 err = memalloc->unmap_buffer(base, size, hnd->offset); in gralloc_unmap()
119 ALOGE("Could not unmap memory at address %p", (void*)base); in gralloc_unmap()
121 base = (void*)hnd->base_metadata; in gralloc_unmap()
123 err = memalloc->unmap_buffer(base, size, hnd->offset_metadata); in gralloc_unmap()
125 ALOGE("Could not unmap memory at address %p", (void*)base); in gralloc_unmap()
131 hnd->base = 0; in gralloc_unmap()
159 hnd->base = 0; in gralloc_register_buffer()
[all …]
/hardware/qcom/display/msm8996/libgralloc/
Dionalloc.cpp75 void *base = 0; in alloc_buffer() local
102 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
104 if(base == MAP_FAILED) { in alloc_buffer()
113 data.base = base; in alloc_buffer()
117 data.base, ionAllocData.len, data.fd); in alloc_buffer()
122 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()
145 void *base = 0; in map_buffer() local
[all …]
/hardware/qcom/display/msm8998/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/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/msm8994/libgralloc/
Dionalloc.cpp75 void *base = 0; in alloc_buffer() local
112 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
114 if(base == MAP_FAILED) { in alloc_buffer()
123 data.base = base; in alloc_buffer()
127 data.base, ionAllocData.len, data.fd); in alloc_buffer()
132 int IonAlloc::free_buffer(void* base, unsigned int size, unsigned int offset, in free_buffer() argument
138 base, size, fd); in free_buffer()
144 if(base) in free_buffer()
145 err = unmap_buffer(base, size, offset); in free_buffer()
155 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/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/qcom/display/msm8998/libgralloc1/
Dgr_ion_alloc.cpp74 void *base = NULL; in AllocBuffer() local
98 base = mmap(0, ion_alloc_data.len, PROT_READ | PROT_WRITE, MAP_SHARED, fd_data.fd, 0); in AllocBuffer()
99 if (base == MAP_FAILED) { in AllocBuffer()
107 data->base = base; in AllocBuffer()
110 ALOGD_IF(DEBUG, "ion: Allocated buffer base:%p size:%zu fd:%d handle:0x%x", data->base, in AllocBuffer()
116 int IonAlloc::FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, in FreeBuffer() argument
120 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d handle:0x%x", base, size, fd, in FreeBuffer()
123 if (base) { in FreeBuffer()
124 err = UnmapBuffer(base, size, offset); in FreeBuffer()
134 int IonAlloc::MapBuffer(void **base, unsigned int size, unsigned int offset, int fd) { in MapBuffer() argument
[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);
69 int UnmapBuffer(void *base, unsigned int size, unsigned int offset);
70 int CleanBuffer(void *base, unsigned int size, unsigned int offset, int fd, int op);
/hardware/intel/common/libva/va/x11/
Ddri1_util.c18 struct dri_drawable base; member
34 dri1_drawable->base.x_drawable = x_drawable; in dri1CreateDrawable()
36 return &dri1_drawable->base; in dri1CreateDrawable()
68 assert(dri_state->base.fd >= 0); in dri1Close()
69 drmCloseOnce(dri_state->base.fd); in dri1Close()
86 dri_state->base.fd = -1; in isDRI1Connected()
88 dri_state->base.auth_type = VA_NONE; in isDRI1Connected()
108 dri_state->base.fd = drmOpenOnce(NULL, BusID, &newlyopened); in isDRI1Connected()
111 if (dri_state->base.fd < 0) in isDRI1Connected()
115 if (drmGetMagic(dri_state->base.fd, &magic)) in isDRI1Connected()
[all …]
Ddri2_util.c52 struct dri_drawable base; member
73 dri2_drawable->base.x_drawable = x_drawable; in dri2CreateDrawable()
74 dri2_drawable->base.x = 0; in dri2CreateDrawable()
75 dri2_drawable->base.y = 0; in dri2CreateDrawable()
78 return &dri2_drawable->base; in dri2CreateDrawable()
171 if (dri_state->base.fd >= 0); in dri2Close()
172 close(dri_state->base.fd); in dri2Close()
185 dri_state->base.fd = -1; in isDRI2Connected()
186 dri_state->base.auth_type = VA_NONE; in isDRI2Connected()
198 dri_state->base.fd = open(device_name, O_RDWR); in isDRI2Connected()
[all …]
/hardware/libhardware/modules/gralloc/
Dmapper.cpp51 hnd->base = uintptr_t(mappedAddress) + hnd->offset; in gralloc_map()
55 *vaddr = (void*)hnd->base; in gralloc_map()
64 void* base = (void*)hnd->base; in gralloc_unmap() local
67 if (munmap(base, size) < 0) { in gralloc_unmap()
71 hnd->base = 0; in gralloc_unmap()
134 if (hnd->base) in gralloc_unregister_buffer()
150 if (hnd->base) { in terminateBuffer()
175 *vaddr = (void*)hnd->base; in gralloc_lock()
/hardware/qcom/display/msm8998/libqdutils/
DqdMetaData.cpp50 void *base = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, in setMetaData() local
52 if (base == reinterpret_cast<void*>(MAP_FAILED)) { in setMetaData()
56 MetaData_t *data = reinterpret_cast <MetaData_t *>(base); in setMetaData()
60 return munmap(base, size); in setMetaData()
107 if(munmap(base, size)) in setMetaData()
108 ALOGE("%s: failed to unmap ptr %p, err %d", __func__, (void*)base, in setMetaData()
124 void *base = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, in clearMetaData() local
126 if (base == reinterpret_cast<void*>(MAP_FAILED)) { in clearMetaData()
130 MetaData_t *data = reinterpret_cast <MetaData_t *>(base); in clearMetaData()
141 if(munmap(base, size)) in clearMetaData()
[all …]
/hardware/intel/common/wrs_omxil_core/
DAndroid.mk18 base/inc/cmodule.h \
19 base/inc/componentbase.h \
20 base/inc/portaudio.h \
21 base/inc/portbase.h \
22 base/inc/portimage.h \
23 base/inc/portother.h \
24 base/inc/portvideo.h \
45 -include $(WRS_OMXIL_CORE_ROOT)/base/src/Android.mk
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_ion_alloc.cpp104 int IonAlloc::FreeBuffer(void *base, unsigned int size, unsigned int offset, int fd, in FreeBuffer() argument
108 ALOGD_IF(DEBUG, "ion: Freeing buffer base:%p size:%u fd:%d handle:0x%x", base, size, fd, in FreeBuffer()
111 if (base) { in FreeBuffer()
112 err = UnmapBuffer(base, size, offset); in FreeBuffer()
124 int IonAlloc::MapBuffer(void **base, unsigned int size, unsigned int offset, int fd) { in MapBuffer() argument
132 *base = addr; in MapBuffer()
155 int IonAlloc::UnmapBuffer(void *base, unsigned int size, unsigned int /*offset*/) { in UnmapBuffer() argument
157 ALOGD_IF(DEBUG, "ion: Unmapping buffer base:%p size:%u", base, size); in UnmapBuffer()
160 if (munmap(base, size)) { in UnmapBuffer()
162 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/intel/bootstub/
Dbootstub.h57 #define GDT_ENTRY(flags, base, limit) \
58 ((((base) & 0xff000000) << (56-24)) | \
61 (((base) & 0x00ffffff) << 16) | \
64 #define GDT_ENTRY(flags, base, limit) \ argument
65 (((u64)(base & 0xff000000) << 32) | \
68 ((u64)(base & 0x00ffffff) << 16) | \
/hardware/interfaces/
Dupdate-base-files.sh23 -o hardware/libhardware/include/hardware/sensors-base.h \
26 -o hardware/libhardware/include/hardware/nfc-base.h \
29 -o hardware/libhardware/include/hardware/gnss-base.h \
34 -o system/core/include/system/graphics-base.h \
39 -o system/media/audio/include/system/audio-base.h \
42 -o system/media/audio/include/system/audio_effect-base.h \
/hardware/intel/img/psb_video/src/
Dpsb_ws_driver.c47 vNode->base.func = func; in psb_alloc()
48 vNode->base.type_id = 0; in psb_alloc()
49 return &vNode->base; in psb_alloc()
69 free(containerOf(node, struct _PsbDrmValidateNode, base)); in psb_free()
87 containerOf(node, struct _PsbDrmValidateNode, base); in psb_clear()
/hardware/qcom/display/msm8960/libqdutils/
DqdMetaData.cpp51 void *base = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, in setMetaData() local
53 if (!base) { in setMetaData()
57 MetaData_t *data = reinterpret_cast <MetaData_t *>(base); in setMetaData()
85 if(munmap(base, size)) in setMetaData()
86 ALOGE("%s: failed to unmap ptr 0x%x, err %d", __func__, (int)base, in setMetaData()

12345678910>>...17