Searched refs:hnd (Results 1 - 25 of 43) sorted by relevance

12

/hardware/qcom/display/libgralloc/
H A Dmapper.cpp63 private_handle_t* hnd = (private_handle_t*)handle; local
65 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) &&
66 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) {
67 size_t size = hnd->size;
68 IMemAlloc* memalloc = getAllocator(hnd->flags) ;
70 hnd->offset, hnd->fd);
73 handle, hnd->fd, strerror(errno));
74 hnd->base = 0;
80 handle, hnd
95 private_handle_t* hnd = (private_handle_t*)handle; local
190 terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument
224 private_handle_t* hnd = (private_handle_t*)handle; local
315 private_handle_t* hnd = (private_handle_t*)native_handle_create( local
[all...]
H A Dgralloc_priv.h212 const private_handle_t* hnd = (const private_handle_t*)h; local
215 hnd->magic != sMagic)
223 hnd ? (((hnd->magic >> 24) & 0xFF)?
224 ((hnd->magic >> 24) & 0xFF) : '-') : '?',
225 hnd ? (((hnd->magic >> 16) & 0xFF)?
226 ((hnd->magic >> 16) & 0xFF) : '-') : '?',
227 hnd ? (((hnd
[all...]
H A Dgpu.cpp90 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), bufferSize, local
105 hnd->base = vaddr;
106 hnd->offset = vaddr - intptr_t(m->framebuffer->base);
107 *pHandle = hnd;
169 private_handle_t* hnd = new private_handle_t(data.fd, size, flags, local
173 hnd->offset = data.offset;
174 hnd->base = int(data.base) + data.offset;
175 *pHandle = hnd;
258 int gpu_context_t::free_impl(private_handle_t const* hnd) { argument
260 if (hnd
313 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local
[all...]
H A Dalloc_controller.cpp261 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local
264 hnd->base = (int) data.base;
265 hnd->offset = data.offset;
266 hnd->gpuaddr = 0;
267 *pHnd = hnd;
271 void free_buffer(private_handle_t *hnd) argument
275 if (hnd && hnd->fd > 0) {
276 IMemAlloc* memalloc = sAlloc->getAllocator(hnd->flags);
277 memalloc->free_buffer((void*)hnd
[all...]
/hardware/samsung_slsi/exynos5/gralloc/
H A Dmapper.cpp42 private_handle_t* hnd = (private_handle_t*)handle; local
44 void* mappedAddress = mmap(0, hnd->size, PROT_READ|PROT_WRITE, MAP_SHARED,
45 hnd->fd, 0);
50 ALOGV("%s: base %p %d %d %d %d\n", __func__, mappedAddress, hnd->size,
51 hnd->width, hnd->height, hnd->stride);
52 hnd->base = mappedAddress;
58 private_handle_t* hnd = (private_handle_t*)handle; local
60 if (!hnd
75 grallocMap(gralloc_module_t const* module, private_handle_t *hnd) argument
80 grallocUnmap(gralloc_module_t const* module, private_handle_t *hnd) argument
106 private_handle_t* hnd = (private_handle_t*)handle; local
178 private_handle_t* hnd = (private_handle_t*)handle; local
[all...]
H A Dgr.h34 int grallocMap(gralloc_module_t const* module, private_handle_t *hnd);
35 int grallocUnmap(gralloc_module_t const* module, private_handle_t *hnd);
H A Dgralloc.cpp132 unsigned int ion_flags, private_handle_t **hnd, int *stride)
180 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride,
188 private_handle_t **hnd, int *stride)
212 *hnd = new private_handle_t(fd, size, usage, w, h, format, *stride, h);
218 private_handle_t **hnd, int *stride)
261 ion_flags, hnd, stride);
282 *hnd = new private_handle_t(fd, luma_size, usage, w, h,
293 *hnd = new private_handle_t(fd, fd1, fd2, luma_size, usage, w, h,
296 *hnd = new private_handle_t(fd, fd1, luma_size, usage, w, h, format,
316 private_handle_t *hnd local
131 gralloc_alloc_rgb(int ionfd, int w, int h, int format, int usage, unsigned int ion_flags, private_handle_t **hnd, int *stride) argument
186 gralloc_alloc_framework_yuv(int ionfd, int w, int h, int format, int usage, unsigned int ion_flags, private_handle_t **hnd, int *stride) argument
216 gralloc_alloc_yuv(int ionfd, int w, int h, int format, int usage, unsigned int ion_flags, private_handle_t **hnd, int *stride) argument
360 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local
[all...]
/hardware/msm7k/libgralloc-qsd8k/
H A Dmapper.cpp57 private_handle_t* hnd = (private_handle_t*)handle; local
58 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) {
59 size_t size = hnd->size;
61 size += hnd->offset;
64 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0);
67 handle, hnd->fd, strerror(errno));
68 hnd->base = 0;
71 hnd->base = intptr_t(mappedAddress) + hnd->offset;
73 // hnd
82 private_handle_t* hnd = (private_handle_t*)handle; local
160 terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument
199 private_handle_t* hnd = (private_handle_t*)handle; local
[all...]
H A Dgpu.cpp82 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, local
95 hnd->base = vaddr;
96 hnd->offset = vaddr - intptr_t(m->framebuffer->base);
97 *pHandle = hnd;
187 private_handle_t* hnd = new private_handle_t(fd, size, flags); local
188 hnd->offset = offset;
189 hnd->base = int(base)+offset;
190 hnd->lockState = lockState;
191 *pHandle = hnd;
275 int gpu_context_t::free_impl(private_handle_t const* hnd) { argument
321 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local
[all...]
/hardware/msm7k/libgralloc/
H A Dmapper.cpp57 private_handle_t* hnd = (private_handle_t*)handle; local
58 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) {
59 size_t size = hnd->size;
61 size += hnd->offset;
64 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0);
67 handle, hnd->fd, strerror(errno));
68 hnd->base = 0;
71 hnd->base = intptr_t(mappedAddress) + hnd->offset;
73 // hnd
82 private_handle_t* hnd = (private_handle_t*)handle; local
113 private_handle_t* hnd = (private_handle_t*)handle; local
140 mapBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument
147 terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument
[all...]
H A Dgr.h44 int terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd);
45 int mapBuffer(gralloc_module_t const* module, private_handle_t* hnd);
H A Dgralloc.cpp162 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, local
175 hnd->base = vaddr;
176 hnd->offset = vaddr - intptr_t(m->framebuffer->base);
177 *pHandle = hnd;
435 private_handle_t* hnd = new private_handle_t(fd, size, flags); local
439 err = mapBuffer(module, hnd);
441 *pHandle = hnd;
446 hnd->offset = offset;
447 hnd->base = int(base)+offset;
448 hnd
524 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local
[all...]
/hardware/libhardware/modules/gralloc/
H A Dmapper.cpp50 private_handle_t* hnd = (private_handle_t*)handle; local
51 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) {
52 size_t size = hnd->size;
54 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0);
59 hnd->base = intptr_t(mappedAddress) + hnd->offset;
61 // hnd->fd, hnd->offset, hnd->size, mappedAddress);
63 *vaddr = (void*)hnd
70 private_handle_t* hnd = (private_handle_t*)handle; local
97 private_handle_t* hnd = (private_handle_t*)handle; local
121 mapBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument
128 terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument
[all...]
H A Dgralloc.cpp138 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, local
150 hnd->base = vaddr;
151 hnd->offset = vaddr - intptr_t(m->framebuffer->base);
152 *pHandle = hnd;
183 private_handle_t* hnd = new private_handle_t(fd, size, 0); local
186 err = mapBuffer(module, hnd);
188 *pHandle = hnd;
253 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local
254 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
259 int index = (hnd
[all...]
H A Dgr.h44 int terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd);
45 int mapBuffer(gralloc_module_t const* module, private_handle_t* hnd);
H A Dgralloc_priv.h99 const private_handle_t* hnd = (const private_handle_t*)h; local
102 hnd->magic != sMagic)
/hardware/qcom/display/libcopybit/
H A Dsoftware_converter.h49 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd,
61 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd,
H A Dsoftware_converter.cpp39 private_handle_t* hnd = (private_handle_t*)src->handle; local
41 if(hnd == NULL || yv12_handle == NULL){
61 unsigned char* oldChroma = (unsigned char*)(hnd->base + y_size);
62 memcpy((char *)yv12_handle->base,(char *)hnd->base,y_size);
182 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd, argument
186 if (!hnd || !rhs) {
187 ALOGE("%s: invalid inputs hnd=%p rhs=%p", __FUNCTION__, hnd, rhs);
216 ret = copy_source_to_destination(hnd->base, dst_hnd->base, info);
228 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd, argument
[all...]
/hardware/qcom/display/libhwcomposer/
H A Dhwc_qbuf.h47 bool lockBuffer(private_handle_t *hnd);
48 void unlockBuffer(private_handle_t *hnd);
61 inline void QueuedBufferStore::lockAndAdd(private_handle_t *hnd) { argument
63 if(lockBuffer(hnd))
64 current[curCount++] = hnd;
76 //Move current hnd to previous
119 inline bool QueuedBufferStore::lockBuffer(private_handle_t *hnd) { argument
121 if (GENLOCK_FAILURE == genlock_lock_buffer(hnd, GENLOCK_READ_LOCK,
130 inline void QueuedBufferStore::unlockBuffer(private_handle_t *hnd) { argument
133 if(private_handle_t::validate(hnd) !
[all...]
H A Dhwc_utils.h107 static inline bool isYuvBuffer(const private_handle_t* hnd) { argument
108 return (hnd && (hnd->bufferType == BUFFER_TYPE_VIDEO));
112 static inline bool isSecureBuffer(const private_handle_t* hnd) { argument
113 return (hnd && (private_handle_t::PRIV_FLAGS_SECURE_BUFFER & hnd->flags));
116 static inline bool isBufferLocked(const private_handle_t* hnd) { argument
117 return (hnd && (private_handle_t::PRIV_FLAGS_HWC_LOCK & hnd->flags));
121 static inline bool isExtOnly(const private_handle_t* hnd) { argument
126 isExtBlock(const private_handle_t* hnd) argument
131 isExtCC(const private_handle_t* hnd) argument
[all...]
H A Dhwc_video.cpp50 private_handle_t *hnd = (private_handle_t *)yuvLayer->handle; local
52 if (! isSecureBuffer(hnd)) {
58 if (isSecureBuffer(hnd)) {
78 private_handle_t *hnd = NULL; local
80 hnd = (private_handle_t *)yuvLayer->handle;
87 if(isSkipLayer(yuvLayer) && !isSecureBuffer(hnd)) {
95 if(!isSkipLayer(yuvLayer) || isSecureBuffer(hnd)) {
119 private_handle_t *hnd = (private_handle_t *)layer->handle; local
120 ovutils::Whf info(hnd->width, hnd
191 private_handle_t *hnd = (private_handle_t *)layer->handle; local
304 private_handle_t *hnd = (private_handle_t *) local
[all...]
H A Dhwc_uimirror.cpp65 private_handle_t *hnd = (private_handle_t *)layer->handle; local
66 if (!hnd) {
70 ovutils::Whf info(hnd->width, hnd->height, hnd->format, hnd->size);
126 private_handle_t *hnd = (private_handle_t *)layer->handle; local
130 if (!ov.queueBuffer(hnd->fd, hnd->offset, dest)) {
H A Dhwc_extonly.cpp91 private_handle_t *hnd = (private_handle_t *)layer->handle; local
92 ovutils::Whf info(hnd->width, hnd->height, hnd->format, hnd->size);
129 private_handle_t *hnd = (private_handle_t *) local
139 if (!ov.queueBuffer(hnd->fd, hnd->offset, ovutils::OV_PIPE0)) {
H A Dhwc_copybit.cpp162 private_handle_t *hnd = (private_handle_t *)list->hwLayers[i].handle; local
163 if (hnd) {
164 if (BUFFER_TYPE_UI == hnd->bufferType) {
193 private_handle_t *hnd = (private_handle_t *)list->hwLayers[i].handle; local
197 } else if (hnd->bufferType == BUFFER_TYPE_VIDEO) {
202 } else if (hnd->bufferType == BUFFER_TYPE_UI) {
243 private_handle_t *hnd = (private_handle_t *)layer->handle; local
244 if(!hnd) {
251 int err = genlock_lock_buffer(hnd, lockType, GENLOCK_MAX_TIMEOUT);
262 genlock_unlock_buffer(hnd);
[all...]
/hardware/qcom/display/libgenlock/
H A Dgenlock.cpp70 private_handle_t *hnd = reinterpret_cast<private_handle_t*> local
72 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) {
73 if (hnd->genlockPrivFd < 0) {
83 lock.fd = hnd->genlockHandle;
86 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) {
89 lockType, strerror(errno), hnd->fd);
97 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) {
99 ,__FUNCTION__, lockType, strerror(errno), hnd->fd);
140 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local
142 if ((hnd
198 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local
228 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local
321 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local
[all...]

Completed in 211 milliseconds

12