Lines Matching refs:encoder

20 typedef u32 (*hotplug_enables_func)(struct intel_encoder *encoder);
372 struct intel_encoder *encoder; in intel_hpd_enabled_irqs() local
375 for_each_intel_encoder(display->drm, encoder) in intel_hpd_enabled_irqs()
376 if (display->hotplug.stats[encoder->hpd_pin].state == HPD_ENABLED) in intel_hpd_enabled_irqs()
377 enabled_irqs |= hpd[encoder->hpd_pin]; in intel_hpd_enabled_irqs()
385 struct intel_encoder *encoder; in intel_hpd_hotplug_irqs() local
388 for_each_intel_encoder(display->drm, encoder) in intel_hpd_hotplug_irqs()
389 hotplug_irqs |= hpd[encoder->hpd_pin]; in intel_hpd_hotplug_irqs()
409 struct intel_encoder *encoder; in intel_hpd_hotplug_enables() local
412 for_each_intel_encoder(display->drm, encoder) in intel_hpd_hotplug_enables()
413 hotplug |= hotplug_enables(encoder); in intel_hpd_hotplug_enables()
709 static u32 ibx_hotplug_enables(struct intel_encoder *encoder) in ibx_hotplug_enables() argument
711 struct intel_display *display = to_intel_display(encoder); in ibx_hotplug_enables()
713 switch (encoder->hpd_pin) { in ibx_hotplug_enables()
747 static void ibx_hpd_enable_detection(struct intel_encoder *encoder) in ibx_hpd_enable_detection() argument
749 struct intel_display *display = to_intel_display(encoder); in ibx_hpd_enable_detection()
752 ibx_hotplug_mask(encoder->hpd_pin), in ibx_hpd_enable_detection()
753 ibx_hotplug_enables(encoder)); in ibx_hpd_enable_detection()
781 static u32 icp_ddi_hotplug_enables(struct intel_encoder *encoder) in icp_ddi_hotplug_enables() argument
783 return icp_ddi_hotplug_mask(encoder->hpd_pin); in icp_ddi_hotplug_enables()
801 static u32 icp_tc_hotplug_enables(struct intel_encoder *encoder) in icp_tc_hotplug_enables() argument
803 return icp_tc_hotplug_mask(encoder->hpd_pin); in icp_tc_hotplug_enables()
813 static void icp_ddi_hpd_enable_detection(struct intel_encoder *encoder) in icp_ddi_hpd_enable_detection() argument
815 struct intel_display *display = to_intel_display(encoder); in icp_ddi_hpd_enable_detection()
818 icp_ddi_hotplug_mask(encoder->hpd_pin), in icp_ddi_hpd_enable_detection()
819 icp_ddi_hotplug_enables(encoder)); in icp_ddi_hpd_enable_detection()
829 static void icp_tc_hpd_enable_detection(struct intel_encoder *encoder) in icp_tc_hpd_enable_detection() argument
831 struct intel_display *display = to_intel_display(encoder); in icp_tc_hpd_enable_detection()
834 icp_tc_hotplug_mask(encoder->hpd_pin), in icp_tc_hpd_enable_detection()
835 icp_tc_hotplug_enables(encoder)); in icp_tc_hpd_enable_detection()
838 static void icp_hpd_enable_detection(struct intel_encoder *encoder) in icp_hpd_enable_detection() argument
840 icp_ddi_hpd_enable_detection(encoder); in icp_hpd_enable_detection()
841 icp_tc_hpd_enable_detection(encoder); in icp_hpd_enable_detection()
878 static u32 gen11_hotplug_enables(struct intel_encoder *encoder) in gen11_hotplug_enables() argument
880 return gen11_hotplug_mask(encoder->hpd_pin); in gen11_hotplug_enables()
892 static void dg1_hpd_enable_detection(struct intel_encoder *encoder) in dg1_hpd_enable_detection() argument
894 struct intel_display *display = to_intel_display(encoder); in dg1_hpd_enable_detection()
897 icp_hpd_enable_detection(encoder); in dg1_hpd_enable_detection()
913 static void gen11_tc_hpd_enable_detection(struct intel_encoder *encoder) in gen11_tc_hpd_enable_detection() argument
915 struct intel_display *display = to_intel_display(encoder); in gen11_tc_hpd_enable_detection()
918 gen11_hotplug_mask(encoder->hpd_pin), in gen11_tc_hpd_enable_detection()
919 gen11_hotplug_enables(encoder)); in gen11_tc_hpd_enable_detection()
929 static void gen11_tbt_hpd_enable_detection(struct intel_encoder *encoder) in gen11_tbt_hpd_enable_detection() argument
931 struct intel_display *display = to_intel_display(encoder); in gen11_tbt_hpd_enable_detection()
934 gen11_hotplug_mask(encoder->hpd_pin), in gen11_tbt_hpd_enable_detection()
935 gen11_hotplug_enables(encoder)); in gen11_tbt_hpd_enable_detection()
938 static void gen11_hpd_enable_detection(struct intel_encoder *encoder) in gen11_hpd_enable_detection() argument
940 struct intel_display *display = to_intel_display(encoder); in gen11_hpd_enable_detection()
942 gen11_tc_hpd_enable_detection(encoder); in gen11_hpd_enable_detection()
943 gen11_tbt_hpd_enable_detection(encoder); in gen11_hpd_enable_detection()
946 icp_hpd_enable_detection(encoder); in gen11_hpd_enable_detection()
978 static u32 mtp_ddi_hotplug_enables(struct intel_encoder *encoder) in mtp_ddi_hotplug_enables() argument
980 return mtp_ddi_hotplug_mask(encoder->hpd_pin); in mtp_ddi_hotplug_enables()
996 static u32 mtp_tc_hotplug_enables(struct intel_encoder *encoder) in mtp_tc_hotplug_enables() argument
998 return mtp_tc_hotplug_mask(encoder->hpd_pin); in mtp_tc_hotplug_enables()
1008 static void mtp_ddi_hpd_enable_detection(struct intel_encoder *encoder) in mtp_ddi_hpd_enable_detection() argument
1010 struct intel_display *display = to_intel_display(encoder); in mtp_ddi_hpd_enable_detection()
1013 mtp_ddi_hotplug_mask(encoder->hpd_pin), in mtp_ddi_hpd_enable_detection()
1014 mtp_ddi_hotplug_enables(encoder)); in mtp_ddi_hpd_enable_detection()
1024 static void mtp_tc_hpd_enable_detection(struct intel_encoder *encoder) in mtp_tc_hpd_enable_detection() argument
1026 struct intel_display *display = to_intel_display(encoder); in mtp_tc_hpd_enable_detection()
1029 mtp_tc_hotplug_mask(encoder->hpd_pin), in mtp_tc_hpd_enable_detection()
1030 mtp_tc_hotplug_enables(encoder)); in mtp_tc_hpd_enable_detection()
1047 static void mtp_hpd_enable_detection(struct intel_encoder *encoder) in mtp_hpd_enable_detection() argument
1049 struct intel_display *display = to_intel_display(encoder); in mtp_hpd_enable_detection()
1052 mtp_ddi_hpd_enable_detection(encoder); in mtp_hpd_enable_detection()
1053 mtp_tc_hpd_enable_detection(encoder); in mtp_hpd_enable_detection()
1107 static void xelpdp_pica_hpd_enable_detection(struct intel_encoder *encoder) in xelpdp_pica_hpd_enable_detection() argument
1109 struct intel_display *display = to_intel_display(encoder); in xelpdp_pica_hpd_enable_detection()
1111 _xelpdp_pica_hpd_detection_setup(display, encoder->hpd_pin, true); in xelpdp_pica_hpd_enable_detection()
1116 struct intel_encoder *encoder; in xelpdp_pica_hpd_detection_setup() local
1122 for_each_intel_encoder(display->drm, encoder) in xelpdp_pica_hpd_detection_setup()
1123 available_pins |= BIT(encoder->hpd_pin); in xelpdp_pica_hpd_detection_setup()
1129 static void xelpdp_hpd_enable_detection(struct intel_encoder *encoder) in xelpdp_hpd_enable_detection() argument
1131 xelpdp_pica_hpd_enable_detection(encoder); in xelpdp_hpd_enable_detection()
1132 mtp_hpd_enable_detection(encoder); in xelpdp_hpd_enable_detection()
1170 static u32 spt_hotplug_enables(struct intel_encoder *encoder) in spt_hotplug_enables() argument
1172 return spt_hotplug_mask(encoder->hpd_pin); in spt_hotplug_enables()
1185 static u32 spt_hotplug2_enables(struct intel_encoder *encoder) in spt_hotplug2_enables() argument
1187 return spt_hotplug2_mask(encoder->hpd_pin); in spt_hotplug2_enables()
1208 static void spt_hpd_enable_detection(struct intel_encoder *encoder) in spt_hpd_enable_detection() argument
1210 struct intel_display *display = to_intel_display(encoder); in spt_hpd_enable_detection()
1220 spt_hotplug_mask(encoder->hpd_pin), in spt_hpd_enable_detection()
1221 spt_hotplug_enables(encoder)); in spt_hpd_enable_detection()
1224 spt_hotplug2_mask(encoder->hpd_pin), in spt_hpd_enable_detection()
1225 spt_hotplug2_enables(encoder)); in spt_hpd_enable_detection()
1254 static u32 ilk_hotplug_enables(struct intel_encoder *encoder) in ilk_hotplug_enables() argument
1256 switch (encoder->hpd_pin) { in ilk_hotplug_enables()
1277 static void ilk_hpd_enable_detection(struct intel_encoder *encoder) in ilk_hpd_enable_detection() argument
1279 struct intel_display *display = to_intel_display(encoder); in ilk_hpd_enable_detection()
1282 ilk_hotplug_mask(encoder->hpd_pin), in ilk_hpd_enable_detection()
1283 ilk_hotplug_enables(encoder)); in ilk_hpd_enable_detection()
1285 ibx_hpd_enable_detection(encoder); in ilk_hpd_enable_detection()
1319 static u32 bxt_hotplug_enables(struct intel_encoder *encoder) in bxt_hotplug_enables() argument
1323 switch (encoder->hpd_pin) { in bxt_hotplug_enables()
1326 if (intel_bios_encoder_hpd_invert(encoder->devdata)) in bxt_hotplug_enables()
1331 if (intel_bios_encoder_hpd_invert(encoder->devdata)) in bxt_hotplug_enables()
1336 if (intel_bios_encoder_hpd_invert(encoder->devdata)) in bxt_hotplug_enables()
1351 static void bxt_hpd_enable_detection(struct intel_encoder *encoder) in bxt_hpd_enable_detection() argument
1353 struct intel_display *display = to_intel_display(encoder); in bxt_hpd_enable_detection()
1356 bxt_hotplug_mask(encoder->hpd_pin), in bxt_hpd_enable_detection()
1357 bxt_hotplug_enables(encoder)); in bxt_hpd_enable_detection()
1382 static void i915_hpd_enable_detection(struct intel_encoder *encoder) in i915_hpd_enable_detection() argument
1384 struct intel_display *display = to_intel_display(encoder); in i915_hpd_enable_detection()
1385 u32 hotplug_en = hpd_mask_i915[encoder->hpd_pin]; in i915_hpd_enable_detection()
1428 void (*hpd_enable_detection)(struct intel_encoder *encoder);
1447 void intel_hpd_enable_detection(struct intel_encoder *encoder) in intel_hpd_enable_detection() argument
1449 struct intel_display *display = to_intel_display(encoder); in intel_hpd_enable_detection()
1452 display->funcs.hotplug->hpd_enable_detection(encoder); in intel_hpd_enable_detection()