Lines Matching full:display

35  * Simply put, hotplug occurs when a display is connected to or disconnected
37 * Display Port short pulses and MST devices involved, complicating matters.
48 * further processing to appropriate bottom halves (Display Port specific and
51 * The Display Port work function i915_digport_work_func() calls into
71 * seen when display port sink is connected, hence on platforms whose DP
74 * this is specific to DP sinks handled by this routine and any other display
126 * stored in @dev_priv->display.hotplug.hpd_storm_threshold which defaults to
132 * &dev_priv->display.hotplug.hpd_storm_threshold. However, some older systems also
147 struct intel_hotplug *hpd = &dev_priv->display.hotplug; in intel_hpd_irq_storm_detect()
155 (!long_hpd && !dev_priv->display.hotplug.hpd_short_storm_enabled)) in intel_hpd_irq_storm_detect()
197 dev_priv->display.hotplug.stats[pin].state != HPD_MARK_DISABLED) in intel_hpd_irq_storm_switch_to_polling()
205 dev_priv->display.hotplug.stats[pin].state = HPD_DISABLED; in intel_hpd_irq_storm_switch_to_polling()
216 &dev_priv->display.hotplug.reenable_work, in intel_hpd_irq_storm_switch_to_polling()
225 display.hotplug.reenable_work.work); in intel_hpd_irq_storm_reenable_work()
239 dev_priv->display.hotplug.stats[pin].state != HPD_DISABLED) in intel_hpd_irq_storm_reenable_work()
251 if (dev_priv->display.hotplug.stats[pin].state == HPD_DISABLED) in intel_hpd_irq_storm_reenable_work()
252 dev_priv->display.hotplug.stats[pin].state = HPD_ENABLED; in intel_hpd_irq_storm_reenable_work()
303 container_of(work, struct drm_i915_private, display.hotplug.dig_port_work); in i915_digport_work_func()
309 long_port_mask = dev_priv->display.hotplug.long_port_mask; in i915_digport_work_func()
310 dev_priv->display.hotplug.long_port_mask = 0; in i915_digport_work_func()
311 short_port_mask = dev_priv->display.hotplug.short_port_mask; in i915_digport_work_func()
312 dev_priv->display.hotplug.short_port_mask = 0; in i915_digport_work_func()
341 dev_priv->display.hotplug.event_bits |= old_bits; in i915_digport_work_func()
344 &dev_priv->display.hotplug.hotplug_work, 0); in i915_digport_work_func()
360 i915->display.hotplug.short_port_mask |= BIT(dig_port->base.port); in intel_hpd_trigger_irq()
363 queue_work(i915->display.hotplug.dp_wq, &i915->display.hotplug.dig_port_work); in intel_hpd_trigger_irq()
373 display.hotplug.hotplug_work.work); in i915_hotplug_work_func()
387 hpd_event_bits = dev_priv->display.hotplug.event_bits; in i915_hotplug_work_func()
388 dev_priv->display.hotplug.event_bits = 0; in i915_hotplug_work_func()
389 hpd_retry_bits = dev_priv->display.hotplug.retry_bits; in i915_hotplug_work_func()
390 dev_priv->display.hotplug.retry_bits = 0; in i915_hotplug_work_func()
398 if (dev_priv->display.hotplug.ignore_long_hpd) { in i915_hotplug_work_func()
460 dev_priv->display.hotplug.retry_bits |= retry; in i915_hotplug_work_func()
464 &dev_priv->display.hotplug.hotplug_work, in i915_hotplug_work_func()
528 dev_priv->display.hotplug.long_port_mask |= BIT(port); in intel_hpd_irq_handler()
531 dev_priv->display.hotplug.short_port_mask |= BIT(port); in intel_hpd_irq_handler()
542 if (dev_priv->display.hotplug.stats[pin].state == HPD_DISABLED) { in intel_hpd_irq_handler()
555 if (dev_priv->display.hotplug.stats[pin].state != HPD_ENABLED) in intel_hpd_irq_handler()
566 dev_priv->display.hotplug.event_bits |= BIT(pin); in intel_hpd_irq_handler()
572 dev_priv->display.hotplug.event_bits &= ~BIT(pin); in intel_hpd_irq_handler()
593 queue_work(dev_priv->display.hotplug.dp_wq, &dev_priv->display.hotplug.dig_port_work); in intel_hpd_irq_handler()
596 &dev_priv->display.hotplug.hotplug_work, 0); in intel_hpd_irq_handler()
621 dev_priv->display.hotplug.stats[i].count = 0; in intel_hpd_init()
622 dev_priv->display.hotplug.stats[i].state = HPD_ENABLED; in intel_hpd_init()
638 display.hotplug.poll_init_work); in i915_hpd_poll_init_work()
645 enabled = READ_ONCE(dev_priv->display.hotplug.poll_enabled); in i915_hpd_poll_init_work()
698 WRITE_ONCE(dev_priv->display.hotplug.poll_enabled, true); in intel_hpd_poll_enable()
707 &dev_priv->display.hotplug.poll_init_work); in intel_hpd_poll_enable()
734 WRITE_ONCE(dev_priv->display.hotplug.poll_enabled, false); in intel_hpd_poll_disable()
736 &dev_priv->display.hotplug.poll_init_work); in intel_hpd_poll_disable()
741 INIT_DELAYED_WORK(&i915->display.hotplug.hotplug_work, in intel_hpd_init_early()
743 INIT_WORK(&i915->display.hotplug.dig_port_work, i915_digport_work_func); in intel_hpd_init_early()
744 INIT_WORK(&i915->display.hotplug.poll_init_work, i915_hpd_poll_init_work); in intel_hpd_init_early()
745 INIT_DELAYED_WORK(&i915->display.hotplug.reenable_work, in intel_hpd_init_early()
748 i915->display.hotplug.hpd_storm_threshold = HPD_STORM_DEFAULT_THRESHOLD; in intel_hpd_init_early()
755 i915->display.hotplug.hpd_short_storm_enabled = !HAS_DP_MST(i915); in intel_hpd_init_early()
765 dev_priv->display.hotplug.long_port_mask = 0; in intel_hpd_cancel_work()
766 dev_priv->display.hotplug.short_port_mask = 0; in intel_hpd_cancel_work()
767 dev_priv->display.hotplug.event_bits = 0; in intel_hpd_cancel_work()
768 dev_priv->display.hotplug.retry_bits = 0; in intel_hpd_cancel_work()
772 cancel_work_sync(&dev_priv->display.hotplug.dig_port_work); in intel_hpd_cancel_work()
773 cancel_delayed_work_sync(&dev_priv->display.hotplug.hotplug_work); in intel_hpd_cancel_work()
774 cancel_work_sync(&dev_priv->display.hotplug.poll_init_work); in intel_hpd_cancel_work()
775 cancel_delayed_work_sync(&dev_priv->display.hotplug.reenable_work); in intel_hpd_cancel_work()
786 if (dev_priv->display.hotplug.stats[pin].state == HPD_ENABLED) { in intel_hpd_disable()
787 dev_priv->display.hotplug.stats[pin].state = HPD_DISABLED; in intel_hpd_disable()
801 dev_priv->display.hotplug.stats[pin].state = HPD_ENABLED; in intel_hpd_enable()
808 struct intel_hotplug *hotplug = &dev_priv->display.hotplug; in i915_hpd_storm_ctl_show()
814 flush_work(&dev_priv->display.hotplug.dig_port_work); in i915_hpd_storm_ctl_show()
815 flush_delayed_work(&dev_priv->display.hotplug.hotplug_work); in i915_hpd_storm_ctl_show()
830 struct intel_hotplug *hotplug = &dev_priv->display.hotplug; in i915_hpd_storm_ctl_write()
869 flush_delayed_work(&dev_priv->display.hotplug.reenable_work); in i915_hpd_storm_ctl_write()
893 str_yes_no(dev_priv->display.hotplug.hpd_short_storm_enabled)); in i915_hpd_short_storm_ctl_show()
911 struct intel_hotplug *hotplug = &dev_priv->display.hotplug; in i915_hpd_short_storm_ctl_write()
947 flush_delayed_work(&dev_priv->display.hotplug.reenable_work); in i915_hpd_short_storm_ctl_write()
970 &i915->display.hotplug.ignore_long_hpd); in intel_hpd_debugfs_register()