Searched defs:hnd (Results 1 - 25 of 33) sorted by relevance

12

/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
152 mapBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument
159 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 Dgralloc_priv.h99 const private_handle_t* hnd = (const private_handle_t*)h; local
102 hnd->magic != sMagic)
H A Dframebuffer.cpp92 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); local
96 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
97 const size_t offset = hnd->base - m->framebuffer->base;
/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 Dgralloc_priv.h107 const private_handle_t* hnd = (const private_handle_t*)h; local
110 hnd->magic != sMagic)
H A Dframebuffer.cpp95 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); local
99 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
100 const size_t offset = hnd->base - m->framebuffer->base;
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/qcom/display/libgenlock/
H A Dgenlock.cpp73 private_handle_t *hnd = reinterpret_cast<private_handle_t*> local
75 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) {
76 if (hnd->genlockPrivFd < 0) {
86 lock.fd = hnd->genlockHandle;
89 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) {
92 lockType, strerror(errno), hnd->fd);
100 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) {
102 ,__FUNCTION__, lockType, strerror(errno), hnd->fd);
144 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local
145 if ((hnd
199 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local
229 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local
322 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local
[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...]
/hardware/msm7k/libgralloc-qsd8k/
H A Dgralloc.cpp125 private_handle_t* hnd) {
126 return ::terminateBuffer(module, hnd);
124 terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument
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 Dframebuffer.cpp99 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); local
108 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
114 const size_t offset = hnd->base - m->framebuffer->base;
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...]
H A Dgralloc_priv.h145 const private_handle_t* hnd = (const private_handle_t*)h; local
148 hnd->magic != sMagic)
/hardware/qcom/display/libcopybit/
H A Dsoftware_converter.cpp38 private_handle_t* hnd = (private_handle_t*)src->handle; local
40 if(hnd == NULL || yv12_handle == NULL){
60 unsigned char* oldChroma = (unsigned char*)(hnd->base + y_size);
61 memcpy((char *)yv12_handle->base,(char *)hnd->base,y_size);
181 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd, argument
185 if (!hnd || !rhs) {
186 ALOGE("%s: invalid inputs hnd=%p rhs=%p", __FUNCTION__, hnd, rhs);
215 ret = copy_source_to_destination(hnd->base, dst_hnd->base, info);
227 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd, argument
[all...]
H A Dcopybit.cpp143 private_handle_t* hnd = (private_handle_t*)rhs->handle; local
144 if(hnd == NULL){
151 img->offset = hnd->offset;
152 img->memory_id = hnd->fd;
/hardware/qcom/display/libhwcomposer/
H A Dhwc_fbupdate.cpp66 private_handle_t *hnd = (private_handle_t *)layer->handle; local
67 ovutils::Whf info(getWidth(hnd), getHeight(hnd),
68 ovutils::getMdpFormat(hnd->format), hnd->size);
127 bool FBUpdateLowRes::draw(hwc_context_t *ctx, private_handle_t *hnd) argument
135 if (!ov.queueBuffer(hnd->fd, hnd->offset, dest)) {
170 private_handle_t *hnd = (private_handle_t *)layer->handle; local
171 ovutils::Whf info(getWidth(hnd), getHeigh
264 draw(hwc_context_t *ctx, private_handle_t *hnd) argument
[all...]
H A Dhwc.cpp374 private_handle_t *hnd = (private_handle_t *)fbLayer->handle; local
376 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer();
379 if(hnd) {
380 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) {
421 private_handle_t *hnd = (private_handle_t *)fbLayer->handle; local
423 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer();
426 if(hnd) {
427 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) {
H A Dhwc_mdpcomp.h107 buffer_handle_t hnd[MAX_NUM_LAYERS]; member in struct:qhwc::MDPComp::LayerCache
/hardware/msm7k/libcopybit/
H A Dcopybit.cpp136 private_handle_t* hnd = (private_handle_t*)rhs->handle; local
140 img->offset = hnd->offset;
142 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_GPU) {
143 img->offset += hnd->map_offset;
144 img->memory_id = hnd->gpu_fd;
150 img->memory_id = hnd->fd;
153 img->memory_id = hnd->fd;
/hardware/qcom/display/libgralloc/
H A Dalloc_controller.cpp366 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local
369 hnd->base = (int) data.base;
370 hnd->offset = data.offset;
371 hnd->gpuaddr = 0;
372 *pHnd = hnd;
376 void free_buffer(private_handle_t *hnd) argument
380 if (hnd && hnd->fd > 0) {
381 IMemAlloc* memalloc = sAlloc->getAllocator(hnd->flags);
382 memalloc->free_buffer((void*)hnd
[all...]
H A Dframebuffer.cpp89 private_handle_t *hnd = static_cast<private_handle_t*> local
91 const size_t offset = hnd->base - m->framebuffer->base;
H A Dgpu.cpp145 private_handle_t *hnd = new private_handle_t(data.fd, size, flags, local
149 hnd->offset = data.offset;
150 hnd->base = int(data.base) + data.offset;
151 hnd->gpuaddr = 0;
153 *pHandle = hnd;
213 private_handle_t* hnd = new private_handle_t( local
228 hnd->base = vaddr;
229 hnd->offset = vaddr - intptr_t(m->framebuffer->base);
230 *pHandle = hnd;
307 int gpu_context_t::free_impl(private_handle_t const* hnd) { argument
362 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local
[all...]
H A Dmapper.cpp61 private_handle_t* hnd = (private_handle_t*)handle; local
63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) &&
64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) {
65 size_t size = hnd->size;
66 IMemAlloc* memalloc = getAllocator(hnd->flags) ;
68 hnd->offset, hnd->fd);
71 handle, hnd->fd, strerror(errno));
72 hnd->base = 0;
76 hnd
95 private_handle_t* hnd = (private_handle_t*)handle; local
176 terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd) argument
209 private_handle_t* hnd = (private_handle_t*)handle; local
240 private_handle_t* hnd = (private_handle_t*)handle; local
252 private_handle_t* hnd = (private_handle_t*)handle; local
284 private_handle_t* hnd = (private_handle_t*)handle; local
326 private_handle_t* hnd = (private_handle_t*)native_handle_create( local
349 private_handle_t* hnd = va_arg(args, private_handle_t*); local
[all...]

Completed in 287 milliseconds

12