Lines Matching refs:events
593 u16 status, events = 0;
644 events |= status;
645 if (!events) {
664 ctrl_dbg(ctrl, "pending interrupts %#06x from Slot Status\n", events);
672 if (events & PCI_EXP_SLTSTA_CC) {
677 if (events == PCI_EXP_SLTSTA_CC)
680 events &= ~PCI_EXP_SLTSTA_CC;
684 ctrl_dbg(ctrl, "ignoring hotplug event %#06x\n", events);
688 /* Save pending events for consumption by IRQ thread. */
689 atomic_or(events, &ctrl->pending_events);
698 u32 events;
712 events = atomic_xchg(&ctrl->pending_events, 0);
713 if (!events) {
719 if (events & PCI_EXP_SLTSTA_ABP) {
726 if (events & PCI_EXP_SLTSTA_PFD) {
733 * Ignore Link Down/Up events caused by Downstream Port Containment
736 if ((events & PCI_EXP_SLTSTA_DLLSC) && pci_dpc_recovered(pdev) &&
738 events &= ~PCI_EXP_SLTSTA_DLLSC;
744 * or Data Link Layer State Changed events.
747 if (events & DISABLE_SLOT)
749 else if (events & (PCI_EXP_SLTSTA_PDC | PCI_EXP_SLTSTA_DLLSC))
750 pciehp_handle_presence_or_link_change(ctrl, events);
768 /* poll for interrupt events or user requests */
798 * Always enable link events: thus link-up and link-down shall
854 * enabled events is detected). Same goes with Link Layer State
868 * events after.
970 * We assume no Thunderbolt controllers support Command Complete events,