Lines Matching refs:encoder

17 typedef u32 (*hotplug_enables_func)(struct intel_encoder *encoder);
369 struct intel_encoder *encoder; in intel_hpd_enabled_irqs() local
372 for_each_intel_encoder(&dev_priv->drm, encoder) in intel_hpd_enabled_irqs()
373 if (dev_priv->display.hotplug.stats[encoder->hpd_pin].state == HPD_ENABLED) in intel_hpd_enabled_irqs()
374 enabled_irqs |= hpd[encoder->hpd_pin]; in intel_hpd_enabled_irqs()
382 struct intel_encoder *encoder; in intel_hpd_hotplug_irqs() local
385 for_each_intel_encoder(&dev_priv->drm, encoder) in intel_hpd_hotplug_irqs()
386 hotplug_irqs |= hpd[encoder->hpd_pin]; in intel_hpd_hotplug_irqs()
406 struct intel_encoder *encoder; in intel_hpd_hotplug_enables() local
409 for_each_intel_encoder(&i915->drm, encoder) in intel_hpd_hotplug_enables()
410 hotplug |= hotplug_enables(encoder); in intel_hpd_hotplug_enables()
701 static u32 ibx_hotplug_enables(struct intel_encoder *encoder) in ibx_hotplug_enables() argument
703 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in ibx_hotplug_enables()
705 switch (encoder->hpd_pin) { in ibx_hotplug_enables()
739 static void ibx_hpd_enable_detection(struct intel_encoder *encoder) in ibx_hpd_enable_detection() argument
741 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in ibx_hpd_enable_detection()
744 ibx_hotplug_mask(encoder->hpd_pin), in ibx_hpd_enable_detection()
745 ibx_hotplug_enables(encoder)); in ibx_hpd_enable_detection()
773 static u32 icp_ddi_hotplug_enables(struct intel_encoder *encoder) in icp_ddi_hotplug_enables() argument
775 return icp_ddi_hotplug_mask(encoder->hpd_pin); in icp_ddi_hotplug_enables()
793 static u32 icp_tc_hotplug_enables(struct intel_encoder *encoder) in icp_tc_hotplug_enables() argument
795 return icp_tc_hotplug_mask(encoder->hpd_pin); in icp_tc_hotplug_enables()
805 static void icp_ddi_hpd_enable_detection(struct intel_encoder *encoder) in icp_ddi_hpd_enable_detection() argument
807 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in icp_ddi_hpd_enable_detection()
810 icp_ddi_hotplug_mask(encoder->hpd_pin), in icp_ddi_hpd_enable_detection()
811 icp_ddi_hotplug_enables(encoder)); in icp_ddi_hpd_enable_detection()
821 static void icp_tc_hpd_enable_detection(struct intel_encoder *encoder) in icp_tc_hpd_enable_detection() argument
823 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in icp_tc_hpd_enable_detection()
826 icp_tc_hotplug_mask(encoder->hpd_pin), in icp_tc_hpd_enable_detection()
827 icp_tc_hotplug_enables(encoder)); in icp_tc_hpd_enable_detection()
830 static void icp_hpd_enable_detection(struct intel_encoder *encoder) in icp_hpd_enable_detection() argument
832 icp_ddi_hpd_enable_detection(encoder); in icp_hpd_enable_detection()
833 icp_tc_hpd_enable_detection(encoder); in icp_hpd_enable_detection()
869 static u32 gen11_hotplug_enables(struct intel_encoder *encoder) in gen11_hotplug_enables() argument
871 return gen11_hotplug_mask(encoder->hpd_pin); in gen11_hotplug_enables()
883 static void dg1_hpd_enable_detection(struct intel_encoder *encoder) in dg1_hpd_enable_detection() argument
885 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in dg1_hpd_enable_detection()
888 icp_hpd_enable_detection(encoder); in dg1_hpd_enable_detection()
904 static void gen11_tc_hpd_enable_detection(struct intel_encoder *encoder) in gen11_tc_hpd_enable_detection() argument
906 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in gen11_tc_hpd_enable_detection()
909 gen11_hotplug_mask(encoder->hpd_pin), in gen11_tc_hpd_enable_detection()
910 gen11_hotplug_enables(encoder)); in gen11_tc_hpd_enable_detection()
920 static void gen11_tbt_hpd_enable_detection(struct intel_encoder *encoder) in gen11_tbt_hpd_enable_detection() argument
922 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in gen11_tbt_hpd_enable_detection()
925 gen11_hotplug_mask(encoder->hpd_pin), in gen11_tbt_hpd_enable_detection()
926 gen11_hotplug_enables(encoder)); in gen11_tbt_hpd_enable_detection()
929 static void gen11_hpd_enable_detection(struct intel_encoder *encoder) in gen11_hpd_enable_detection() argument
931 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in gen11_hpd_enable_detection()
933 gen11_tc_hpd_enable_detection(encoder); in gen11_hpd_enable_detection()
934 gen11_tbt_hpd_enable_detection(encoder); in gen11_hpd_enable_detection()
937 icp_hpd_enable_detection(encoder); in gen11_hpd_enable_detection()
969 static u32 mtp_ddi_hotplug_enables(struct intel_encoder *encoder) in mtp_ddi_hotplug_enables() argument
971 return mtp_ddi_hotplug_mask(encoder->hpd_pin); in mtp_ddi_hotplug_enables()
987 static u32 mtp_tc_hotplug_enables(struct intel_encoder *encoder) in mtp_tc_hotplug_enables() argument
989 return mtp_tc_hotplug_mask(encoder->hpd_pin); in mtp_tc_hotplug_enables()
999 static void mtp_ddi_hpd_enable_detection(struct intel_encoder *encoder) in mtp_ddi_hpd_enable_detection() argument
1001 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in mtp_ddi_hpd_enable_detection()
1004 mtp_ddi_hotplug_mask(encoder->hpd_pin), in mtp_ddi_hpd_enable_detection()
1005 mtp_ddi_hotplug_enables(encoder)); in mtp_ddi_hpd_enable_detection()
1015 static void mtp_tc_hpd_enable_detection(struct intel_encoder *encoder) in mtp_tc_hpd_enable_detection() argument
1017 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in mtp_tc_hpd_enable_detection()
1020 mtp_tc_hotplug_mask(encoder->hpd_pin), in mtp_tc_hpd_enable_detection()
1021 mtp_tc_hotplug_enables(encoder)); in mtp_tc_hpd_enable_detection()
1038 static void mtp_hpd_enable_detection(struct intel_encoder *encoder) in mtp_hpd_enable_detection() argument
1040 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in mtp_hpd_enable_detection()
1043 mtp_ddi_hpd_enable_detection(encoder); in mtp_hpd_enable_detection()
1044 mtp_tc_hpd_enable_detection(encoder); in mtp_hpd_enable_detection()
1081 static void xelpdp_pica_hpd_enable_detection(struct intel_encoder *encoder) in xelpdp_pica_hpd_enable_detection() argument
1083 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in xelpdp_pica_hpd_enable_detection()
1085 _xelpdp_pica_hpd_detection_setup(i915, encoder->hpd_pin, true); in xelpdp_pica_hpd_enable_detection()
1090 struct intel_encoder *encoder; in xelpdp_pica_hpd_detection_setup() local
1096 for_each_intel_encoder(&i915->drm, encoder) in xelpdp_pica_hpd_detection_setup()
1097 available_pins |= BIT(encoder->hpd_pin); in xelpdp_pica_hpd_detection_setup()
1103 static void xelpdp_hpd_enable_detection(struct intel_encoder *encoder) in xelpdp_hpd_enable_detection() argument
1105 xelpdp_pica_hpd_enable_detection(encoder); in xelpdp_hpd_enable_detection()
1106 mtp_hpd_enable_detection(encoder); in xelpdp_hpd_enable_detection()
1142 static u32 spt_hotplug_enables(struct intel_encoder *encoder) in spt_hotplug_enables() argument
1144 return spt_hotplug_mask(encoder->hpd_pin); in spt_hotplug_enables()
1157 static u32 spt_hotplug2_enables(struct intel_encoder *encoder) in spt_hotplug2_enables() argument
1159 return spt_hotplug2_mask(encoder->hpd_pin); in spt_hotplug2_enables()
1180 static void spt_hpd_enable_detection(struct intel_encoder *encoder) in spt_hpd_enable_detection() argument
1182 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in spt_hpd_enable_detection()
1192 spt_hotplug_mask(encoder->hpd_pin), in spt_hpd_enable_detection()
1193 spt_hotplug_enables(encoder)); in spt_hpd_enable_detection()
1196 spt_hotplug2_mask(encoder->hpd_pin), in spt_hpd_enable_detection()
1197 spt_hotplug2_enables(encoder)); in spt_hpd_enable_detection()
1226 static u32 ilk_hotplug_enables(struct intel_encoder *encoder) in ilk_hotplug_enables() argument
1228 switch (encoder->hpd_pin) { in ilk_hotplug_enables()
1249 static void ilk_hpd_enable_detection(struct intel_encoder *encoder) in ilk_hpd_enable_detection() argument
1251 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in ilk_hpd_enable_detection()
1254 ilk_hotplug_mask(encoder->hpd_pin), in ilk_hpd_enable_detection()
1255 ilk_hotplug_enables(encoder)); in ilk_hpd_enable_detection()
1257 ibx_hpd_enable_detection(encoder); in ilk_hpd_enable_detection()
1291 static u32 bxt_hotplug_enables(struct intel_encoder *encoder) in bxt_hotplug_enables() argument
1295 switch (encoder->hpd_pin) { in bxt_hotplug_enables()
1298 if (intel_bios_encoder_hpd_invert(encoder->devdata)) in bxt_hotplug_enables()
1303 if (intel_bios_encoder_hpd_invert(encoder->devdata)) in bxt_hotplug_enables()
1308 if (intel_bios_encoder_hpd_invert(encoder->devdata)) in bxt_hotplug_enables()
1323 static void bxt_hpd_enable_detection(struct intel_encoder *encoder) in bxt_hpd_enable_detection() argument
1325 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in bxt_hpd_enable_detection()
1328 bxt_hotplug_mask(encoder->hpd_pin), in bxt_hpd_enable_detection()
1329 bxt_hotplug_enables(encoder)); in bxt_hpd_enable_detection()
1344 static void i915_hpd_enable_detection(struct intel_encoder *encoder) in i915_hpd_enable_detection() argument
1346 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in i915_hpd_enable_detection()
1347 u32 hotplug_en = hpd_mask_i915[encoder->hpd_pin]; in i915_hpd_enable_detection()
1384 void (*hpd_enable_detection)(struct intel_encoder *encoder);
1403 void intel_hpd_enable_detection(struct intel_encoder *encoder) in intel_hpd_enable_detection() argument
1405 struct drm_i915_private *i915 = to_i915(encoder->base.dev); in intel_hpd_enable_detection()
1408 i915->display.funcs.hotplug->hpd_enable_detection(encoder); in intel_hpd_enable_detection()