HomeSort by relevance Sort by last modified time
    Searched defs:hnd (Results 1 - 25 of 67) sorted by null

1 2 3

  /hardware/libhardware/modules/gralloc/
mapper.cpp 50 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 = uintptr_t(mappedAddress) + hnd->offset;
61 // hnd->fd, hnd->offset, hnd->size, mappedAddress);
63 *vaddr = (void*)hnd->base
70 private_handle_t* hnd = (private_handle_t*)handle; local
    [all...]
gralloc.cpp 138 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;
251 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local
252 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
257 int index = (hnd->base - m->framebuffer->base) / bufferSize
    [all...]
framebuffer.cpp 99 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); local
103 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
104 const size_t offset = hnd->base - m->framebuffer->base;
gralloc_priv.h 101 const private_handle_t* hnd = (const private_handle_t*)h; local
104 hnd->magic != sMagic)
  /hardware/qcom/display/msm8960/libgenlock/
genlock.cpp 75 private_handle_t *hnd = reinterpret_cast<private_handle_t*> local
77 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) {
78 if (hnd->genlockPrivFd < 0) {
88 lock.fd = hnd->genlockHandle;
91 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) {
94 lockType, strerror(errno), hnd->fd);
102 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) {
104 ,__FUNCTION__, lockType, strerror(errno), hnd->fd);
146 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local
147 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0)
201 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local
231 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local
324 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local
    [all...]
  /hardware/samsung_slsi/exynos5/gralloc/
mapper.cpp 42 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->base
165 private_handle_t* hnd = (private_handle_t*)handle; local
    [all...]
  /hardware/qcom/display/msm8084/libhwcomposer/
