Home
last modified time | relevance | path

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

/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 LOGE_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()
Dgr.h37 struct private_handle_t;
44 int terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd);
Dframebuffer.cpp94 if (private_handle_t::validate(buffer) < 0) in fb_post()
99 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); in fb_post()
108 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in fb_post()
329 module->framebuffer = new private_handle_t(dup(fd), fbSize, in mapFrameBufferLocked()
330 private_handle_t::PRIV_FLAGS_USES_PMEM); in mapFrameBufferLocked()
426 private_handle_t *priv = (private_handle_t*) handle; in msm_copy_buffer()
Dgpu.h49 private_handle_t* hnd) = 0;
60 int free_impl(private_handle_t const* hnd);
Dgralloc.cpp125 private_handle_t* hnd) { in terminateBuffer()
/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 …]
Dgr.h37 struct private_handle_t;
44 int terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd);
45 int mapBuffer(gralloc_module_t const* module, private_handle_t* hnd);
Dframebuffer.cpp90 if (private_handle_t::validate(buffer) < 0) in fb_post()
95 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); in fb_post()
99 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in fb_post()
293 module->framebuffer = new private_handle_t(dup(fd), fbSize, in mapFrameBufferLocked()
294 private_handle_t::PRIV_FLAGS_USES_PMEM); in mapFrameBufferLocked()
389 private_handle_t *priv = (private_handle_t*) handle; in msm_copy_buffer()
/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()
249 if (private_handle_t::validate(handle) < 0) in gralloc_free()
252 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); in gralloc_free()
253 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in gralloc_free()
263 terminateBuffer(module, const_cast<private_handle_t*>(hnd)); in gralloc_free()
Dgr.h37 struct private_handle_t;
44 int terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd);
45 int mapBuffer(gralloc_module_t const* module, private_handle_t* hnd);
Dframebuffer.cpp87 if (private_handle_t::validate(buffer) < 0) in fb_post()
92 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); in fb_post()
96 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in fb_post()
276 module->framebuffer = new private_handle_t(dup(fd), fbSize, 0); in mapFrameBufferLocked()
/hardware/msm7k/libcopybit/
Dcopybit.cpp136 private_handle_t* hnd = (private_handle_t*)rhs->handle; in set_image()
142 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_GPU) { in set_image()