Lines Matching refs:device
54 framebuffer_device_t device;
330 hw_device_t** device)
344 dev->device.common.tag = HARDWARE_DEVICE_TAG;
345 dev->device.common.version = 0;
346 dev->device.common.module = const_cast<hw_module_t*>(module);
347 dev->device.common.close = fb_close;
348 dev->device.setSwapInterval = fb_setSwapInterval;
349 dev->device.post = fb_post;
350 dev->device.setUpdateRect = 0;
356 const_cast<uint32_t&>(dev->device.flags) = 0;
357 const_cast<uint32_t&>(dev->device.width) = m->info.xres;
358 const_cast<uint32_t&>(dev->device.height) = m->info.yres;
359 const_cast<int&>(dev->device.stride) = stride;
360 const_cast<int&>(dev->device.format) = HAL_PIXEL_FORMAT_RGB_565;
361 const_cast<float&>(dev->device.xdpi) = m->xdpi;
362 const_cast<float&>(dev->device.ydpi) = m->ydpi;
363 const_cast<float&>(dev->device.fps) = m->fps;
364 const_cast<int&>(dev->device.minSwapInterval) = 1;
365 const_cast<int&>(dev->device.maxSwapInterval) = 1;
369 dev->device.setUpdateRect = fb_setUpdateRect;
373 *device = &dev->device.common;