hwc_virtual.cpp 319 private_handle_t *hnd = (private_handle_t *)fbLayer->handle; local
322 hnd = (private_handle_t *)extLayer->handle;
324 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer();
327 if(hnd && !isYuvBuffer(hnd)) {
328 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) {
hwc_ad.cpp 164 private_handle_t *hnd = (private_handle_t *)layer->handle; local
165 if(hnd && hnd->width <= qdutils::MAX_DISPLAY_DIM) {
174 const private_handle_t *hnd) {
200 if(isSecureBuffer(hnd)) {
201 if(!wb->setSecure(isSecureBuffer(hnd))) {
207 if(!wb->configureDpyInfo(hnd->width, hnd->height)) {
222 size = getBufferSizeAndDimensions(hnd->width, hnd->height
    [all...]
hwc_dump_layers.cpp 226 private_handle_t *hnd = (private_handle_t *)layer->handle; local
239 if (hnd)
240 getHalPixelFormatStr(hnd->format, pixFormatStr);
245 (hnd)? getWidth(hnd) : -1, (hnd)? getHeight(hnd) : -1,
303 private_handle_t *hnd = (private_handle_t *)layer->handle; local
306 if (NULL == hnd) {
312 getHalPixelFormatStr(hnd->format, pixFormatStr)
    [all...]
  /hardware/qcom/display/msm8226/libhwcomposer/
hwc_virtual.cpp 264 private_handle_t *hnd = (private_handle_t *)fbLayer->handle; local
267 hnd = (private_handle_t *)extLayer->handle;
269 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer();
272 if(hnd && !isYuvBuffer(hnd)) {
273 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) {
hwc_ad.cpp 164 private_handle_t *hnd = (private_handle_t *)layer->handle; local
165 if(hnd && hnd->width <= qdutils::MAX_DISPLAY_DIM) {
174 const private_handle_t *hnd) {
196 if(isSecureBuffer(hnd)) {
197 if(!wb->setSecure(isSecureBuffer(hnd))) {
203 if(!wb->configureDpyInfo(hnd->width, hnd->height)) {
217 size = getBufferSizeAndDimensions(hnd->width, hnd->height
    [all...]
hwc_dump_layers.cpp 222 private_handle_t *hnd = (private_handle_t *)layer->handle; local
235 if (hnd)
236 getHalPixelFormatStr(hnd->format, pixFormatStr);
241 (hnd)? getWidth(hnd) : -1, (hnd)? getHeight(hnd) : -1,
293 private_handle_t *hnd = (private_handle_t *)layer->handle; local
296 if (NULL == hnd) {
302 getHalPixelFormatStr(hnd->format, pixFormatStr)
    [all...]
  /hardware/qcom/display/msm8960/libcopybit/
copybit.cpp 143 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;
software_converter.cpp 38 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,
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,
    [all...]
  /hardware/qcom/display/msm8960/libhwcomposer/
hwc_fbupdate.cpp 66 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)
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), getHeight(hnd)
    [all...]
  /hardware/qcom/display/msm8084/libcopybit/
copybit.cpp 149 private_handle_t* hnd = (private_handle_t*)rhs->handle; local
150 if(hnd == NULL){
157 img->offset = (uint32_t)hnd->offset;
158 img->memory_id = hnd->fd;
software_converter.cpp 38 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);
182 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd,
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,
    [all...]
  /hardware/qcom/display/msm8084/libgralloc/
gpu.cpp 157 private_handle_t *hnd = new private_handle_t(data.fd, size, flags, local
161 hnd->offset = data.offset;
162 hnd->base = (uintptr_t)(data.base) + data.offset;
163 hnd->gpuaddr = 0;
164 setMetaData(hnd, UPDATE_COLOR_SPACE, (void*) &colorSpace);
166 *pHandle = hnd;
226 private_handle_t* hnd = new private_handle_t( local
241 hnd->base = vaddr;
242 hnd->offset = vaddr - uintptr_t(m->framebuffer->base);
243 *pHandle = hnd;
375 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local
    [all...]
mapper.cpp 61 private_handle_t* hnd = (private_handle_t*)handle;
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->base = intptr_t(mappedAddress) + hnd->offset
214 private_handle_t* hnd = (private_handle_t*)handle; local
246 private_handle_t* hnd = (private_handle_t*)handle; local
258 private_handle_t* hnd = (private_handle_t*)handle; local
272 private_handle_t* hnd = (private_handle_t*)handle; local
318 private_handle_t* hnd = (private_handle_t*)native_handle_create( local
341 private_handle_t* hnd = va_arg(args, private_handle_t*); local
366 private_handle_t* hnd = va_arg(args, private_handle_t*); local
382 private_handle_t* hnd = va_arg(args, private_handle_t*); local
417 private_handle_t* hnd = va_arg(args, private_handle_t*); local
430 private_handle_t* hnd = va_arg(args, private_handle_t*); local
    [all...]
  /hardware/qcom/display/msm8226/libcopybit/
copybit.cpp 149 private_handle_t* hnd = (private_handle_t*)rhs->handle; local
150 if(hnd == NULL){
157 img->offset = hnd->offset;
158 img->memory_id = hnd->fd;
software_converter.cpp 38 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,
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,
    [all...]
  /hardware/qcom/display/msm8226/libgralloc/
alloc_controller.cpp 577 private_handle_t* hnd = new private_handle_t(data.fd, data.size, local
580 hnd->base = (int) data.base;
581 hnd->offset = data.offset;
582 hnd->gpuaddr = 0;
583 *pHnd = hnd;
587 void free_buffer(private_handle_t *hnd)
591 if (hnd && hnd->fd > 0) {
592 IMemAlloc* memalloc = sAlloc->getAllocator(hnd->flags);
593 memalloc->free_buffer((void*)hnd->base, hnd->size, hnd->offset, hnd->fd)
    [all...]
gpu.cpp 152 private_handle_t *hnd = new private_handle_t(data.fd, size, flags, local
156 hnd->offset = data.offset;
157 hnd->base = int(data.base) + data.offset;
158 hnd->gpuaddr = 0;
160 *pHandle = hnd;
223 private_handle_t* hnd = new private_handle_t( local
238 hnd->base = vaddr;
239 hnd->offset = vaddr - intptr_t(m->framebuffer->base);
240 *pHandle = hnd;
316 int gpu_context_t::free_impl(private_handle_t const* hnd) {
371 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local
    [all...]
mapper.cpp 59 private_handle_t* hnd = (private_handle_t*)handle; local
61 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) &&
62 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) {
63 size_t size = hnd->size;
64 IMemAlloc* memalloc = getAllocator(hnd->flags) ;
66 hnd->offset, hnd->fd);
69 handle, hnd->fd, strerror(errno));
70 hnd->base = 0;
74 hnd->base = intptr_t(mappedAddress) + hnd->offset
96 private_handle_t* hnd = (private_handle_t*)handle; local
212 private_handle_t* hnd = (private_handle_t*)handle; local
246 private_handle_t* hnd = (private_handle_t*)handle; local
290 private_handle_t* hnd = (private_handle_t*)native_handle_create( local
313 private_handle_t* hnd = va_arg(args, private_handle_t*); local
338 private_handle_t* hnd = va_arg(args, private_handle_t*); local
370 private_handle_t* hnd = va_arg(args, private_handle_t*); local
    [all...]
  /hardware/qcom/display/msm8960/libgralloc/
alloc_controller.cpp 366 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)
380 if (hnd && hnd->fd > 0) {
381 IMemAlloc* memalloc = sAlloc->getAllocator(hnd->flags);
382 memalloc->free_buffer((void*)hnd->base, hnd->size, hnd->offset, hnd->fd)
    [all...]

Completed in 411 milliseconds

1 2 3