• Home
  • Raw
  • Download

Lines Matching refs:m

103 		private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module);  in gralloc_alloc_buffer()  local
109 ret = ion_alloc(m->ion_client, size, 0, ION_HEAP_SYSTEM_MASK, 0, &(ion_hnd)); in gralloc_alloc_buffer()
113 AERR("Failed to ion_alloc from ion_client:%d", m->ion_client); in gralloc_alloc_buffer()
117 ret = ion_share(m->ion_client, ion_hnd, &shared_fd); in gralloc_alloc_buffer()
121 AERR("ion_share( %d ) failed", m->ion_client); in gralloc_alloc_buffer()
123 if (0 != ion_free(m->ion_client, ion_hnd)) in gralloc_alloc_buffer()
125 AERR("ion_free( %d ) failed", m->ion_client); in gralloc_alloc_buffer()
135 AERR("ion_map( %d ) failed", m->ion_client); in gralloc_alloc_buffer()
137 if (0 != ion_free(m->ion_client, ion_hnd)) in gralloc_alloc_buffer()
139 AERR("ion_free( %d ) failed", m->ion_client); in gralloc_alloc_buffer()
157 AERR("Gralloc out of mem for ion_client:%d", m->ion_client); in gralloc_alloc_buffer()
168 ret = ion_free(m->ion_client, ion_hnd); in gralloc_alloc_buffer()
172 AERR("ion_free( %d ) failed", m->ion_client); in gralloc_alloc_buffer()
261 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in gralloc_alloc_framebuffer_locked() local
264 if (m->framebuffer == NULL) in gralloc_alloc_framebuffer_locked()
267 int err = init_frame_buffer_locked(m); in gralloc_alloc_framebuffer_locked()
275 const uint32_t bufferMask = m->bufferMask; in gralloc_alloc_framebuffer_locked()
276 const uint32_t numBuffers = m->numBuffers; in gralloc_alloc_framebuffer_locked()
277 const size_t bufferSize = m->finfo.line_length * m->info.yres; in gralloc_alloc_framebuffer_locked()
285 AERR("fallback to single buffering. Virtual Y-res too small %d", m->info.yres); in gralloc_alloc_framebuffer_locked()
295 void *vaddr = m->framebuffer->base; in gralloc_alloc_framebuffer_locked()
302 m->bufferMask |= (1LU << i); in gralloc_alloc_framebuffer_locked()
311 0, dup(m->framebuffer->fd), (uintptr_t)vaddr - (uintptr_t) m->framebuffer->base); in gralloc_alloc_framebuffer_locked()
313 hnd->ump_id = m->framebuffer->ump_id; in gralloc_alloc_framebuffer_locked()
333 if (ioctl(m->framebuffer->fd, FBIOGET_DMABUF, &fb_dma_buf) == 0) in gralloc_alloc_framebuffer_locked()
350 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in gralloc_alloc_framebuffer() local
351 pthread_mutex_lock(&m->lock); in gralloc_alloc_framebuffer()
353 pthread_mutex_unlock(&m->lock); in gralloc_alloc_framebuffer()
517 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in alloc_device_free() local
518 const size_t bufferSize = m->finfo.line_length * m->info.yres; in alloc_device_free()
519 int index = ((uintptr_t)hnd->base - (uintptr_t)m->framebuffer->base) / bufferSize; in alloc_device_free()
520 m->bufferMask &= ~(1 << index); in alloc_device_free()
550 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in alloc_device_free() local
563 if (0 != ion_free(m->ion_client, hnd->ion_hnd)) in alloc_device_free()
565 …AERR("Failed to ion_free( ion_client: %d ion_hnd: %p )", m->ion_client, (void *)(uintptr_t)hnd->io… in alloc_device_free()
587 private_module_t *m = reinterpret_cast<private_module_t *>(device); in alloc_device_close() local
589 if (0 != ion_close(m->ion_client)) in alloc_device_close()
591 AERR("Failed to close ion_client: %d", m->ion_client); in alloc_device_close()
594 close(m->ion_client); in alloc_device_close()
641 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in alloc_device_open() local
642 m->ion_client = ion_open(); in alloc_device_open()
644 if (m->ion_client < 0) in alloc_device_open()