Lines Matching refs:dev
141 inline ExynosDevice* checkDevice(hwc2_device_t *dev) in checkDevice() argument
143 struct exynos_hwc2_device_t *pdev = (struct exynos_hwc2_device_t *)dev; in checkDevice()
175 hwc2_function_pointer_t exynos_getFunction(struct hwc2_device *dev, in exynos_getFunction() argument
181 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getFunction()
188 void exynos_getCapabilities(struct hwc2_device *dev, uint32_t *outCount, int32_t *outCapabilities) in exynos_getCapabilities() argument
190 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getCapabilities()
198 void exynos_dump(hwc2_device_t *dev, uint32_t *outSize, char *outBuffer) in exynos_dump() argument
200 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_dump()
206 int32_t exynos_acceptDisplayChanges(hwc2_device_t *dev, hwc2_display_t display) in exynos_acceptDisplayChanges() argument
208 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_acceptDisplayChanges()
222 int32_t exynos_createLayer(hwc2_device_t *dev, in exynos_createLayer() argument
225 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_createLayer()
236 int32_t exynos_createVirtualDisplay(hwc2_device_t *dev, uint32_t width, uint32_t height, in exynos_createVirtualDisplay() argument
242 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_createVirtualDisplay()
254 int32_t exynos_destroyLayer(hwc2_device_t *dev, hwc2_display_t display, in exynos_destroyLayer() argument
257 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_destroyLayer()
273 int32_t exynos_destroyVirtualDisplay(hwc2_device_t* dev, hwc2_display_t display) in exynos_destroyVirtualDisplay() argument
275 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_destroyVirtualDisplay()
288 int32_t exynos_getActiveConfig(hwc2_device_t *dev, hwc2_display_t display, in exynos_getActiveConfig() argument
291 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getActiveConfig()
302 int32_t exynos_getChangedCompositionTypes(hwc2_device_t *dev, hwc2_display_t display, in exynos_getChangedCompositionTypes() argument
306 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getChangedCompositionTypes()
317 int32_t exynos_getClientTargetSupport(hwc2_device_t *dev, hwc2_display_t display, uint32_t width, in exynos_getClientTargetSupport() argument
320 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getClientTargetSupport()
331 int32_t exynos_getColorModes(hwc2_device_t *dev, hwc2_display_t display, uint32_t* outNumModes, in exynos_getColorModes() argument
334 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getColorModes()
345 int32_t exynos_getRenderIntents(hwc2_device_t* dev, hwc2_display_t display, int32_t mode, in exynos_getRenderIntents() argument
351 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getRenderIntents()
363 int32_t exynos_setColorModeWithRenderIntent(hwc2_device_t* dev, hwc2_display_t display, in exynos_setColorModeWithRenderIntent() argument
370 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setColorModeWithRenderIntent()
382 int32_t exynos_getDisplayAttribute(hwc2_device_t *dev, hwc2_display_t display, in exynos_getDisplayAttribute() argument
385 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getDisplayAttribute()
396 int32_t exynos_getDisplayConfigs(hwc2_device_t *dev, hwc2_display_t display, in exynos_getDisplayConfigs() argument
399 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getDisplayConfigs()
410 int32_t exynos_getDisplayName(hwc2_device_t *dev, hwc2_display_t display, in exynos_getDisplayName() argument
413 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getDisplayName()
424 int32_t exynos_getDisplayRequests(hwc2_device_t *dev, hwc2_display_t display, in exynos_getDisplayRequests() argument
429 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getDisplayRequests()
440 int32_t exynos_getDisplayType(hwc2_device_t *dev, hwc2_display_t display, in exynos_getDisplayType() argument
443 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getDisplayType()
454 int32_t exynos_getDozeSupport(hwc2_device_t *dev, hwc2_display_t display, in exynos_getDozeSupport() argument
457 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getDozeSupport()
468 int32_t exynos_getHdrCapabilities(hwc2_device_t *dev, hwc2_display_t display, in exynos_getHdrCapabilities() argument
473 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getHdrCapabilities()
487 int32_t exynos_getMaxVirtualDisplayCount(hwc2_device_t* dev) in exynos_getMaxVirtualDisplayCount() argument
489 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getMaxVirtualDisplayCount()
497 int32_t exynos_getReleaseFences(hwc2_device_t *dev, hwc2_display_t display, in exynos_getReleaseFences() argument
500 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getReleaseFences()
511 int32_t exynos_presentDisplay(hwc2_device_t *dev, hwc2_display_t display, in exynos_presentDisplay() argument
514 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_presentDisplay()
537 int32_t exynos_registerCallback(hwc2_device_t* dev, in exynos_registerCallback() argument
542 struct exynos_hwc2_device_t *pdev = (struct exynos_hwc2_device_t *)dev; in exynos_registerCallback()
567 int32_t exynos_setActiveConfig(hwc2_device_t *dev, hwc2_display_t display, in exynos_setActiveConfig() argument
572 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setActiveConfig()
583 int32_t exynos_setClientTarget(hwc2_device_t *dev, hwc2_display_t display, in exynos_setClientTarget() argument
587 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setClientTarget()
598 int32_t exynos_setColorMode(hwc2_device_t *dev, hwc2_display_t display, int32_t mode) in exynos_setColorMode() argument
603 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setColorMode()
614 int32_t exynos_setColorTransform(hwc2_device_t *dev, hwc2_display_t display, in exynos_setColorTransform() argument
620 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setColorTransform()
631 int32_t exynos_setCursorPosition(hwc2_device_t *dev, hwc2_display_t display, in exynos_setCursorPosition() argument
634 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setCursorPosition()
648 int32_t exynos_setLayerBlendMode(hwc2_device_t *dev, hwc2_display_t display, in exynos_setLayerBlendMode() argument
651 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerBlendMode()
665 int32_t exynos_setLayerBuffer(hwc2_device_t *dev, hwc2_display_t display, in exynos_setLayerBuffer() argument
668 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerBuffer()
683 int32_t exynos_setLayerColor(hwc2_device_t *dev, hwc2_display_t display, in exynos_setLayerColor() argument
686 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerColor()
700 int32_t exynos_setLayerCompositionType(hwc2_device_t *dev, hwc2_display_t display, in exynos_setLayerCompositionType() argument
703 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerCompositionType()
717 int32_t exynos_setLayerDataspace(hwc2_device_t *dev, hwc2_display_t display, hwc2_layer_t layer, in… in exynos_setLayerDataspace() argument
719 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerDataspace()
734 int32_t exynos_setLayerDisplayFrame(hwc2_device_t *dev, hwc2_display_t display, in exynos_setLayerDisplayFrame() argument
737 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerDisplayFrame()
751 int32_t exynos_setLayerPlaneAlpha(hwc2_device_t *dev, hwc2_display_t display, in exynos_setLayerPlaneAlpha() argument
754 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerPlaneAlpha()
768 int32_t exynos_setLayerSidebandStream(hwc2_device_t __unused *dev, hwc2_display_t __unused display, in exynos_setLayerSidebandStream() argument
775 int32_t exynos_setLayerSourceCrop(hwc2_device_t *dev, hwc2_display_t display, in exynos_setLayerSourceCrop() argument
778 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerSourceCrop()
792 int32_t exynos_setLayerSurfaceDamage(hwc2_device_t *dev, hwc2_display_t display, in exynos_setLayerSurfaceDamage() argument
795 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerSurfaceDamage()
809 int32_t exynos_setLayerTransform(hwc2_device_t *dev, hwc2_display_t display, in exynos_setLayerTransform() argument
812 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerTransform()
826 int32_t exynos_setLayerVisibleRegion(hwc2_device_t *dev, hwc2_display_t display, in exynos_setLayerVisibleRegion() argument
829 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerVisibleRegion()
843 int32_t exynos_setLayerZOrder(hwc2_device_t *dev, hwc2_display_t display, in exynos_setLayerZOrder() argument
846 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerZOrder()
860 int32_t exynos_setOutputBuffer(hwc2_device_t *dev, hwc2_display_t display, in exynos_setOutputBuffer() argument
863 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setOutputBuffer()
874 int32_t exynos_setPowerMode(hwc2_device_t *dev, hwc2_display_t display, in exynos_setPowerMode() argument
880 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setPowerMode()
892 int32_t exynos_setVsyncEnabled(hwc2_device_t *dev, hwc2_display_t display, in exynos_setVsyncEnabled() argument
895 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setVsyncEnabled()
906 int32_t exynos_validateDisplay(hwc2_device_t *dev, hwc2_display_t display, in exynos_validateDisplay() argument
909 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_validateDisplay()
923 int32_t exynos_setLayerPerFrameMetadata(hwc2_device_t *dev, hwc2_display_t display, in exynos_setLayerPerFrameMetadata() argument
930 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerPerFrameMetadata()
945 int32_t exynos_getPerFrameMetadataKeys(hwc2_device_t* dev, hwc2_display_t __unused display, in exynos_getPerFrameMetadataKeys() argument
948 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getPerFrameMetadataKeys()
976 int32_t exynos_getReadbackBufferAttributes(hwc2_device_t *dev, hwc2_display_t display, in exynos_getReadbackBufferAttributes() argument
979 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getReadbackBufferAttributes()
990 int32_t exynos_getDisplayIdentificationData(hwc2_device_t* dev, hwc2_display_t display, uint8_t* ou… in exynos_getDisplayIdentificationData() argument
993 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getDisplayIdentificationData()
1006 int32_t exynos_setReadbackBuffer(hwc2_device_t *dev, hwc2_display_t display, in exynos_setReadbackBuffer() argument
1008 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setReadbackBuffer()
1019 int32_t exynos_getDisplayCapabilities(hwc2_device_t* dev, hwc2_display_t display, uint32_t* outNumC… in exynos_getDisplayCapabilities() argument
1022 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getDisplayCapabilities()
1034 int32_t exynos_setLayerColorTransform(hwc2_device_t* dev, in exynos_setLayerColorTransform() argument
1040 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerColorTransform()
1054 int32_t exynos_getReadbackBufferFence(hwc2_device_t *dev, hwc2_display_t display, in exynos_getReadbackBufferFence() argument
1056 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getReadbackBufferFence()
1067 int32_t exynos_setLayerPerFrameMetadataBlobs(hwc2_device_t* dev, hwc2_display_t display, in exynos_setLayerPerFrameMetadataBlobs() argument
1074 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setLayerPerFrameMetadataBlobs()
1088 int32_t exynos_getDisplayBrightnessSupport(hwc2_device_t* dev, hwc2_display_t display, bool* outSup… in exynos_getDisplayBrightnessSupport() argument
1090 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_getDisplayBrightnessSupport()
1102 int32_t exynos_setDisplayBrightness(hwc2_device_t* dev, hwc2_display_t display, float brightness) in exynos_setDisplayBrightness() argument
1104 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_setDisplayBrightness()
1116 int32_t exynos_GetDisplayConnectionType(hwc2_device_t* dev, hwc2_display_t display, in exynos_GetDisplayConnectionType() argument
1119 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_GetDisplayConnectionType()
1131 int32_t exynos_GetDisplayVsyncPeriod(hwc2_device_t* dev, hwc2_display_t display, in exynos_GetDisplayVsyncPeriod() argument
1134 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_GetDisplayVsyncPeriod()
1146 int32_t exynos_SetActiveConfigWithConstraints(hwc2_device_t* dev, hwc2_display_t display, in exynos_SetActiveConfigWithConstraints() argument
1151 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_SetActiveConfigWithConstraints()
1182 int32_t exynos_SetAutoLowLatencyMode(hwc2_device_t* dev, hwc2_display_t display, bool on) in exynos_SetAutoLowLatencyMode() argument
1184 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_SetAutoLowLatencyMode()
1196 int32_t exynos_GetSupportedContentTypes(hwc2_device_t* dev, hwc2_display_t display, in exynos_GetSupportedContentTypes() argument
1199 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_GetSupportedContentTypes()
1211 int32_t exynos_SetContentType(hwc2_device_t* dev, hwc2_display_t display, in exynos_SetContentType() argument
1214 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_SetContentType()
1226 int32_t exynos_GetClientTargetProperty(hwc2_device_t* dev, hwc2_display_t display, in exynos_GetClientTargetProperty() argument
1229 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_GetClientTargetProperty()
1242 int32_t exynos_SetLayerGenericMetadata(hwc2_device_t* dev, hwc2_display_t display, in exynos_SetLayerGenericMetadata() argument
1246 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_SetLayerGenericMetadata()
1263 void exynos_GetLayerGenericMetadataKey(hwc2_device_t* dev, uint32_t keyIndex, in exynos_GetLayerGenericMetadataKey() argument
1266 ExynosDevice *exynosDevice = checkDevice(dev); in exynos_GetLayerGenericMetadataKey()
1277 void exynos_boot_finished(ExynosHWCCtx *dev) in exynos_boot_finished() argument
1282 if (dev == NULL) { in exynos_boot_finished()
1296 …ExynosExternalDisplayModule *display = (ExynosExternalDisplayModule*)dev->device->getDisplay(getDi… in exynos_boot_finished()
1317 struct exynos_hwc2_device_t *dev = (struct exynos_hwc2_device_t *)device; in exynos_close() local
1318 if (dev != NULL) { in exynos_close()
1319 if (dev->device != NULL) in exynos_close()
1320 delete dev->device; in exynos_close()
1321 delete dev; in exynos_close()
1339 struct exynos_hwc2_device_t *dev; in exynos_open() local
1340 dev = (struct exynos_hwc2_device_t *)malloc(sizeof(*dev)); in exynos_open()
1341 memset(dev, 0, sizeof(*dev)); in exynos_open()
1344 dev->device = new ExynosDeviceModule(false); in exynos_open()
1345 g_exynosDevice = dev->device; in exynos_open()
1347 dev->base.common.tag = HARDWARE_DEVICE_TAG; in exynos_open()
1348 dev->base.common.version = HWC_DEVICE_API_VERSION_2_0; in exynos_open()
1349 dev->base.common.module = const_cast<hw_module_t *>(module); in exynos_open()
1350 dev->base.common.close = exynos_close; in exynos_open()
1352 dev->base.getCapabilities = exynos_getCapabilities; in exynos_open()
1353 dev->base.getFunction = exynos_getFunction; in exynos_open()
1354 *device = &dev->base.common; in exynos_open()
1355 ptrDev = dev; in exynos_open()