Lines Matching full:display
34 * Simply put, hotplug occurs when a display is connected to or disconnected
36 * Display Port short pulses and MST devices involved, complicating matters.
47 * further processing to appropriate bottom halves (Display Port specific and
50 * The Display Port work function i915_digport_work_func() calls into
70 * seen when display port sink is connected, hence on platforms whose DP
73 * this is specific to DP sinks handled by this routine and any other display
122 * stored in @dev_priv->display.hotplug.hpd_storm_threshold which defaults to
128 * &dev_priv->display.hotplug.hpd_storm_threshold. However, some older systems also
143 struct intel_hotplug *hpd = &dev_priv->display.hotplug; in intel_hpd_irq_storm_detect()
151 (!long_hpd && !dev_priv->display.hotplug.hpd_short_storm_enabled)) in intel_hpd_irq_storm_detect()
194 dev_priv->display.hotplug.stats[pin].state != HPD_MARK_DISABLED) in intel_hpd_irq_storm_switch_to_polling()
202 dev_priv->display.hotplug.stats[pin].state = HPD_DISABLED; in intel_hpd_irq_storm_switch_to_polling()
212 mod_delayed_work(system_wq, &dev_priv->display.hotplug.reenable_work, in intel_hpd_irq_storm_switch_to_polling()
221 display.hotplug.reenable_work.work); in intel_hpd_irq_storm_reenable_work()
236 dev_priv->display.hotplug.stats[pin].state != HPD_DISABLED) in intel_hpd_irq_storm_reenable_work()
248 if (dev_priv->display.hotplug.stats[pin].state == HPD_DISABLED) in intel_hpd_irq_storm_reenable_work()
249 dev_priv->display.hotplug.stats[pin].state = HPD_ENABLED; in intel_hpd_irq_storm_reenable_work()
300 container_of(work, struct drm_i915_private, display.hotplug.dig_port_work); in i915_digport_work_func()
306 long_port_mask = dev_priv->display.hotplug.long_port_mask; in i915_digport_work_func()
307 dev_priv->display.hotplug.long_port_mask = 0; in i915_digport_work_func()
308 short_port_mask = dev_priv->display.hotplug.short_port_mask; in i915_digport_work_func()
309 dev_priv->display.hotplug.short_port_mask = 0; in i915_digport_work_func()
338 dev_priv->display.hotplug.event_bits |= old_bits; in i915_digport_work_func()
340 queue_delayed_work(system_wq, &dev_priv->display.hotplug.hotplug_work, 0); in i915_digport_work_func()
356 i915->display.hotplug.short_port_mask |= BIT(dig_port->base.port); in intel_hpd_trigger_irq()
359 queue_work(i915->display.hotplug.dp_wq, &i915->display.hotplug.dig_port_work); in intel_hpd_trigger_irq()
369 display.hotplug.hotplug_work.work); in i915_hotplug_work_func()
382 hpd_event_bits = dev_priv->display.hotplug.event_bits; in i915_hotplug_work_func()
383 dev_priv->display.hotplug.event_bits = 0; in i915_hotplug_work_func()
384 hpd_retry_bits = dev_priv->display.hotplug.retry_bits; in i915_hotplug_work_func()
385 dev_priv->display.hotplug.retry_bits = 0; in i915_hotplug_work_func()
438 dev_priv->display.hotplug.retry_bits |= retry; in i915_hotplug_work_func()
441 mod_delayed_work(system_wq, &dev_priv->display.hotplug.hotplug_work, in i915_hotplug_work_func()
505 dev_priv->display.hotplug.long_port_mask |= BIT(port); in intel_hpd_irq_handler()
508 dev_priv->display.hotplug.short_port_mask |= BIT(port); in intel_hpd_irq_handler()
519 if (dev_priv->display.hotplug.stats[pin].state == HPD_DISABLED) { in intel_hpd_irq_handler()
532 if (dev_priv->display.hotplug.stats[pin].state != HPD_ENABLED) in intel_hpd_irq_handler()
543 dev_priv->display.hotplug.event_bits |= BIT(pin); in intel_hpd_irq_handler()
549 dev_priv->display.hotplug.event_bits &= ~BIT(pin); in intel_hpd_irq_handler()
570 queue_work(dev_priv->display.hotplug.dp_wq, &dev_priv->display.hotplug.dig_port_work); in intel_hpd_irq_handler()
572 queue_delayed_work(system_wq, &dev_priv->display.hotplug.hotplug_work, 0); in intel_hpd_irq_handler()
597 dev_priv->display.hotplug.stats[i].count = 0; in intel_hpd_init()
598 dev_priv->display.hotplug.stats[i].state = HPD_ENABLED; in intel_hpd_init()
614 display.hotplug.poll_init_work); in i915_hpd_poll_init_work()
622 enabled = READ_ONCE(dev_priv->display.hotplug.poll_enabled); in i915_hpd_poll_init_work()
675 WRITE_ONCE(dev_priv->display.hotplug.poll_enabled, true); in intel_hpd_poll_enable()
683 schedule_work(&dev_priv->display.hotplug.poll_init_work); in intel_hpd_poll_enable()
710 WRITE_ONCE(dev_priv->display.hotplug.poll_enabled, false); in intel_hpd_poll_disable()
711 schedule_work(&dev_priv->display.hotplug.poll_init_work); in intel_hpd_poll_disable()
716 INIT_DELAYED_WORK(&dev_priv->display.hotplug.hotplug_work, in intel_hpd_init_work()
718 INIT_WORK(&dev_priv->display.hotplug.dig_port_work, i915_digport_work_func); in intel_hpd_init_work()
719 INIT_WORK(&dev_priv->display.hotplug.poll_init_work, i915_hpd_poll_init_work); in intel_hpd_init_work()
720 INIT_DELAYED_WORK(&dev_priv->display.hotplug.reenable_work, in intel_hpd_init_work()
731 dev_priv->display.hotplug.long_port_mask = 0; in intel_hpd_cancel_work()
732 dev_priv->display.hotplug.short_port_mask = 0; in intel_hpd_cancel_work()
733 dev_priv->display.hotplug.event_bits = 0; in intel_hpd_cancel_work()
734 dev_priv->display.hotplug.retry_bits = 0; in intel_hpd_cancel_work()
738 cancel_work_sync(&dev_priv->display.hotplug.dig_port_work); in intel_hpd_cancel_work()
739 cancel_delayed_work_sync(&dev_priv->display.hotplug.hotplug_work); in intel_hpd_cancel_work()
740 cancel_work_sync(&dev_priv->display.hotplug.poll_init_work); in intel_hpd_cancel_work()
741 cancel_delayed_work_sync(&dev_priv->display.hotplug.reenable_work); in intel_hpd_cancel_work()
752 if (dev_priv->display.hotplug.stats[pin].state == HPD_ENABLED) { in intel_hpd_disable()
753 dev_priv->display.hotplug.stats[pin].state = HPD_DISABLED; in intel_hpd_disable()
767 dev_priv->display.hotplug.stats[pin].state = HPD_ENABLED; in intel_hpd_enable()