Home
last modified time | relevance | path

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

12345678910>>...13

/hardware/qcom/display/msm8084/libgralloc/
Dmapper.cpp61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
98 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
99 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
133 if (!module || private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
145 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
160 if (!module || private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
169 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
180 private_handle_t* hnd) in terminateBuffer()
[all …]
Dgpu.cpp99 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY; in gralloc_alloc_buffer()
103 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601; in gralloc_alloc_buffer()
108 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
117 flags |= private_handle_t::PRIV_FLAGS_ITU_R_709; in gralloc_alloc_buffer()
120 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
129 flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER; in gralloc_alloc_buffer()
133 flags |= private_handle_t::PRIV_FLAGS_CAMERA_WRITE; in gralloc_alloc_buffer()
137 flags |= private_handle_t::PRIV_FLAGS_CAMERA_READ; in gralloc_alloc_buffer()
141 flags |= private_handle_t::PRIV_FLAGS_HW_COMPOSER; in gralloc_alloc_buffer()
145 flags |= private_handle_t::PRIV_FLAGS_HW_TEXTURE; in gralloc_alloc_buffer()
[all …]
/hardware/qcom/display/msm8226/libgralloc/
Dmapper.cpp61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
98 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
99 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
133 if (!module || private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
145 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
160 if (!module || private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
169 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
180 private_handle_t* hnd) in terminateBuffer()
[all …]
Dgpu.cpp98 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY; in gralloc_alloc_buffer()
102 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601; in gralloc_alloc_buffer()
107 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
116 flags |= private_handle_t::PRIV_FLAGS_ITU_R_709; in gralloc_alloc_buffer()
119 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
128 flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER; in gralloc_alloc_buffer()
132 flags |= private_handle_t::PRIV_FLAGS_CAMERA_WRITE; in gralloc_alloc_buffer()
136 flags |= private_handle_t::PRIV_FLAGS_CAMERA_READ; in gralloc_alloc_buffer()
140 flags |= private_handle_t::PRIV_FLAGS_HW_COMPOSER; in gralloc_alloc_buffer()
144 flags |= private_handle_t::PRIV_FLAGS_HW_TEXTURE; in gralloc_alloc_buffer()
[all …]
/hardware/qcom/display/msm8909w_3100/libgralloc/
Dmapper.cpp59 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map_metadata()
64 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map_metadata()
86 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
94 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
95 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
131 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
171 if (!module || private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
185 if (!module || private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
198 private_handle_t* hnd) in terminateBuffer()
217 if (!module || private_handle_t::validate(handle) < 0) in gralloc_map_and_invalidate()
[all …]
/hardware/qcom/display/msm8909/libgralloc/
Dmapper.cpp59 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map_metadata()
64 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map_metadata()
86 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
94 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
95 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
131 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
171 if (!module || private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
185 if (!module || private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
198 private_handle_t* hnd) in terminateBuffer()
217 if (!module || private_handle_t::validate(handle) < 0) in gralloc_map_and_invalidate()
[all …]
/hardware/libhardware/modules/gralloc/
Dmapper.cpp41 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
42 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map()
61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
62 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
79 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
117 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
129 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
132 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
140 private_handle_t* hnd) in mapBuffer()
147 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 {
83 return (((sizeof(private_handle_t) - sizeof(native_handle_t))/sizeof(int)) - sNumFds); in sNumInts() argument
88 private_handle_t(int fd, int size, int flags) : in private_handle_t() argument
96 ~private_handle_t() { in ~private_handle_t() argument
101 const private_handle_t* hnd = (const private_handle_t*)h; in validate() argument
/hardware/qcom/display/msm8996/libgralloc/
Dmapper.cpp60 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map_metadata()
65 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map_metadata()
87 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
95 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
96 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
132 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
172 if (!module || private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
186 if (!module || private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
199 private_handle_t* hnd) in terminateBuffer()
218 if (!module || private_handle_t::validate(handle) < 0) in gralloc_map_and_invalidate()
[all …]
Dgpu.cpp103 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY; in gralloc_alloc_buffer()
107 flags |= private_handle_t::PRIV_FLAGS_INTERNAL_ONLY; in gralloc_alloc_buffer()
111 flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER; in gralloc_alloc_buffer()
115 flags |= private_handle_t::PRIV_FLAGS_CAMERA_WRITE; in gralloc_alloc_buffer()
119 flags |= private_handle_t::PRIV_FLAGS_CAMERA_READ; in gralloc_alloc_buffer()
123 flags |= private_handle_t::PRIV_FLAGS_HW_COMPOSER; in gralloc_alloc_buffer()
127 flags |= private_handle_t::PRIV_FLAGS_HW_TEXTURE; in gralloc_alloc_buffer()
131 flags |= private_handle_t::PRIV_FLAGS_SECURE_DISPLAY; in gralloc_alloc_buffer()
135 flags |= private_handle_t::PRIV_FLAGS_TILE_RENDERED; in gralloc_alloc_buffer()
139 flags |= private_handle_t::PRIV_FLAGS_UBWC_ALIGNED; in gralloc_alloc_buffer()
[all …]
/hardware/qcom/display/msm8960/libgralloc/
Dmapper.cpp60 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
62 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
63 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
94 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
95 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap()
129 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
141 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
156 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
165 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unregister_buffer()
176 private_handle_t* hnd) in terminateBuffer()
[all …]
Dgpu.cpp96 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY; in gralloc_alloc_buffer()
99 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_BLOCK; in gralloc_alloc_buffer()
102 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_CC; in gralloc_alloc_buffer()
110 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
114 flags |= private_handle_t::PRIV_FLAGS_ITU_R_709; in gralloc_alloc_buffer()
116 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
119 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601; in gralloc_alloc_buffer()
124 flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER; in gralloc_alloc_buffer()
128 flags |= private_handle_t::PRIV_FLAGS_CAMERA_WRITE; in gralloc_alloc_buffer()
132 flags |= private_handle_t::PRIV_FLAGS_CAMERA_READ; in gralloc_alloc_buffer()
[all …]
/hardware/qcom/display/msm8994/libgralloc/
Dmapper.cpp61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map_metadata()
66 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map_metadata()
88 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
96 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) && in gralloc_map()
97 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) { in gralloc_map()
133 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
173 if (!module || private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
187 if (!module || private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
200 private_handle_t* hnd) in terminateBuffer()
219 if (!module || private_handle_t::validate(handle) < 0) in gralloc_map_and_invalidate()
[all …]
Dgpu.cpp102 flags |= private_handle_t::PRIV_FLAGS_EXTERNAL_ONLY; in gralloc_alloc_buffer()
106 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601; in gralloc_alloc_buffer()
111 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
120 flags |= private_handle_t::PRIV_FLAGS_ITU_R_709; in gralloc_alloc_buffer()
123 flags |= private_handle_t::PRIV_FLAGS_ITU_R_601_FR; in gralloc_alloc_buffer()
132 flags |= private_handle_t::PRIV_FLAGS_VIDEO_ENCODER; in gralloc_alloc_buffer()
136 flags |= private_handle_t::PRIV_FLAGS_CAMERA_WRITE; in gralloc_alloc_buffer()
140 flags |= private_handle_t::PRIV_FLAGS_CAMERA_READ; in gralloc_alloc_buffer()
144 flags |= private_handle_t::PRIV_FLAGS_HW_COMPOSER; in gralloc_alloc_buffer()
148 flags |= private_handle_t::PRIV_FLAGS_HW_TEXTURE; in gralloc_alloc_buffer()
[all …]
/hardware/qcom/sdm845/display/gralloc/
Dgr_buf_mgr.h44 Error RetainBuffer(private_handle_t const *hnd);
45 Error ReleaseBuffer(private_handle_t const *hnd);
46 Error LockBuffer(const private_handle_t *hnd, uint64_t usage);
47 Error UnlockBuffer(const private_handle_t *hnd);
49 Error ValidateBufferSize(private_handle_t const *hnd, BufferInfo info);
50 Error IsBufferImported(const private_handle_t *hnd);
55 Error MapBuffer(private_handle_t const *hnd);
59 Error ImportHandleLocked(private_handle_t *hnd);
62 void RegisterHandleLocked(const private_handle_t *hnd, int ion_handle, int ion_handle_meta);
70 const private_handle_t *handle = nullptr;
[all …]
Dgr_buf_mgr.cpp61 if (private_handle_t::validate(hnd) != 0) { in FreeBuffer()
77 private_handle_t *handle = const_cast<private_handle_t *>(hnd); in FreeBuffer()
80 if (!(handle->flags & private_handle_t::PRIV_FLAGS_CLIENT_ALLOCATED)) { in FreeBuffer()
86 Error BufferManager::ValidateBufferSize(private_handle_t const *hnd, BufferInfo info) { in ValidateBufferSize()
97 void BufferManager::RegisterHandleLocked(const private_handle_t *hnd, int ion_handle, in RegisterHandleLocked()
103 Error BufferManager::ImportHandleLocked(private_handle_t *hnd) { in ImportHandleLocked()
104 if (private_handle_t::validate(hnd) != 0) { in ImportHandleLocked()
132 const private_handle_t *hnd) { in GetBufferFromHandleLocked()
141 Error BufferManager::MapBuffer(private_handle_t const *handle) { in MapBuffer()
142 private_handle_t *hnd = const_cast<private_handle_t *>(handle); in MapBuffer()
[all …]
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_buf_mgr.cpp161 private_handle_t const *input = reinterpret_cast<private_handle_t const *>(inbuffer); in CreateSharedHandle()
173 private_handle_t *out_hnd = new private_handle_t(dup(input->fd), in CreateSharedHandle()
195 if (private_handle_t::validate(hnd) != 0) { in FreeBuffer()
211 private_handle_t * handle = const_cast<private_handle_t *>(hnd); in FreeBuffer()
214 if (!(handle->flags & private_handle_t::PRIV_FLAGS_CLIENT_ALLOCATED)) { in FreeBuffer()
220 void BufferManager::RegisterHandleLocked(const private_handle_t *hnd, in RegisterHandleLocked()
227 gralloc1_error_t BufferManager::ImportHandleLocked(private_handle_t *hnd) { in ImportHandleLocked()
228 if (private_handle_t::validate(hnd) != 0) { in ImportHandleLocked()
252 BufferManager::GetBufferFromHandleLocked(const private_handle_t *hnd) { in GetBufferFromHandleLocked()
261 gralloc1_error_t BufferManager::MapBuffer(private_handle_t const *handle) { in MapBuffer()
[all …]
Dgr_buf_mgr.h43 gralloc1_error_t RetainBuffer(private_handle_t const *hnd);
44 gralloc1_error_t ReleaseBuffer(private_handle_t const *hnd);
45 gralloc1_error_t LockBuffer(const private_handle_t *hnd, gralloc1_producer_usage_t prod_usage,
47 gralloc1_error_t UnlockBuffer(const private_handle_t *hnd);
49 gralloc1_error_t GetFlexLayout(const private_handle_t *hnd, struct android_flex_layout *layout);
50 gralloc1_error_t GetNumFlexPlanes(const private_handle_t *hnd, uint32_t *out_num_planes);
52 gralloc1_error_t IsBufferImported(const private_handle_t *hnd);
53 gralloc1_error_t ValidateBufferSize(private_handle_t const *hnd, BufferDescriptor descriptor);
76 gralloc1_error_t MapBuffer(private_handle_t const *hnd);
86 gralloc1_error_t ImportHandleLocked(private_handle_t *hnd);
[all …]
/hardware/qcom/display/msm8909/gralloc/
Dgr_buf_mgr.cpp160 private_handle_t const *input = reinterpret_cast<private_handle_t const *>(inbuffer); in CreateSharedHandle()
175 private_handle_t *out_hnd = new private_handle_t(dup(input->fd), in CreateSharedHandle()
197 if (private_handle_t::validate(hnd) != 0) { in FreeBuffer()
213 private_handle_t * handle = const_cast<private_handle_t *>(hnd); in FreeBuffer()
216 if (!(handle->flags & private_handle_t::PRIV_FLAGS_CLIENT_ALLOCATED)) { in FreeBuffer()
222 void BufferManager::RegisterHandleLocked(const private_handle_t *hnd, in RegisterHandleLocked()
229 gralloc1_error_t BufferManager::ImportHandleLocked(private_handle_t *hnd) { in ImportHandleLocked()
250 BufferManager::GetBufferFromHandleLocked(const private_handle_t *hnd) { in GetBufferFromHandleLocked()
259 gralloc1_error_t BufferManager::MapBuffer(private_handle_t const *handle) { in MapBuffer()
260 private_handle_t *hnd = const_cast<private_handle_t *>(handle); in MapBuffer()
[all …]
Dgr_buf_mgr.h43 gralloc1_error_t RetainBuffer(private_handle_t const *hnd);
44 gralloc1_error_t ReleaseBuffer(private_handle_t const *hnd);
45 gralloc1_error_t LockBuffer(const private_handle_t *hnd, gralloc1_producer_usage_t prod_usage,
47 gralloc1_error_t UnlockBuffer(const private_handle_t *hnd);
49 gralloc1_error_t GetFlexLayout(const private_handle_t *hnd, struct android_flex_layout *layout);
50 gralloc1_error_t GetNumFlexPlanes(const private_handle_t *hnd, uint32_t *out_num_planes);
74 gralloc1_error_t MapBuffer(private_handle_t const *hnd);
86 gralloc1_error_t ImportHandleLocked(private_handle_t *hnd);
89 void RegisterHandleLocked(const private_handle_t *hnd, int ion_handle, int ion_handle_meta);
97 const private_handle_t *handle = nullptr;
[all …]
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_buf_mgr.cpp160 private_handle_t const *input = reinterpret_cast<private_handle_t const *>(inbuffer); in CreateSharedHandle()
175 private_handle_t *out_hnd = new private_handle_t(dup(input->fd), in CreateSharedHandle()
207 private_handle_t * handle = const_cast<private_handle_t *>(hnd); in FreeBuffer()
210 if (!(handle->flags & private_handle_t::PRIV_FLAGS_CLIENT_ALLOCATED)) { in FreeBuffer()
216 void BufferManager::RegisterHandleLocked(const private_handle_t *hnd, in RegisterHandleLocked()
223 gralloc1_error_t BufferManager::ImportHandleLocked(private_handle_t *hnd) { in ImportHandleLocked()
244 BufferManager::GetBufferFromHandleLocked(const private_handle_t *hnd) { in GetBufferFromHandleLocked()
253 gralloc1_error_t BufferManager::MapBuffer(private_handle_t const *handle) { in MapBuffer()
254 private_handle_t *hnd = const_cast<private_handle_t *>(handle); in MapBuffer()
265 gralloc1_error_t BufferManager::RetainBuffer(private_handle_t const *hnd) { in RetainBuffer()
[all …]
Dgr_buf_mgr.h43 gralloc1_error_t RetainBuffer(private_handle_t const *hnd);
44 gralloc1_error_t ReleaseBuffer(private_handle_t const *hnd);
45 gralloc1_error_t LockBuffer(const private_handle_t *hnd, gralloc1_producer_usage_t prod_usage,
47 gralloc1_error_t UnlockBuffer(const private_handle_t *hnd);
49 gralloc1_error_t GetFlexLayout(const private_handle_t *hnd, struct android_flex_layout *layout);
50 gralloc1_error_t GetNumFlexPlanes(const private_handle_t *hnd, uint32_t *out_num_planes);
74 gralloc1_error_t MapBuffer(private_handle_t const *hnd);
86 gralloc1_error_t ImportHandleLocked(private_handle_t *hnd);
89 void RegisterHandleLocked(const private_handle_t *hnd, int ion_handle, int ion_handle_meta);
97 const private_handle_t *handle = nullptr;
[all …]
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_buf_mgr.cpp161 private_handle_t const *input = reinterpret_cast<private_handle_t const *>(inbuffer); in CreateSharedHandle()
174 private_handle_t *out_hnd = new private_handle_t(dup(input->fd), in CreateSharedHandle()
206 private_handle_t * handle = const_cast<private_handle_t *>(hnd); in FreeBuffer()
213 void BufferManager::RegisterHandleLocked(const private_handle_t *hnd, in RegisterHandleLocked()
220 gralloc1_error_t BufferManager::ImportHandleLocked(private_handle_t *hnd) { in ImportHandleLocked()
241 BufferManager::GetBufferFromHandleLocked(const private_handle_t *hnd) { in GetBufferFromHandleLocked()
242 if (hnd->flags & private_handle_t::PRIV_FLAGS_CLIENT_ALLOCATED) { in GetBufferFromHandleLocked()
254 gralloc1_error_t BufferManager::MapBuffer(private_handle_t const *handle) { in MapBuffer()
255 private_handle_t *hnd = const_cast<private_handle_t *>(handle); in MapBuffer()
275 gralloc1_error_t BufferManager::RetainBuffer(private_handle_t const *hnd) { in RetainBuffer()
[all …]
Dgr_buf_mgr.h43 gralloc1_error_t RetainBuffer(private_handle_t const *hnd);
44 gralloc1_error_t ReleaseBuffer(private_handle_t const *hnd);
45 gralloc1_error_t LockBuffer(const private_handle_t *hnd, gralloc1_producer_usage_t prod_usage,
47 gralloc1_error_t UnlockBuffer(const private_handle_t *hnd);
49 gralloc1_error_t GetFlexLayout(const private_handle_t *hnd, struct android_flex_layout *layout);
50 gralloc1_error_t GetNumFlexPlanes(const private_handle_t *hnd, uint32_t *out_num_planes);
52 gralloc1_error_t IsBufferImported(const private_handle_t *hnd);
53 gralloc1_error_t ValidateBufferSize(private_handle_t const *hnd, BufferDescriptor descriptor);
76 gralloc1_error_t MapBuffer(private_handle_t const *hnd);
86 gralloc1_error_t ImportHandleLocked(private_handle_t *hnd);
[all …]
/hardware/qcom/display/msm8960/libgenlock/
Dgenlock.cpp71 if (private_handle_t::validate(buffer_handle)) { in perform_lock_unlock_operation()
76 private_handle_t *hnd = reinterpret_cast<private_handle_t*> in perform_lock_unlock_operation()
78 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in perform_lock_unlock_operation()
146 if (private_handle_t::validate(buffer_handle)) { in genlock_create_lock()
151 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_create_lock()
152 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_create_lock()
201 if (private_handle_t::validate(buffer_handle)) { in genlock_release_lock()
206 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); in genlock_release_lock()
207 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { in genlock_release_lock()
231 if (private_handle_t::validate(buffer_handle)) { in genlock_attach_lock()
[all …]

12345678910>>...13