Home | History | Annotate | Download | only in gralloc960

Lines Matching defs:hnd

345 	private_handle_t *hnd = new private_handle_t( private_handle_t::PRIV_FLAGS_USES_ION | priv_heap_flag, usage, size, cpu_ptr,
348 if ( NULL != hnd )
350 hnd->share_fd = shared_fd;
351 hnd->min_pgsz = min_pgsz;
352 *pHandle = hnd;
371 int alloc_backend_alloc_framebuffer(private_module_t* m, private_handle_t* hnd)
378 hnd->share_fd = fb_dma_buf.fd;
388 void alloc_backend_alloc_free(private_handle_t const* hnd, private_module_t* m)
391 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)
395 else if ( hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION )
398 if ( 0 != hnd->base )
400 if ( 0 != munmap( (void*)hnd->base, hnd->size ) ) AERR( "Failed to munmap handle %p", hnd );
402 close( hnd->share_fd );
403 memset( (void*)hnd, 0, sizeof( *hnd ) );