Home
last modified time | relevance | path

Searched refs:DRMProperty (Results 1 – 12 of 12) sorted by relevance

/hardware/qcom/sm7250/display/sde-drm/
Ddrm_property.cpp36 DRMProperty DRMPropertyManager::GetPropertyEnum(const std::string &name) const { in GetPropertyEnum()
37 if (name == "type") { return DRMProperty::TYPE; } in GetPropertyEnum()
38 if (name == "FB_ID") { return DRMProperty::FB_ID; } in GetPropertyEnum()
39 if (name == "rot_fb_id") { return DRMProperty::ROT_FB_ID; } in GetPropertyEnum()
40 if (name == "CRTC_ID") { return DRMProperty::CRTC_ID; } in GetPropertyEnum()
41 if (name == "CRTC_X") { return DRMProperty::CRTC_X; } in GetPropertyEnum()
42 if (name == "CRTC_Y") { return DRMProperty::CRTC_Y; } in GetPropertyEnum()
43 if (name == "CRTC_W") { return DRMProperty::CRTC_W; } in GetPropertyEnum()
44 if (name == "CRTC_H") { return DRMProperty::CRTC_H; } in GetPropertyEnum()
45 if (name == "SRC_X") { return DRMProperty::SRC_X; } in GetPropertyEnum()
[all …]
Ddrm_pp_manager.cpp69 for (uint32_t i = (uint32_t)DRMProperty::INVALID + 1; i < (uint32_t)DRMProperty::MAX; i++) { in Init()
73 if (!pm.IsPropertyAvailable((DRMProperty)i)) { in Init()
77 if (i >= (uint32_t)DRMProperty::SDE_DSPP_GAMUT_V3 && i <= in Init()
78 (uint32_t)DRMProperty::SDE_DSPP_GAMUT_V5) { in Init()
79 pp_prop_map_[kFeatureGamut].prop_enum = (DRMProperty)i; in Init()
80 pp_prop_map_[kFeatureGamut].prop_id = pm.GetPropertyId((DRMProperty)i); in Init()
81 pp_prop_map_[kFeatureGamut].version = i - (uint32_t)DRMProperty::SDE_DSPP_GAMUT_V3 + 3; in Init()
84 } else if (i >= (uint32_t)DRMProperty::SDE_DSPP_GC_V1 && i <= in Init()
85 (uint32_t)DRMProperty::SDE_DSPP_GC_V2) { in Init()
86 pp_prop_map_[kFeaturePgc].prop_enum = (DRMProperty)i; in Init()
[all …]
Ddrm_dpps_mgr_imp.cpp154 DRMProperty prop_enum = prop_mgr_.GetPropertyEnum(property_name); in InitCrtcProps()
155 if (prop_enum == DRMProperty::INVALID) { in InitCrtcProps()
190 DRMProperty prop_enum = prop_mgr_.GetPropertyEnum(property_name); in InitConnProps()
191 if (prop_enum == DRMProperty::INVALID) { in InitConnProps()
234 (prop_mgr_.GetPropertyId(DRMProperty::SDE_DSPP_AD4_MODE) == 0 ? 0U : 4U) /* version */, in Init()
235 DRMProperty::SDE_DSPP_AD4_MODE, prop_mgr_.GetPropertyId(DRMProperty::SDE_DSPP_AD4_MODE), in Init()
238 DRMProperty::SDE_DSPP_AD4_INIT, prop_mgr_.GetPropertyId(DRMProperty::SDE_DSPP_AD4_INIT), in Init()
241 DRMProperty::SDE_DSPP_AD4_CFG, prop_mgr_.GetPropertyId(DRMProperty::SDE_DSPP_AD4_CFG), in Init()
244 DRMProperty::SDE_DSPP_AD4_INPUT, prop_mgr_.GetPropertyId(DRMProperty::SDE_DSPP_AD4_INPUT), in Init()
247DRMProperty::SDE_DSPP_AD4_BACKLIGHT, prop_mgr_.GetPropertyId(DRMProperty::SDE_DSPP_AD4_BACKLIGHT), in Init()
[all …]
Ddrm_plane.cpp441 std::tie(blob_id, prop) = prop_map.at(DRMProperty::CAPABILITIES); in GetTypeInfo()
567 DRMProperty prop_enum = prop_mgr_.GetPropertyEnum(property_name); in ParseProperties()
568 if (prop_enum == DRMProperty::INVALID) { in ParseProperties()
574 if (prop_enum == DRMProperty::EXCL_RECT) { in ParseProperties()
577 if (prop_enum == DRMProperty::ROTATION) { in ParseProperties()
579 } else if (prop_enum == DRMProperty::FB_TRANSLATION_MODE) { in ParseProperties()
581 } else if (prop_enum == DRMProperty::MULTIRECT_MODE) { in ParseProperties()
588 csc = prop_enum == DRMProperty::CSC_V1 ? true : csc; in ParseProperties()
589 scaler = (prop_enum == DRMProperty::SCALER_V1 || prop_enum == DRMProperty::SCALER_V2) \ in ParseProperties()
591 cursor = (prop_enum == DRMProperty::TYPE && props->prop_values[j] == DRM_PLANE_TYPE_CURSOR) \ in ParseProperties()
[all …]
Ddrm_crtc.cpp267 DRMProperty prop_enum = prop_mgr_.GetPropertyEnum(property_name); in ParseProperties()
268 if (prop_enum == DRMProperty::INVALID) { in ParseProperties()
274 if (prop_enum == DRMProperty::SECURITY_LEVEL) { in ParseProperties()
278 if (prop_enum == DRMProperty::CAPTURE_MODE) { in ParseProperties()
283 if (prop_enum == DRMProperty::IDLE_PC_STATE) { in ParseProperties()
288 if (prop_enum == DRMProperty::CAPABILITIES) { in ParseProperties()
557 AddProperty(DRMProperty::MODE_ID, blob_id, true); in Perform()
564 AddProperty(DRMProperty::OUTPUT_FENCE_OFFSET, offset); in Perform()
569 AddProperty(DRMProperty::CORE_CLK, core_clk); in Perform()
574 AddProperty(DRMProperty::CORE_AB, core_ab); in Perform()
[all …]
Ddrm_property.h41 enum struct DRMProperty { enum
182 DRMProperty GetPropertyEnum(const std::string &name) const;
184 void SetPropertyId(DRMProperty prop_enum, uint32_t prop_id) { in SetPropertyId()
188 uint32_t GetPropertyId(DRMProperty prop_enum) const { in GetPropertyId()
192 bool IsPropertyAvailable(DRMProperty prop_enum) const { in IsPropertyAvailable()
197 uint32_t properties_[(uint32_t)DRMProperty::MAX] {};
205 void AddProperty(DRMProperty prop, uint64_t value, bool force_dirty = false);
206 void RemoveProperty(DRMProperty prop);
Ddrm_connector.cpp460 DRMProperty prop_enum = prop_mgr_.GetPropertyEnum(property_name); in ParseProperties()
462 if (prop_enum == DRMProperty::INVALID) { in ParseProperties()
468 if (prop_enum == DRMProperty::LP) { in ParseProperties()
470 } else if (prop_enum == DRMProperty::FB_TRANSLATION_MODE) { in ParseProperties()
472 } else if (prop_enum == DRMProperty::QSYNC_MODE) { in ParseProperties()
474 } else if (prop_enum == DRMProperty::FRAME_TRIGGER) { in ParseProperties()
476 } else if (prop_enum == DRMProperty::COLORSPACE) { in ParseProperties()
478 } else if (prop_enum == DRMProperty::MAX) { in ParseProperties()
740 if (prop_mgr_.IsPropertyAvailable(DRMProperty::HDR_PROPERTIES)) { in GetInfo()
743 prop_mgr_.GetPropertyId(DRMProperty::HDR_PROPERTIES))); in GetInfo()
[all …]
Ddrm_panel_feature_mgr.cpp88 drm_property_map_[kDRMPanelFeatureDsppRCInfo] = DRMProperty::DSPP_CAPABILITIES; in Init()
89 drm_property_map_[kDRMPanelFeatureRCInit] = DRMProperty::DSPP_RC_MASK_V1; in Init()
138 DRMProperty prop_enum = prop_mgr_.GetPropertyEnum(property_name); in InitObjectProps()
139 if (prop_enum == DRMProperty::INVALID) { in InitObjectProps()
236 DRMProperty prop_enum = drm_property_map_[info->prop_id]; in GetPanelFeatureInfo()
Ddrm_plane.h111 void SetDecimation(DRMProperty prop, uint32_t prop_value);
126 typedef std::map<DRMProperty, std::tuple<uint64_t, drmModePropertyRes *>> PropertyMap;
Ddrm_pp_manager.h41 DRMProperty prop_enum;
Ddrm_dpps_mgr_imp.h43 DRMProperty prop_enum;
Ddrm_panel_feature_mgr.h63 std::map<DRMPanelFeatureID, DRMProperty> drm_property_map_ {};