Home
last modified time | relevance | path

Searched refs:hpd_pin (Results 1 – 15 of 15) sorted by relevance

/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dintel_hotplug_irq.c16 typedef bool (*long_pulse_detect_func)(enum hpd_pin pin, u32 val);
18 typedef u32 (*hotplug_mask_func)(enum hpd_pin pin);
213 static bool gen11_port_hotplug_long_detect(enum hpd_pin pin, u32 val) in gen11_port_hotplug_long_detect()
228 static bool bxt_port_hotplug_long_detect(enum hpd_pin pin, u32 val) in bxt_port_hotplug_long_detect()
242 static bool icp_ddi_port_hotplug_long_detect(enum hpd_pin pin, u32 val) in icp_ddi_port_hotplug_long_detect()
255 static bool icp_tc_port_hotplug_long_detect(enum hpd_pin pin, u32 val) in icp_tc_port_hotplug_long_detect()
270 static bool spt_port_hotplug2_long_detect(enum hpd_pin pin, u32 val) in spt_port_hotplug2_long_detect()
280 static bool spt_port_hotplug_long_detect(enum hpd_pin pin, u32 val) in spt_port_hotplug_long_detect()
296 static bool ilk_port_hotplug_long_detect(enum hpd_pin pin, u32 val) in ilk_port_hotplug_long_detect()
306 static bool pch_port_hotplug_long_detect(enum hpd_pin pin, u32 val) in pch_port_hotplug_long_detect()
[all …]
H A Dintel_hotplug.h27 enum hpd_pin intel_hpd_pin_default(struct drm_i915_private *dev_priv,
29 bool intel_hpd_disable(struct drm_i915_private *dev_priv, enum hpd_pin pin);
30 void intel_hpd_enable(struct drm_i915_private *dev_priv, enum hpd_pin pin);
H A Dintel_hotplug.c88 enum hpd_pin intel_hpd_pin_default(struct drm_i915_private *dev_priv, in intel_hpd_pin_default()
101 static enum hpd_pin
112 return encoder ? encoder->hpd_pin : HPD_NONE; in intel_connector_hpd_pin()
145 enum hpd_pin pin, bool long_hpd) in intel_hpd_irq_storm_detect()
190 enum hpd_pin pin; in intel_hpd_irq_storm_switch_to_polling()
229 enum hpd_pin pin; in intel_hpd_irq_storm_reenable_work()
335 old_bits |= BIT(encoder->hpd_pin); in i915_digport_work_func()
406 enum hpd_pin pin; in i915_hotplug_work_func()
494 enum hpd_pin pin; in intel_hpd_irq_handler()
511 pin = encoder->hpd_pin; in intel_hpd_irq_handler()
[all …]
H A Dintel_tc.c455 u32 isr_bit = i915->display.hotplug.pch_hpd[dig_port->base.hpd_pin]; in icl_tc_phy_hpd_live_status()
738 enum hpd_pin hpd_pin = dig_port->base.hpd_pin; in adlp_tc_phy_hpd_live_status() local
739 u32 cpu_isr_bits = i915->display.hotplug.hpd[hpd_pin]; in adlp_tc_phy_hpd_live_status()
740 u32 pch_isr_bit = i915->display.hotplug.pch_hpd[hpd_pin]; in adlp_tc_phy_hpd_live_status()
926 enum hpd_pin hpd_pin = dig_port->base.hpd_pin; in xelpdp_tc_phy_hpd_live_status() local
927 u32 pica_isr_bits = i915->display.hotplug.hpd[hpd_pin]; in xelpdp_tc_phy_hpd_live_status()
928 u32 pch_isr_bit = i915->display.hotplug.pch_hpd[hpd_pin]; in xelpdp_tc_phy_hpd_live_status()
H A Dintel_display_limits.h103 enum hpd_pin { enum
H A Dg4x_dp.c1178 u32 bit = dev_priv->display.hotplug.pch_hpd[encoder->hpd_pin]; in ibx_digital_port_connected()
1188 switch (encoder->hpd_pin) { in g4x_digital_port_connected()
1199 MISSING_CASE(encoder->hpd_pin); in g4x_digital_port_connected()
1209 u32 bit = dev_priv->display.hotplug.hpd[encoder->hpd_pin]; in ilk_digital_port_connected()
1370 intel_encoder->hpd_pin = intel_hpd_pin_default(dev_priv, port); in g4x_dp_init()
H A Dintel_ddi.c4464 u32 bit = dev_priv->display.hotplug.pch_hpd[encoder->hpd_pin]; in lpt_digital_port_connected()
4472 u32 bit = dev_priv->display.hotplug.hpd[encoder->hpd_pin]; in hsw_digital_port_connected()
4480 u32 bit = dev_priv->display.hotplug.hpd[encoder->hpd_pin]; in bdw_digital_port_connected()
4553 static enum hpd_pin xelpd_hpd_pin(struct drm_i915_private *dev_priv, in xelpd_hpd_pin()
4564 static enum hpd_pin dg1_hpd_pin(struct drm_i915_private *dev_priv, in dg1_hpd_pin()
4573 static enum hpd_pin tgl_hpd_pin(struct drm_i915_private *dev_priv, in tgl_hpd_pin()
4582 static enum hpd_pin rkl_hpd_pin(struct drm_i915_private *dev_priv, in rkl_hpd_pin()
4594 static enum hpd_pin icl_hpd_pin(struct drm_i915_private *dev_priv, in icl_hpd_pin()
4603 static enum hpd_pin ehl_hpd_pin(struct drm_i915_private *dev_priv, in ehl_hpd_pin()
4615 static enum hpd_pin skl_hpd_pin(struct drm_i915_private *dev_priv, enum port port) in skl_hpd_pin()
[all …]
H A Dintel_crt.c538 reenable_hpd = intel_hpd_disable(dev_priv, crt->base.hpd_pin); in valleyview_crt_detect_hotplug()
566 intel_hpd_enable(dev_priv, crt->base.hpd_pin); in valleyview_crt_detect_hotplug()
1066 crt->base.hpd_pin = HPD_CRT; in intel_crt_init()
H A Dintel_display_types.h276 enum hpd_pin hpd_pin; member
H A Dg4x_hdmi.c763 intel_encoder->hpd_pin = intel_hpd_pin_default(dev_priv, port); in g4x_hdmi_init()
H A Dintel_sdvo.c3416 intel_encoder->hpd_pin = HPD_SDVO_B; in intel_sdvo_init()
3418 intel_encoder->hpd_pin = HPD_SDVO_C; in intel_sdvo_init()
H A Dintel_dp.c5280 i915->display.hotplug.event_bits |= BIT(encoder->hpd_pin); in intel_dp_oob_hotplug_event()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/protocols/
H A Dlink_hpd.c122 struct gpio *hpd_pin = link_get_hpd_gpio( in query_hpd_status() local
125 if (!hpd_pin) in query_hpd_status()
128 dal_gpio_open(hpd_pin, GPIO_MODE_INTERRUPT); in query_hpd_status()
129 dal_gpio_get_value(hpd_pin, is_hpd_high); in query_hpd_status()
130 dal_gpio_close(hpd_pin); in query_hpd_status()
131 dal_gpio_destroy_irq(&hpd_pin); in query_hpd_status()
/openbmc/linux/drivers/gpu/drm/bridge/
H A Dtc358767.c313 int hpd_pin; member
1634 conn = val & BIT(tc->hpd_pin); in tc_bridge_detect()
1647 if (tc->hpd_pin >= 0) in tc_connector_detect()
1708 if (tc->hpd_pin >= 0) { in tc_edp_bridge_attach()
2044 if (tc->hpd_pin >= 0 && tc->bridge.dev && tc->aux.drm_dev) { in tc_irq_handler()
2051 bool h = val & INT_GPIO_H(tc->hpd_pin); in tc_irq_handler()
2052 bool lc = val & INT_GPIO_LC(tc->hpd_pin); in tc_irq_handler()
2054 dev_dbg(tc->dev, "GPIO%d: %s %s\n", tc->hpd_pin, in tc_irq_handler()
2167 if (tc->hpd_pin >= 0) in tc_probe_edp_bridge_endpoint()
2277 &tc->hpd_pin); in tc_probe()
[all …]
/openbmc/linux/drivers/gpu/drm/i915/
H A Di915_reg.h4407 #define _HPD_PIN_DDI(hpd_pin) ((hpd_pin) - HPD_PORT_A) argument
4408 #define _HPD_PIN_TC(hpd_pin) ((hpd_pin) - HPD_PORT_TC1) argument
4423 #define GEN8_DE_PORT_HOTPLUG(hpd_pin) REG_BIT(3 + _HPD_PIN_DDI(hpd_pin)) argument
4490 #define GEN11_TC_HOTPLUG(hpd_pin) REG_BIT(16 + _HPD_PIN_TC(hpd_pin)) argument
4497 #define GEN11_TBT_HOTPLUG(hpd_pin) REG_BIT(_HPD_PIN_TC(hpd_pin)) argument
4507 #define GEN11_HOTPLUG_CTL_ENABLE(hpd_pin) (8 << (_HPD_PIN_TC(hpd_pin) * 4)) argument
4508 #define GEN11_HOTPLUG_CTL_LONG_DETECT(hpd_pin) (2 << (_HPD_PIN_TC(hpd_pin) * 4)) argument
4509 #define GEN11_HOTPLUG_CTL_SHORT_DETECT(hpd_pin) (1 << (_HPD_PIN_TC(hpd_pin) * 4)) argument
4510 #define GEN11_HOTPLUG_CTL_NO_DETECT(hpd_pin) (0 << (_HPD_PIN_TC(hpd_pin) * 4)) argument
4517 #define XELPDP_DP_ALT_HOTPLUG(hpd_pin) REG_BIT(16 + _HPD_PIN_TC(hpd_pin)) argument
[all …]