Lines Matching refs:device
60 framebuffer_device_t device; member
408 hw_device_t** device) in fb_device_open() argument
426 dev->device.common.tag = HARDWARE_DEVICE_TAG; in fb_device_open()
427 dev->device.common.version = 0; in fb_device_open()
428 dev->device.common.module = const_cast<hw_module_t*>(module); in fb_device_open()
429 dev->device.common.close = fb_close; in fb_device_open()
430 dev->device.setSwapInterval = fb_setSwapInterval; in fb_device_open()
431 dev->device.post = fb_post; in fb_device_open()
432 dev->device.setUpdateRect = 0; in fb_device_open()
433 dev->device.compositionComplete = fb_compositionComplete; in fb_device_open()
436 private_module_t* m = (private_module_t*)dev->device.common.module; in fb_device_open()
439 const_cast<uint32_t&>(dev->device.flags) = 0; in fb_device_open()
440 const_cast<uint32_t&>(dev->device.width) = m->info.xres; in fb_device_open()
441 const_cast<uint32_t&>(dev->device.height) = m->info.yres; in fb_device_open()
442 const_cast<int&>(dev->device.stride) = stride; in fb_device_open()
443 const_cast<int&>(dev->device.format) = m->fbFormat; in fb_device_open()
444 const_cast<float&>(dev->device.xdpi) = m->xdpi; in fb_device_open()
445 const_cast<float&>(dev->device.ydpi) = m->ydpi; in fb_device_open()
446 const_cast<float&>(dev->device.fps) = m->fps; in fb_device_open()
447 const_cast<int&>(dev->device.minSwapInterval) = in fb_device_open()
449 const_cast<int&>(dev->device.maxSwapInterval) = in fb_device_open()
451 const_cast<int&>(dev->device.numFramebuffers) = m->numBuffers; in fb_device_open()
452 dev->device.setUpdateRect = 0; in fb_device_open()
454 *device = &dev->device.common; in fb_device_open()