• Home
  • Raw
  • Download

Lines Matching refs:mDrmConnector

498     auto [ret, support] = mDrmConnector->panel_idle_support().value();  in getDisplayIdleTimerSupport()
512 *modeId = mDrmConnector->get_preferred_mode_id(); in getDefaultModeId()
543 mDrmConnector = NULL; in init()
665 const DrmProperty &orientation = mDrmConnector->orientation(); in updateMountOrientation()
747 if ((mDrmConnector = mDrmDevice->GetConnectorForDisplay(drmDisplayId)) == NULL) { in initDrmDevice()
754 if (((mExynosDisplay->mType == HWC_DISPLAY_PRIMARY) && mDrmConnector->external()) || in initDrmDevice()
755 ((mExynosDisplay->mType == HWC_DISPLAY_EXTERNAL) && mDrmConnector->internal())) { in initDrmDevice()
757 mExynosDisplay->mDisplayName.c_str(), drmDisplayId, mDrmConnector->id()); in initDrmDevice()
764 drmDisplayId, mDrmCrtc->id(), mDrmConnector->id()); in initDrmDevice()
818 parseMipiSyncEnums(mDrmConnector->mipi_sync()); in initDrmDevice()
824 mExynosDisplay->mBrightnessController->initDrm(*mDrmDevice, *mDrmConnector)) { in initDrmDevice()
846 mDrmConnector->set_active_mode(mActiveModeState.mode); in Callback()
931 auto mode = mDrmConnector->lp_mode(); in getLowPowerDrmModeModeInfo()
947 uint32_t mm_width = mDrmConnector->mm_width(); in setLowPowerMode()
948 uint32_t mm_height = mDrmConnector->mm_height(); in setLowPowerMode()
974 const DrmProperty &prop = mDrmConnector->dpms_property(); in setPowerMode()
975 if ((ret = drmModeConnectorSetProperty(mDrmDevice->fd(), mDrmConnector->id(), prop.id(), in setPowerMode()
1055 const int32_t drmPreferredId = mDrmConnector->get_preferred_mode_id(); in choosePreferredConfig()
1067 mDrmConnector->state()); in choosePreferredConfig()
1095 std::lock_guard<std::recursive_mutex> lock(mDrmConnector->modesLock()); in getDisplayConfigs()
1099 int ret = mDrmConnector->UpdateModes(useVrrConfigs); in getDisplayConfigs()
1113 if (mDrmConnector->state() == DRM_MODE_CONNECTED) { in getDisplayConfigs()
1120 mDrmConnector->UpdateEdidProperty(); in getDisplayConfigs()
1122 if (mDrmConnector->modes().size() == 0) { in getDisplayConfigs()
1139 uint32_t mm_width = mDrmConnector->mm_width(); in getDisplayConfigs()
1140 uint32_t mm_height = mDrmConnector->mm_height(); in getDisplayConfigs()
1146 for (const DrmMode &mode : mDrmConnector->modes()) { in getDisplayConfigs()
1207 uint32_t num_modes = static_cast<uint32_t>(mDrmConnector->modes().size()); in getDisplayConfigs()
1215 for (const DrmMode &mode : mDrmConnector->modes()) { in getDisplayConfigs()
1227 std::lock_guard<std::recursive_mutex> lock(mDrmConnector->modesLock()); in dumpDisplayConfigs()
1229 uint32_t num_modes = static_cast<uint32_t>(mDrmConnector->modes().size()); in dumpDisplayConfigs()
1231 auto mode = mDrmConnector->modes().at(i); in dumpDisplayConfigs()
1252 const auto [ret, duration] = mDrmConnector->rr_switch_duration().value(); in getConfigChangeDuration()
1262 const auto [ret, refresh_on_lp] = mDrmConnector->refresh_on_lp().value(); in needRefreshOnLP()
1373 std::lock_guard<std::recursive_mutex> lock(mDrmConnector->modesLock()); in setActiveConfigWithConstraints()
1378 auto mode = std::find_if(mDrmConnector->modes().begin(), mDrmConnector->modes().end(), in setActiveConfigWithConstraints()
1380 if (mode == mDrmConnector->modes().end()) { in setActiveConfigWithConstraints()
1486 mDrmConnector->set_active_mode(mode); in setActiveDrmMode()
1491 mDrmConnector->ResetLpMode(); in setActiveDrmMode()
1499 std::lock_guard<std::recursive_mutex> lock(mDrmConnector->modesLock()); in setActiveConfig()
1501 auto mode = std::find_if(mDrmConnector->modes().begin(), mDrmConnector->modes().end(), in setActiveConfig()
1503 if (mode == mDrmConnector->modes().end()) { in setActiveConfig()
1554 if ((ret = drmReq.atomicAddProperty(mDrmConnector->id(), in setDisplayMode()
1555 mDrmConnector->crtc_id_property(), mDrmCrtc->id())) < 0) in setDisplayMode()
1579 int upd_res = mDrmConnector->UpdateLuminanceAndHdrProperties(); in updateHdrCapabilities()
1582 const DrmProperty &prop_max_luminance = mDrmConnector->max_luminance(); in updateHdrCapabilities()
1583 const DrmProperty &prop_max_avg_luminance = mDrmConnector->max_avg_luminance(); in updateHdrCapabilities()
1584 const DrmProperty &prop_min_luminance = mDrmConnector->min_luminance(); in updateHdrCapabilities()
1585 const DrmProperty &prop_hdr_formats = mDrmConnector->hdr_formats(); in updateHdrCapabilities()
2135 *mDrmConnector, drmReq, in deliverWinConfigData()
2176 if (mDrmConnector->mipi_sync().id() && (mipi_sync_type != 0)) { in deliverWinConfigData()
2181 if ((ret = drmReq.atomicAddProperty(mDrmConnector->id(), in deliverWinConfigData()
2182 mDrmConnector->mipi_sync(), in deliverWinConfigData()
2243 mDrmConnector->ResetLpMode(); in deliverWinConfigData()
2263 if ((ret = drmReq.atomicAddProperty(mDrmConnector->id(), in clearDisplayMode()
2264 mDrmConnector->crtc_id_property(), 0)) < 0) in clearDisplayMode()
2495 } else if (mPset->items[i].object_id == mDrmDisplayInterface->mDrmConnector->id()) { in dumpAtomicCommitInfo()
2496 for (auto property_ptr : mDrmDisplayInterface->mDrmConnector->properties()) { in dumpAtomicCommitInfo()
2822 if ((mDrmDevice == nullptr) || (mDrmConnector == nullptr)) { in getDisplayIdentificationData()
2825 mDrmDevice, mDrmConnector); in getDisplayIdentificationData()
2829 if (mDrmConnector->edid_property().id() == 0) { in getDisplayIdentificationData()
2841 std::tie(ret, blobId) = mDrmConnector->edid_property().value(); in getDisplayIdentificationData()
2868 *outPort = mDrmConnector->id(); in getDisplayIdentificationData()
2887 if (mDrmConnector == nullptr) { in readHotplugStatus()
2898 std::lock_guard<std::recursive_mutex> lock(mDrmConnector->modesLock()); in retrievePanelFullResolution()
2901 for (auto it = mDrmConnector->modes().begin(); it != mDrmConnector->modes().end(); it++) { in retrievePanelFullResolution()
3037 if (!mDrmConnector || mDrmConnector->id() != connector_id) return; in handleDrmPropertyUpdate()
3038 auto& conn_props = mDrmConnector->properties(); in handleDrmPropertyUpdate()
3045 mDrmDevice->UpdateConnectorProperty(*mDrmConnector, *prop); in handleDrmPropertyUpdate()
3046 if ((*prop)->id() == mDrmConnector->content_protection().id()) { in handleDrmPropertyUpdate()
3047 auto [ret, content_protection_value] = mDrmConnector->content_protection().value(); in handleDrmPropertyUpdate()
3092 if (!mDrmCrtc || !mDrmConnector) { in swapCrtcs()
3099 DrmConnector* anotherConnector = anotherDisplayIntf->mDrmConnector; in swapCrtcs()
3113 anotherCrtc->set_display(mDrmConnector->display()); in swapCrtcs()
3115 mDrmConnector->encoder()->set_crtc(anotherCrtc, anotherConnector->display()); in swapCrtcs()
3116 anotherConnector->encoder()->set_crtc(mDrmCrtc, mDrmConnector->display()); in swapCrtcs()
3119 anotherConnector->set_display(mDrmConnector->display()); in swapCrtcs()
3120 mDrmConnector->set_display(anotherConnDispl); in swapCrtcs()