Home
last modified time | relevance | path

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

12345678910

/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.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 …]
Dmemalloc.h44 void *base; member
65 virtual int free_buffer(void *base, unsigned int size,
73 virtual int unmap_buffer(void *base, unsigned int size,
77 virtual int clean_buffer(void *base, unsigned int size,
/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/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/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 …]
Dmemalloc.h44 void *base; member
64 virtual int free_buffer(void *base, unsigned int size,
72 virtual int unmap_buffer(void *base, unsigned int size,
76 virtual int clean_buffer(void *base, unsigned int size,
/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 …]
Dmemalloc.h44 void *base; member
64 virtual int free_buffer(void *base, unsigned int size,
72 virtual int unmap_buffer(void *base, unsigned int size,
76 virtual int clean_buffer(void *base, unsigned int size,
/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/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/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/ti/omap4-aah/test/CameraHal/
DAndroid.mk38 frameworks/base/include/ui \
39 frameworks/base/include/surfaceflinger \
40 frameworks/base/include/camera \
41 frameworks/base/include/media
81 frameworks/base/include/ui \
82 frameworks/base/include/surfaceflinger \
83 frameworks/base/include/camera \
84 frameworks/base/include/media \
/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/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()
/hardware/qcom/display/msm8226/libqdutils/
DqdMetaData.cpp54 void *base = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, in setMetaData() local
56 if (base == reinterpret_cast<void*>(MAP_FAILED)) { in setMetaData()
60 MetaData_t *data = reinterpret_cast <MetaData_t *>(base); in setMetaData()
94 if(munmap(base, size)) in setMetaData()
95 ALOGE("%s: failed to unmap ptr %p, err %d", __func__, (void*)base, in setMetaData()
/hardware/qcom/display/msm8996/libqdutils/
DqdMetaData.cpp54 void *base = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, in setMetaData() local
56 if (base == reinterpret_cast<void*>(MAP_FAILED)) { in setMetaData()
60 MetaData_t *data = reinterpret_cast <MetaData_t *>(base); in setMetaData()
94 if(munmap(base, size)) in setMetaData()
95 ALOGE("%s: failed to unmap ptr %p, err %d", __func__, (void*)base, in setMetaData()
/hardware/qcom/display/msm8084/libqdutils/
DqdMetaData.cpp53 void *base = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, in setMetaData() local
55 if (!base) { in setMetaData()
59 MetaData_t *data = reinterpret_cast <MetaData_t *>(base); in setMetaData()
93 if(munmap(base, size)) in setMetaData()
94 ALOGE("%s: failed to unmap ptr %p, err %d", __func__, (void*)base, in setMetaData()

12345678910