• Home
  • Raw
  • Download

Lines Matching refs:dev

199 static int gralloc_alloc_buffer(alloc_device_t *dev, size_t size, int usage, buffer_handle_t *pHand…  in gralloc_alloc_buffer()  argument
203 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in gralloc_alloc_buffer()
280 MALI_IGNORE(dev); in gralloc_alloc_buffer()
367 static int gralloc_alloc_framebuffer_locked(alloc_device_t *dev, size_t size, int usage, buffer_han… in gralloc_alloc_framebuffer_locked() argument
369 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in gralloc_alloc_framebuffer_locked()
394 return gralloc_alloc_buffer(dev, bufferSize, newUsage, pHandle); in gralloc_alloc_framebuffer_locked()
450 return gralloc_alloc_buffer(dev, bufferSize, newUsage, pHandle); in gralloc_alloc_framebuffer_locked()
468 static int gralloc_alloc_framebuffer(alloc_device_t *dev, size_t size, int usage, buffer_handle_t *… in gralloc_alloc_framebuffer() argument
470 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in gralloc_alloc_framebuffer()
472 int err = gralloc_alloc_framebuffer_locked(dev, size, usage, pHandle); in gralloc_alloc_framebuffer()
478 static int alloc_device_alloc(alloc_device_t *dev, int w, int h, int format, int usage, buffer_hand… in alloc_device_alloc() argument
588 err = gralloc_alloc_framebuffer(dev, size, usage, pHandle); in alloc_device_alloc()
594 err = gralloc_alloc_buffer(dev, size, usage, pHandle); in alloc_device_alloc()
644 static int alloc_device_free(alloc_device_t __unused *dev, buffer_handle_t handle) in alloc_device_free() argument
707 alloc_device_t *dev = reinterpret_cast<alloc_device_t *>(device); in alloc_device_close() local
709 if (dev) in alloc_device_close()
721 delete dev; in alloc_device_close()
827 alloc_device_t *dev; in alloc_device_open() local
829 dev = new alloc_device_t; in alloc_device_open()
831 if (NULL == dev) in alloc_device_open()
842 delete dev; in alloc_device_open()
849 memset(dev, 0, sizeof(*dev)); in alloc_device_open()
852 dev->common.tag = HARDWARE_DEVICE_TAG; in alloc_device_open()
853 dev->common.version = 0; in alloc_device_open()
854 dev->common.module = const_cast<hw_module_t *>(module); in alloc_device_open()
855 dev->common.close = alloc_device_close; in alloc_device_open()
856 dev->alloc = alloc_device_alloc; in alloc_device_open()
857 dev->free = alloc_device_free; in alloc_device_open()
860 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in alloc_device_open()
863 delete dev; in alloc_device_open()
868 *device = &dev->common; in alloc_device_open()