Lines Matching defs:encoder
17 typedef u32 (*hotplug_enables_func)(struct intel_encoder *encoder);
370 struct intel_encoder *encoder;
373 for_each_intel_encoder(&dev_priv->drm, encoder)
374 if (dev_priv->display.hotplug.stats[encoder->hpd_pin].state == HPD_ENABLED)
375 enabled_irqs |= hpd[encoder->hpd_pin];
383 struct intel_encoder *encoder;
386 for_each_intel_encoder(&dev_priv->drm, encoder)
387 hotplug_irqs |= hpd[encoder->hpd_pin];
407 struct intel_encoder *encoder;
410 for_each_intel_encoder(&i915->drm, encoder)
411 hotplug |= hotplug_enables(encoder);
712 static u32 ibx_hotplug_enables(struct intel_encoder *encoder)
714 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
716 switch (encoder->hpd_pin) {
750 static void ibx_hpd_enable_detection(struct intel_encoder *encoder)
752 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
755 ibx_hotplug_mask(encoder->hpd_pin),
756 ibx_hotplug_enables(encoder));
784 static u32 icp_ddi_hotplug_enables(struct intel_encoder *encoder)
786 return icp_ddi_hotplug_mask(encoder->hpd_pin);
804 static u32 icp_tc_hotplug_enables(struct intel_encoder *encoder)
806 return icp_tc_hotplug_mask(encoder->hpd_pin);
816 static void icp_ddi_hpd_enable_detection(struct intel_encoder *encoder)
818 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
821 icp_ddi_hotplug_mask(encoder->hpd_pin),
822 icp_ddi_hotplug_enables(encoder));
832 static void icp_tc_hpd_enable_detection(struct intel_encoder *encoder)
834 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
837 icp_tc_hotplug_mask(encoder->hpd_pin),
838 icp_tc_hotplug_enables(encoder));
841 static void icp_hpd_enable_detection(struct intel_encoder *encoder)
843 icp_ddi_hpd_enable_detection(encoder);
844 icp_tc_hpd_enable_detection(encoder);
881 static u32 gen11_hotplug_enables(struct intel_encoder *encoder)
883 return gen11_hotplug_mask(encoder->hpd_pin);
895 static void dg1_hpd_enable_detection(struct intel_encoder *encoder)
897 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
900 icp_hpd_enable_detection(encoder);
916 static void gen11_tc_hpd_enable_detection(struct intel_encoder *encoder)
918 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
921 gen11_hotplug_mask(encoder->hpd_pin),
922 gen11_hotplug_enables(encoder));
932 static void gen11_tbt_hpd_enable_detection(struct intel_encoder *encoder)
934 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
937 gen11_hotplug_mask(encoder->hpd_pin),
938 gen11_hotplug_enables(encoder));
941 static void gen11_hpd_enable_detection(struct intel_encoder *encoder)
943 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
945 gen11_tc_hpd_enable_detection(encoder);
946 gen11_tbt_hpd_enable_detection(encoder);
949 icp_hpd_enable_detection(encoder);
981 static u32 mtp_ddi_hotplug_enables(struct intel_encoder *encoder)
983 return mtp_ddi_hotplug_mask(encoder->hpd_pin);
999 static u32 mtp_tc_hotplug_enables(struct intel_encoder *encoder)
1001 return mtp_tc_hotplug_mask(encoder->hpd_pin);
1011 static void mtp_ddi_hpd_enable_detection(struct intel_encoder *encoder)
1013 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
1016 mtp_ddi_hotplug_mask(encoder->hpd_pin),
1017 mtp_ddi_hotplug_enables(encoder));
1027 static void mtp_tc_hpd_enable_detection(struct intel_encoder *encoder)
1029 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
1032 mtp_tc_hotplug_mask(encoder->hpd_pin),
1033 mtp_tc_hotplug_enables(encoder));
1050 static void mtp_hpd_enable_detection(struct intel_encoder *encoder)
1052 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
1055 mtp_ddi_hpd_enable_detection(encoder);
1056 mtp_tc_hpd_enable_detection(encoder);
1110 static void xelpdp_pica_hpd_enable_detection(struct intel_encoder *encoder)
1112 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
1114 _xelpdp_pica_hpd_detection_setup(i915, encoder->hpd_pin, true);
1119 struct intel_encoder *encoder;
1125 for_each_intel_encoder(&i915->drm, encoder)
1126 available_pins |= BIT(encoder->hpd_pin);
1132 static void xelpdp_hpd_enable_detection(struct intel_encoder *encoder)
1134 xelpdp_pica_hpd_enable_detection(encoder);
1135 mtp_hpd_enable_detection(encoder);
1173 static u32 spt_hotplug_enables(struct intel_encoder *encoder)
1175 return spt_hotplug_mask(encoder->hpd_pin);
1188 static u32 spt_hotplug2_enables(struct intel_encoder *encoder)
1190 return spt_hotplug2_mask(encoder->hpd_pin);
1211 static void spt_hpd_enable_detection(struct intel_encoder *encoder)
1213 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
1223 spt_hotplug_mask(encoder->hpd_pin),
1224 spt_hotplug_enables(encoder));
1227 spt_hotplug2_mask(encoder->hpd_pin),
1228 spt_hotplug2_enables(encoder));
1257 static u32 ilk_hotplug_enables(struct intel_encoder *encoder)
1259 switch (encoder->hpd_pin) {
1280 static void ilk_hpd_enable_detection(struct intel_encoder *encoder)
1282 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
1285 ilk_hotplug_mask(encoder->hpd_pin),
1286 ilk_hotplug_enables(encoder));
1288 ibx_hpd_enable_detection(encoder);
1322 static u32 bxt_hotplug_enables(struct intel_encoder *encoder)
1326 switch (encoder->hpd_pin) {
1329 if (intel_bios_encoder_hpd_invert(encoder->devdata))
1334 if (intel_bios_encoder_hpd_invert(encoder->devdata))
1339 if (intel_bios_encoder_hpd_invert(encoder->devdata))
1354 static void bxt_hpd_enable_detection(struct intel_encoder *encoder)
1356 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
1359 bxt_hotplug_mask(encoder->hpd_pin),
1360 bxt_hotplug_enables(encoder));
1385 static void i915_hpd_enable_detection(struct intel_encoder *encoder)
1387 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
1388 u32 hotplug_en = hpd_mask_i915[encoder->hpd_pin];
1430 /* Enable HPD sense for a single encoder */
1431 void (*hpd_enable_detection)(struct intel_encoder *encoder);
1450 void intel_hpd_enable_detection(struct intel_encoder *encoder)
1452 struct drm_i915_private *i915 = to_i915(encoder->base.dev);
1455 i915->display.funcs.hotplug->hpd_enable_detection(encoder);