Lines Matching refs:device
60 framebuffer_device_t device;
379 hw_device_t** device)
397 dev->device.common.tag = HARDWARE_DEVICE_TAG;
398 dev->device.common.version = 0;
399 dev->device.common.module = const_cast<hw_module_t*>(module);
400 dev->device.common.close = fb_close;
401 dev->device.setSwapInterval = fb_setSwapInterval;
402 dev->device.post = fb_post;
403 dev->device.setUpdateRect = 0;
404 dev->device.compositionComplete = fb_compositionComplete;
410 const_cast<uint32_t&>(dev->device.flags) = 0;
411 const_cast<uint32_t&>(dev->device.width) = m->info.xres;
412 const_cast<uint32_t&>(dev->device.height) = m->info.yres;
413 const_cast<int&>(dev->device.stride) = stride;
414 const_cast<int&>(dev->device.format) = m->fbFormat;
415 const_cast<float&>(dev->device.xdpi) = m->xdpi;
416 const_cast<float&>(dev->device.ydpi) = m->ydpi;
417 const_cast<float&>(dev->device.fps) = m->fps;
418 const_cast<int&>(dev->device.minSwapInterval) =
420 const_cast<int&>(dev->device.maxSwapInterval) =
422 const_cast<int&>(dev->device.numFramebuffers) = m->numBuffers;
423 dev->device.setUpdateRect = 0;
425 *device = &dev->device.common;