Lines Matching full:hotplug

184 	struct i915_hotplug *hpd = &dev_priv->hotplug;  in intel_hpd_init_pins()
318 /* For display hotplug interrupt */
336 * i915_hotplug_interrupt_update - update hotplug interrupt enable
1207 * hotplug detection results from several registers.
1232 "hotplug event received, stat 0x%08x, dig 0x%08x, pins 0x%08x, long 0x%08x\n", in intel_get_hpd_pins()
1244 if (dev_priv->hotplug.stats[encoder->hpd_pin].state == HPD_ENABLED) in intel_hpd_enabled_irqs()
1266 u32 hotplug = 0; in intel_hpd_hotplug_enables() local
1269 hotplug |= hotplug_enables(i915, encoder->hpd_pin); in intel_hpd_hotplug_enables()
1271 return hotplug; in intel_hpd_hotplug_enables()
1575 * bits can itself generate a new hotplug interrupt :( in i9xx_hpd_irq_ack()
1609 dev_priv->hotplug.hpd, in i9xx_hpd_irq_handler()
1794 * unless we touch the hotplug register, even if hotplug_trigger is in ibx_hpd_irq_handler()
1813 dev_priv->hotplug.pch_hpd, in ibx_hpd_irq_handler()
1958 dev_priv->hotplug.pch_hpd, in icp_irq_handler()
1970 dev_priv->hotplug.pch_hpd, in icp_irq_handler()
1996 dev_priv->hotplug.pch_hpd, in spt_irq_handler()
2008 dev_priv->hotplug.pch_hpd, in spt_irq_handler()
2029 dev_priv->hotplug.hpd, in ilk_hpd_irq_handler()
2076 /* should clear PCH hotplug event before clear CPU irq */ in ilk_display_irq_handler()
2132 /* clear PCH hotplug event before clear CPU irq */ in ivb_display_irq_handler()
2225 dev_priv->hotplug.hpd, in bxt_hpd_irq_handler()
2245 dev_priv->hotplug.hpd, in gen11_hpd_irq_handler()
2257 dev_priv->hotplug.hpd, in gen11_hpd_irq_handler()
3276 u32 hotplug; in ibx_hpd_detection_setup() local
3279 * Enable digital hotplug on the PCH, and configure the DP short pulse in ibx_hpd_detection_setup()
3283 hotplug = intel_uncore_read(&dev_priv->uncore, PCH_PORT_HOTPLUG); in ibx_hpd_detection_setup()
3284 hotplug &= ~(PORTA_HOTPLUG_ENABLE | in ibx_hpd_detection_setup()
3291 hotplug |= intel_hpd_hotplug_enables(dev_priv, ibx_hotplug_enables); in ibx_hpd_detection_setup()
3292 intel_uncore_write(&dev_priv->uncore, PCH_PORT_HOTPLUG, hotplug); in ibx_hpd_detection_setup()
3299 enabled_irqs = intel_hpd_enabled_irqs(dev_priv, dev_priv->hotplug.pch_hpd); in ibx_hpd_irq_setup()
3300 hotplug_irqs = intel_hpd_hotplug_irqs(dev_priv, dev_priv->hotplug.pch_hpd); in ibx_hpd_irq_setup()
3339 u32 hotplug; in icp_ddi_hpd_detection_setup() local
3341 hotplug = intel_uncore_read(&dev_priv->uncore, SHOTPLUG_CTL_DDI); in icp_ddi_hpd_detection_setup()
3342 hotplug &= ~(SHOTPLUG_CTL_DDI_HPD_ENABLE(HPD_PORT_A) | in icp_ddi_hpd_detection_setup()
3346 hotplug |= intel_hpd_hotplug_enables(dev_priv, icp_ddi_hotplug_enables); in icp_ddi_hpd_detection_setup()
3347 intel_uncore_write(&dev_priv->uncore, SHOTPLUG_CTL_DDI, hotplug); in icp_ddi_hpd_detection_setup()
3352 u32 hotplug; in icp_tc_hpd_detection_setup() local
3354 hotplug = intel_uncore_read(&dev_priv->uncore, SHOTPLUG_CTL_TC); in icp_tc_hpd_detection_setup()
3355 hotplug &= ~(ICP_TC_HPD_ENABLE(HPD_PORT_TC1) | in icp_tc_hpd_detection_setup()
3361 hotplug |= intel_hpd_hotplug_enables(dev_priv, icp_tc_hotplug_enables); in icp_tc_hpd_detection_setup()
3362 intel_uncore_write(&dev_priv->uncore, SHOTPLUG_CTL_TC, hotplug); in icp_tc_hpd_detection_setup()
3369 enabled_irqs = intel_hpd_enabled_irqs(dev_priv, dev_priv->hotplug.pch_hpd); in icp_hpd_irq_setup()
3370 hotplug_irqs = intel_hpd_hotplug_irqs(dev_priv, dev_priv->hotplug.pch_hpd); in icp_hpd_irq_setup()
3413 u32 hotplug; in gen11_tc_hpd_detection_setup() local
3415 hotplug = intel_uncore_read(&dev_priv->uncore, GEN11_TC_HOTPLUG_CTL); in gen11_tc_hpd_detection_setup()
3416 hotplug &= ~(GEN11_HOTPLUG_CTL_ENABLE(HPD_PORT_TC1) | in gen11_tc_hpd_detection_setup()
3422 hotplug |= intel_hpd_hotplug_enables(dev_priv, gen11_hotplug_enables); in gen11_tc_hpd_detection_setup()
3423 intel_uncore_write(&dev_priv->uncore, GEN11_TC_HOTPLUG_CTL, hotplug); in gen11_tc_hpd_detection_setup()
3428 u32 hotplug; in gen11_tbt_hpd_detection_setup() local
3430 hotplug = intel_uncore_read(&dev_priv->uncore, GEN11_TBT_HOTPLUG_CTL); in gen11_tbt_hpd_detection_setup()
3431 hotplug &= ~(GEN11_HOTPLUG_CTL_ENABLE(HPD_PORT_TC1) | in gen11_tbt_hpd_detection_setup()
3437 hotplug |= intel_hpd_hotplug_enables(dev_priv, gen11_hotplug_enables); in gen11_tbt_hpd_detection_setup()
3438 intel_uncore_write(&dev_priv->uncore, GEN11_TBT_HOTPLUG_CTL, hotplug); in gen11_tbt_hpd_detection_setup()
3446 enabled_irqs = intel_hpd_enabled_irqs(dev_priv, dev_priv->hotplug.hpd); in gen11_hpd_irq_setup()
3447 hotplug_irqs = intel_hpd_hotplug_irqs(dev_priv, dev_priv->hotplug.hpd); in gen11_hpd_irq_setup()
3492 u32 val, hotplug; in spt_hpd_detection_setup() local
3502 /* Enable digital hotplug on the PCH */ in spt_hpd_detection_setup()
3503 hotplug = intel_uncore_read(&dev_priv->uncore, PCH_PORT_HOTPLUG); in spt_hpd_detection_setup()
3504 hotplug &= ~(PORTA_HOTPLUG_ENABLE | in spt_hpd_detection_setup()
3508 hotplug |= intel_hpd_hotplug_enables(dev_priv, spt_hotplug_enables); in spt_hpd_detection_setup()
3509 intel_uncore_write(&dev_priv->uncore, PCH_PORT_HOTPLUG, hotplug); in spt_hpd_detection_setup()
3511 hotplug = intel_uncore_read(&dev_priv->uncore, PCH_PORT_HOTPLUG2); in spt_hpd_detection_setup()
3512 hotplug &= ~PORTE_HOTPLUG_ENABLE; in spt_hpd_detection_setup()
3513 hotplug |= intel_hpd_hotplug_enables(dev_priv, spt_hotplug2_enables); in spt_hpd_detection_setup()
3514 intel_uncore_write(&dev_priv->uncore, PCH_PORT_HOTPLUG2, hotplug); in spt_hpd_detection_setup()
3524 enabled_irqs = intel_hpd_enabled_irqs(dev_priv, dev_priv->hotplug.pch_hpd); in spt_hpd_irq_setup()
3525 hotplug_irqs = intel_hpd_hotplug_irqs(dev_priv, dev_priv->hotplug.pch_hpd); in spt_hpd_irq_setup()
3546 u32 hotplug; in ilk_hpd_detection_setup() local
3549 * Enable digital hotplug on the CPU, and configure the DP short pulse in ilk_hpd_detection_setup()
3553 hotplug = intel_uncore_read(&dev_priv->uncore, DIGITAL_PORT_HOTPLUG_CNTRL); in ilk_hpd_detection_setup()
3554 hotplug &= ~(DIGITAL_PORTA_HOTPLUG_ENABLE | in ilk_hpd_detection_setup()
3556 hotplug |= intel_hpd_hotplug_enables(dev_priv, ilk_hotplug_enables); in ilk_hpd_detection_setup()
3557 intel_uncore_write(&dev_priv->uncore, DIGITAL_PORT_HOTPLUG_CNTRL, hotplug); in ilk_hpd_detection_setup()
3564 enabled_irqs = intel_hpd_enabled_irqs(dev_priv, dev_priv->hotplug.hpd); in ilk_hpd_irq_setup()
3565 hotplug_irqs = intel_hpd_hotplug_irqs(dev_priv, dev_priv->hotplug.hpd); in ilk_hpd_irq_setup()
3580 u32 hotplug; in bxt_hotplug_enables() local
3584 hotplug = PORTA_HOTPLUG_ENABLE; in bxt_hotplug_enables()
3586 hotplug |= BXT_DDIA_HPD_INVERT; in bxt_hotplug_enables()
3587 return hotplug; in bxt_hotplug_enables()
3589 hotplug = PORTB_HOTPLUG_ENABLE; in bxt_hotplug_enables()
3591 hotplug |= BXT_DDIB_HPD_INVERT; in bxt_hotplug_enables()
3592 return hotplug; in bxt_hotplug_enables()
3594 hotplug = PORTC_HOTPLUG_ENABLE; in bxt_hotplug_enables()
3596 hotplug |= BXT_DDIC_HPD_INVERT; in bxt_hotplug_enables()
3597 return hotplug; in bxt_hotplug_enables()
3605 u32 hotplug; in bxt_hpd_detection_setup() local
3607 hotplug = intel_uncore_read(&dev_priv->uncore, PCH_PORT_HOTPLUG); in bxt_hpd_detection_setup()
3608 hotplug &= ~(PORTA_HOTPLUG_ENABLE | in bxt_hpd_detection_setup()
3614 hotplug |= intel_hpd_hotplug_enables(dev_priv, bxt_hotplug_enables); in bxt_hpd_detection_setup()
3615 intel_uncore_write(&dev_priv->uncore, PCH_PORT_HOTPLUG, hotplug); in bxt_hpd_detection_setup()
3622 enabled_irqs = intel_hpd_enabled_irqs(dev_priv, dev_priv->hotplug.hpd); in bxt_hpd_irq_setup()
3623 hotplug_irqs = intel_hpd_hotplug_irqs(dev_priv, dev_priv->hotplug.hpd); in bxt_hpd_irq_setup()
4256 /* Note HDMI and DP share hotplug bits */ in i915_hpd_irq_setup()
4260 to generate a spurious hotplug event about three in i915_hpd_irq_setup()
4373 dev_priv->hotplug.hpd_storm_threshold = HPD_STORM_DEFAULT_THRESHOLD; in intel_irq_init()
4380 dev_priv->hotplug.hpd_short_storm_enabled = !HAS_DP_MST(dev_priv); in intel_irq_init()
4494 * This function enables the hardware interrupt handling, but leaves the hotplug
4498 * but don't want to deal with the hassle of concurrent probe and hotplug
4533 * This stops interrupt and hotplug handling and unregisters and frees all