Home
last modified time | relevance | path

Searched refs:private_handle_t (Results 1 – 25 of 59) sorted by relevance

123

/hardware/msm7k/libgralloc-qsd8k/
Dmapper.cpp57 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
58 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map()
82 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
83 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
108 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
121 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
133 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
142 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
144 ALOGE_IF(hnd->lockState & private_handle_t::LOCK_STATE_READ_MASK, in gralloc_unregister_buffer()
150 if (hnd->lockState & private_handle_t::LOCK_STATE_MAPPED) { in gralloc_unregister_buffer()
[all …]
Dgpu.cpp82 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked()
83 private_handle_t::PRIV_FLAGS_USES_PMEM | in gralloc_alloc_framebuffer_locked()
84 private_handle_t::PRIV_FLAGS_FRAMEBUFFER); in gralloc_alloc_framebuffer_locked()
130 flags |= private_handle_t::PRIV_FLAGS_USES_PMEM; in gralloc_alloc_buffer()
134 flags |= private_handle_t::PRIV_FLAGS_USES_PMEM; in gralloc_alloc_buffer()
138 flags |= private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP; in gralloc_alloc_buffer()
139 flags &= ~private_handle_t::PRIV_FLAGS_USES_PMEM; in gralloc_alloc_buffer()
144 if ((flags & private_handle_t::PRIV_FLAGS_USES_PMEM) != 0 || in gralloc_alloc_buffer()
145 (flags & private_handle_t::PRIV_FLAGS_USES_PMEM_ADSP) != 0) { in gralloc_alloc_buffer()
149 if ((flags & private_handle_t::PRIV_FLAGS_USES_PMEM) != 0) { in gralloc_alloc_buffer()
[all …]
Dgralloc_priv.h59 struct private_handle_t;
65 struct private_handle_t* framebuffer;
88 struct private_handle_t : public native_handle { struct
90 struct private_handle_t {
128 private_handle_t(int fd, int size, int flags) : in private_handle_t() argument
136 ~private_handle_t() { in ~private_handle_t() argument
145 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument
156 static private_handle_t* dynamicCast(const native_handle* in) { in dynamicCast() argument
158 return (private_handle_t*) in; in dynamicCast()
/hardware/qcom/display/libgralloc/
Dmapper.cpp63 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
65 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
66 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
95 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
96 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
120 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
132 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
165 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
174 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
191 private_handle_t* hnd) in terminateBuffer()
[all …]
Dgpu.cpp90 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), bufferSize, in gralloc_alloc_framebuffer_locked()
91 private_handle_t::PRIV_FLAGS_USES_PMEM | in gralloc_alloc_framebuffer_locked()
92 private_handle_t::PRIV_FLAGS_FRAMEBUFFER, in gralloc_alloc_framebuffer_locked()
142 flags |= private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED; in gralloc_alloc_buffer()
146 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY; in gralloc_alloc_buffer()
149 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_BLOCK; in gralloc_alloc_buffer()
151 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_CC; in gralloc_alloc_buffer()
156 flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER; in gralloc_alloc_buffer()
160 flags |= private_handle_t::PRIV_FLAGS_CAMERA_WRITE; in gralloc_alloc_buffer()
164 flags |= private_handle_t::PRIV_FLAGS_CAMERA_READ; in gralloc_alloc_buffer()
[all …]
Dgralloc_priv.h132 struct private_handle_t : public native_handle { struct
134 struct private_handle_t {
191 private_handle_t(int fd, int size, int flags, int bufferType, in private_handle_t() argument
203 ~private_handle_t() { in ~private_handle_t() argument
212 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument
240 static private_handle_t* dynamicCast(const native_handle* in) { in dynamicCast() argument
242 return (private_handle_t*) in; in dynamicCast()
Dalloc_controller.cpp143 data.allocType |= private_handle_t::PRIV_FLAGS_USES_ION; in allocate()
145 data.allocType |= private_handle_t::PRIV_FLAGS_NONCONTIGUOUS_MEM; in allocate()
147 data.allocType |= private_handle_t::PRIV_FLAGS_SECURE_BUFFER; in allocate()
156 if (flags & private_handle_t::PRIV_FLAGS_USES_ION) { in getAllocator()
241 int alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage) in alloc_buffer()
261 private_handle_t* hnd = new private_handle_t(data.fd, data.size, in alloc_buffer()
271 void free_buffer(private_handle_t *hnd) in free_buffer()
Dgr.h38 struct private_handle_t;
52 int terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd);
62 int alloc_buffer(private_handle_t **pHnd, int w, int h, int format, int usage);
63 void free_buffer(private_handle_t *hnd);
Dfb_priv.h29 struct private_handle_t;
40 struct private_handle_t* framebuffer;
46 private_handle_t *currentBuffer;
/hardware/msm7k/libgralloc/
Dmapper.cpp57 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
58 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map()
82 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
83 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
108 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
113 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
116 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_USES_GPU)) { in gralloc_register_buffer()
127 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
131 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
141 private_handle_t* hnd) in mapBuffer()
[all …]
Dgralloc_priv.h35 struct private_handle_t;
40 struct private_handle_t* framebuffer;
63 struct private_handle_t : public native_handle { struct
65 struct private_handle_t {
94 private_handle_t(int fd, int size, int flags) : in private_handle_t() argument
102 ~private_handle_t() { in ~private_handle_t() argument
107 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument
Dgralloc.cpp162 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked()
163 private_handle_t::PRIV_FLAGS_USES_PMEM | in gralloc_alloc_framebuffer_locked()
164 private_handle_t::PRIV_FLAGS_FRAMEBUFFER); in gralloc_alloc_framebuffer_locked()
330 flags |= private_handle_t::PRIV_FLAGS_USES_PMEM; in gralloc_alloc_buffer()
334 flags |= private_handle_t::PRIV_FLAGS_USES_PMEM; in gralloc_alloc_buffer()
337 if ((flags & private_handle_t::PRIV_FLAGS_USES_PMEM) == 0) { in gralloc_alloc_buffer()
383 flags &= ~private_handle_t::PRIV_FLAGS_USES_PMEM; in gralloc_alloc_buffer()
392 flags &= ~private_handle_t::PRIV_FLAGS_USES_PMEM; in gralloc_alloc_buffer()
393 flags |= private_handle_t::PRIV_FLAGS_USES_GPU; in gralloc_alloc_buffer()
428 flags &= ~private_handle_t::PRIV_FLAGS_USES_GPU; in gralloc_alloc_buffer()
[all …]
/hardware/libhardware/modules/gralloc/
Dmapper.cpp50 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
51 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map()
70 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
71 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
92 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
97 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
108 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
112 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
122 private_handle_t* hnd) in mapBuffer()
129 private_handle_t* hnd) in terminateBuffer()
[all …]
Dgralloc_priv.h35 struct private_handle_t;
40 private_handle_t* framebuffer;
59 struct private_handle_t : public native_handle { struct
61 struct private_handle_t {
86 private_handle_t(int fd, int size, int flags) : in private_handle_t() argument
94 ~private_handle_t() { in ~private_handle_t() argument
99 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument
Dgralloc.cpp138 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked()
139 private_handle_t::PRIV_FLAGS_FRAMEBUFFER); in gralloc_alloc_framebuffer_locked()
183 private_handle_t* hnd = new private_handle_t(fd, size, 0); in gralloc_alloc_buffer()
250 if (private_handle_t::validate(handle) < 0) in gralloc_free()
253 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); in gralloc_free()
254 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in gralloc_free()
264 terminateBuffer(module, const_cast<private_handle_t*>(hnd)); in gralloc_free()
/hardware/samsung_slsi/exynos5/gralloc/
Dmapper.cpp42 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
58 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
75 int grallocMap(gralloc_module_t const* module, private_handle_t *hnd) in grallocMap()
80 int grallocUnmap(gralloc_module_t const* module, private_handle_t *hnd) in grallocUnmap()
101 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
106 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
131 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
134 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
163 if (private_handle_t::validate(handle) < 0) in gralloc_lock()
166 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_lock()
[all …]
Dgralloc.cpp132 unsigned int ion_flags, private_handle_t **hnd, int *stride) in gralloc_alloc_rgb()
180 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, in gralloc_alloc_rgb()
188 private_handle_t **hnd, int *stride) in gralloc_alloc_framework_yuv()
212 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, h); in gralloc_alloc_framework_yuv()
218 private_handle_t **hnd, int *stride) in gralloc_alloc_yuv()
282 *hnd = new private_handle_t(fd, luma_size, usage, w, h, in gralloc_alloc_yuv()
293 *hnd = new private_handle_t(fd, fd1, fd2, luma_size, usage, w, h, in gralloc_alloc_yuv()
296 *hnd = new private_handle_t(fd, fd1, luma_size, usage, w, h, format, in gralloc_alloc_yuv()
316 private_handle_t *hnd = NULL; in gralloc_alloc()
357 if (private_handle_t::validate(handle) < 0) in gralloc_free()
[all …]
Dgr.h32 struct private_handle_t;
34 int grallocMap(gralloc_module_t const* module, private_handle_t *hnd);
35 int grallocUnmap(gralloc_module_t const* module, private_handle_t *hnd);
Dframebuffer.cpp52 void (*callback)(void *, private_handle_t *);
76 if (private_handle_t::validate(buffer) < 0) in fb_post()
79 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); in fb_post()
87 private_handle_t *hnd = private_handle_t::dynamicCast(buffer); in fb_post()
/hardware/qcom/display/libgenlock/
Dgenlock.cpp65 if (private_handle_t::validate(buffer_handle)) { in perform_lock_unlock_operation()
70 private_handle_t *hnd = reinterpret_cast<private_handle_t*> in perform_lock_unlock_operation()
72 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in perform_lock_unlock_operation()
135 if (private_handle_t::validate(buffer_handle)) { in genlock_create_lock()
140 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_create_lock()
142 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_create_lock()
193 if (private_handle_t::validate(buffer_handle)) { in genlock_release_lock()
198 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_release_lock()
199 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_release_lock()
223 if (private_handle_t::validate(buffer_handle)) { in genlock_attach_lock()
[all …]
/hardware/samsung_slsi/exynos5/include/
Dgralloc_priv.h35 struct private_handle_t;
40 private_handle_t* framebuffer;
62 struct private_handle_t : public native_handle { struct
64 struct private_handle_t {
104 private_handle_t(int fd, int size, int flags, int w, in private_handle_t() function
115 private_handle_t(int fd, int fd1, int size, int flags, int w, in private_handle_t() function
127 private_handle_t(int fd, int fd1, int fd2, int size, int flags, int w, in private_handle_t() function
138 ~private_handle_t() { in ~private_handle_t() argument
143 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument
154 static private_handle_t* dynamicCast(const native_handle* in) in dynamicCast() argument
[all …]
/hardware/qcom/display/libhwcomposer/
Dhwc_utils.h137 static inline bool isYuvBuffer(const private_handle_t* hnd) { in isYuvBuffer()
142 static inline bool isSecureBuffer(const private_handle_t* hnd) { in isSecureBuffer()
143 return (hnd && (private_handle_t::PRIV_FLAGS_SECURE_BUFFER & hnd->flags)); in isSecureBuffer()
146 static inline bool isBufferLocked(const private_handle_t* hnd) { in isBufferLocked()
147 return (hnd && (private_handle_t::PRIV_FLAGS_HWC_LOCK & hnd->flags)); in isBufferLocked()
151 static inline bool isExtOnly(const private_handle_t* hnd) { in isExtOnly()
152 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY)); in isExtOnly()
156 static inline bool isExtBlock(const private_handle_t* hnd) { in isExtBlock()
157 return (hnd && (hnd->flags & private_handle_t::PRIV_FLAGS_EXTERNAL_BLOCK)); in isExtBlock()
161 static inline bool isExtCC(const private_handle_t* hnd) { in isExtCC()
[all …]
Dhwc_video.cpp55 private_handle_t *hnd = (private_handle_t *)layer->handle; in prepare()
87 private_handle_t *hnd = (private_handle_t *)layer->handle; in configure()
177 private_handle_t *hnd = (private_handle_t *) in draw()
/hardware/qcom/display/libcopybit/
Dsoftware_converter.cpp37 int convertYV12toYCrCb420SP(const copybit_image_t *src, private_handle_t *yv12_handle) in convertYV12toYCrCb420SP()
39 private_handle_t* hnd = (private_handle_t*)src->handle; in convertYV12toYCrCb420SP()
182 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd, in convert_yuv_c2d_to_yuv_android()
192 private_handle_t *dst_hnd = (private_handle_t *)rhs->handle; in convert_yuv_c2d_to_yuv_android()
228 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd, in convert_yuv_android_to_yuv_c2d()
237 private_handle_t *dst_hnd = (private_handle_t *)rhs->handle; in convert_yuv_android_to_yuv_c2d()
Dsoftware_converter.h39 int convertYV12toYCrCb420SP(const copybit_image_t *src,private_handle_t *yv12_handle);
49 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd,
61 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd,

123