Lines Matching defs: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)
723 if (events & PCI_EXP_SLTSTA_PFD) {
730 * Ignore Link Down/Up events caused by Downstream Port Containment
733 if ((events & PCI_EXP_SLTSTA_DLLSC) && pci_dpc_recovered(pdev) &&
735 events &= ~PCI_EXP_SLTSTA_DLLSC;
741 * or Data Link Layer State Changed events.
744 if (events & DISABLE_SLOT)
746 else if (events & (PCI_EXP_SLTSTA_PDC | PCI_EXP_SLTSTA_DLLSC))
747 pciehp_handle_presence_or_link_change(ctrl, events);
765 /* poll for interrupt events or user requests */
795 * Always enable link events: thus link-up and link-down shall
853 * enabled events is detected). Same goes with Link Layer State
893 * events after.
995 * We assume no Thunderbolt controllers support Command Complete events,