Lines Matching refs:dev
52 static int fb_set_swap_interval(struct framebuffer_device_t *dev, int interval) in fb_set_swap_interval() argument
54 if (interval < dev->minSwapInterval) in fb_set_swap_interval()
56 interval = dev->minSwapInterval; in fb_set_swap_interval()
58 else if (interval > dev->maxSwapInterval) in fb_set_swap_interval()
60 interval = dev->maxSwapInterval; in fb_set_swap_interval()
68 static int fb_post(struct framebuffer_device_t *dev, buffer_handle_t buffer) in fb_post() argument
76 private_module_t *m = reinterpret_cast<private_module_t *>(dev->common.module); in fb_post()
420 framebuffer_device_t *dev = reinterpret_cast<framebuffer_device_t *>(device); in fb_close() local
422 if (dev) in fb_close()
427 free(dev); in fb_close()
433 int compositionComplete(struct framebuffer_device_t *dev) in compositionComplete() argument
435 MALI_IGNORE(dev); in compositionComplete()
475 framebuffer_device_t *dev = (framebuffer_device_t *)malloc(sizeof(framebuffer_device_t)); in framebuffer_device_open() local
476 memset(dev, 0, sizeof(*dev)); in framebuffer_device_open()
479 dev->common.tag = HARDWARE_DEVICE_TAG; in framebuffer_device_open()
480 dev->common.version = 0; in framebuffer_device_open()
481 dev->common.module = const_cast<hw_module_t *>(module); in framebuffer_device_open()
482 dev->common.close = fb_close; in framebuffer_device_open()
483 dev->setSwapInterval = fb_set_swap_interval; in framebuffer_device_open()
484 dev->post = fb_post; in framebuffer_device_open()
485 dev->setUpdateRect = 0; in framebuffer_device_open()
486 dev->compositionComplete = &compositionComplete; in framebuffer_device_open()
489 const_cast<uint32_t &>(dev->flags) = 0; in framebuffer_device_open()
490 const_cast<uint32_t &>(dev->width) = m->info.xres; in framebuffer_device_open()
491 const_cast<uint32_t &>(dev->height) = m->info.yres; in framebuffer_device_open()
492 const_cast<int &>(dev->stride) = stride; in framebuffer_device_open()
494 const_cast<int &>(dev->format) = HAL_PIXEL_FORMAT_RGB_565; in framebuffer_device_open()
496 const_cast<int &>(dev->format) = HAL_PIXEL_FORMAT_BGRA_8888; in framebuffer_device_open()
498 const_cast<float &>(dev->xdpi) = m->xdpi; in framebuffer_device_open()
499 const_cast<float &>(dev->ydpi) = m->ydpi; in framebuffer_device_open()
500 const_cast<float &>(dev->fps) = m->fps; in framebuffer_device_open()
501 const_cast<int &>(dev->minSwapInterval) = 0; in framebuffer_device_open()
502 const_cast<int &>(dev->maxSwapInterval) = 1; in framebuffer_device_open()
503 *device = &dev->common; in framebuffer_device_open()