/hardware/msm7k/libgralloc-qsd8k/ |
D | mapper.cpp | 57 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() local 58 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map() 59 size_t size = hnd->size; in gralloc_map() 61 size += hnd->offset; in gralloc_map() 64 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0); in gralloc_map() 67 handle, hnd->fd, strerror(errno)); in gralloc_map() 68 hnd->base = 0; in gralloc_map() 71 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map() 75 *vaddr = (void*)hnd->base; in gralloc_map() 82 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap() local [all …]
|
D | gpu.cpp | 82 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked() local 95 hnd->base = vaddr; in gralloc_alloc_framebuffer_locked() 96 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked() 97 *pHandle = hnd; in gralloc_alloc_framebuffer_locked() 187 private_handle_t* hnd = new private_handle_t(fd, size, flags); in gralloc_alloc_buffer() local 188 hnd->offset = offset; in gralloc_alloc_buffer() 189 hnd->base = int(base)+offset; in gralloc_alloc_buffer() 190 hnd->lockState = lockState; in gralloc_alloc_buffer() 191 *pHandle = hnd; in gralloc_alloc_buffer() 275 int gpu_context_t::free_impl(private_handle_t const* hnd) { in free_impl() argument [all …]
|
D | gpu.h | 49 private_handle_t* hnd) = 0; 60 int free_impl(private_handle_t const* hnd);
|
D | gralloc_priv.h | 145 const private_handle_t* hnd = (const private_handle_t*)h; in validate() local 148 hnd->magic != sMagic) in validate()
|
D | gralloc.cpp | 125 private_handle_t* hnd) { in terminateBuffer() argument 126 return ::terminateBuffer(module, hnd); in terminateBuffer()
|
D | gr.h | 44 int terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd);
|
D | framebuffer.cpp | 99 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); in fb_post() local 108 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in fb_post() 114 const size_t offset = hnd->base - m->framebuffer->base; in fb_post()
|
/hardware/msm7k/libgralloc/ |
D | mapper.cpp | 57 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() local 58 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map() 59 size_t size = hnd->size; in gralloc_map() 61 size += hnd->offset; in gralloc_map() 64 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0); in gralloc_map() 67 handle, hnd->fd, strerror(errno)); in gralloc_map() 68 hnd->base = 0; in gralloc_map() 71 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map() 75 *vaddr = (void*)hnd->base; in gralloc_map() 82 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap() local [all …]
|
D | gralloc.cpp | 162 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked() local 175 hnd->base = vaddr; in gralloc_alloc_framebuffer_locked() 176 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked() 177 *pHandle = hnd; in gralloc_alloc_framebuffer_locked() 435 private_handle_t* hnd = new private_handle_t(fd, size, flags); in gralloc_alloc_buffer() local 439 err = mapBuffer(module, hnd); in gralloc_alloc_buffer() 441 *pHandle = hnd; in gralloc_alloc_buffer() 446 hnd->offset = offset; in gralloc_alloc_buffer() 447 hnd->base = int(base)+offset; in gralloc_alloc_buffer() 448 hnd->gpu_fd = gpu_fd; in gralloc_alloc_buffer() [all …]
|
D | gr.h | 44 int terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd); 45 int mapBuffer(gralloc_module_t const* module, private_handle_t* hnd);
|
D | gralloc_priv.h | 107 const private_handle_t* hnd = (const private_handle_t*)h; in validate() local 110 hnd->magic != sMagic) in validate()
|
D | framebuffer.cpp | 95 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); in fb_post() local 99 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in fb_post() 100 const size_t offset = hnd->base - m->framebuffer->base; in fb_post()
|
/hardware/libhardware/modules/gralloc/ |
D | mapper.cpp | 50 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map() local 51 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_map() 52 size_t size = hnd->size; in gralloc_map() 54 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0); in gralloc_map() 59 hnd->base = intptr_t(mappedAddress) + hnd->offset; in gralloc_map() 63 *vaddr = (void*)hnd->base; in gralloc_map() 70 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap() local 71 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { in gralloc_unmap() 72 void* base = (void*)hnd->base; in gralloc_unmap() 73 size_t size = hnd->size; in gralloc_unmap() [all …]
|
D | gralloc.cpp | 138 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, in gralloc_alloc_framebuffer_locked() local 150 hnd->base = vaddr; in gralloc_alloc_framebuffer_locked() 151 hnd->offset = vaddr - intptr_t(m->framebuffer->base); in gralloc_alloc_framebuffer_locked() 152 *pHandle = hnd; in gralloc_alloc_framebuffer_locked() 183 private_handle_t* hnd = new private_handle_t(fd, size, 0); in gralloc_alloc_buffer() local 186 err = mapBuffer(module, hnd); in gralloc_alloc_buffer() 188 *pHandle = hnd; in gralloc_alloc_buffer() 252 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); in gralloc_free() local 253 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in gralloc_free() 258 int index = (hnd->base - m->framebuffer->base) / bufferSize; in gralloc_free() [all …]
|
D | gr.h | 44 int terminateBuffer(gralloc_module_t const* module, private_handle_t* hnd); 45 int mapBuffer(gralloc_module_t const* module, private_handle_t* hnd);
|
D | gralloc_priv.h | 99 const private_handle_t* hnd = (const private_handle_t*)h; in validate() local 102 hnd->magic != sMagic) in validate()
|
D | framebuffer.cpp | 92 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); in fb_post() local 96 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { in fb_post() 97 const size_t offset = hnd->base - m->framebuffer->base; in fb_post()
|
/hardware/msm7k/libcopybit/ |
D | copybit.cpp | 136 private_handle_t* hnd = (private_handle_t*)rhs->handle; in set_image() local 140 img->offset = hnd->offset; in set_image() 142 if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_GPU) { in set_image() 143 img->offset += hnd->map_offset; in set_image() 144 img->memory_id = hnd->gpu_fd; in set_image() 150 img->memory_id = hnd->fd; in set_image() 153 img->memory_id = hnd->fd; in set_image()
|