Lines Matching +full:interrupt +full:- +full:affinity

1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* interrupt.h */
25 * linux/ioport.h to select the interrupt line behaviour. When
26 * requesting an interrupt without specifying a IRQF_TRIGGER, the
43 * IRQF_SHARED - allow sharing the irq among several devices
44 * IRQF_PROBE_SHARED - set by callers when they expect sharing mismatches to occur
45 * IRQF_TIMER - Flag to mark this interrupt as timer interrupt
46 * IRQF_PERCPU - Interrupt is per cpu
47 * IRQF_NOBALANCING - Flag to exclude this interrupt from irq balancing
48 * IRQF_IRQPOLL - Interrupt is used for polling (only the interrupt that is
49 * registered first in a shared interrupt is considered for
51 * IRQF_ONESHOT - Interrupt is not reenabled after the hardirq handler finished.
54 * IRQF_NO_SUSPEND - Do not disable this IRQ during suspend. Does not guarantee
55 * that this interrupt will wake the system from a suspended
56 * state. See Documentation/power/suspend-and-interrupts.rst
57 * IRQF_FORCE_RESUME - Force enable it on resume even if IRQF_NO_SUSPEND is set
58 * IRQF_NO_THREAD - Interrupt cannot be threaded
59 * IRQF_EARLY_RESUME - Resume IRQ early during syscore instead of at device
61 * IRQF_COND_SUSPEND - If the IRQ is shared with a NO_SUSPEND user, execute this
62 * interrupt handler after suspending interrupts. For system
64 * their interrupt handlers.
65 * IRQF_NO_AUTOEN - Don't enable IRQ or NMI automatically when users request it.
68 * IRQF_NO_DEBUG - Exclude from runnaway detection for IPI and similar handlers,
90 * describe the context the interrupt will be run in.
92 * IRQC_IS_HARDIRQ - interrupt runs in hardirq context
93 * IRQC_IS_NESTED - interrupt runs in a nested threaded context
103 * struct irqaction - per interrupt action descriptor
104 * @handler: interrupt handler function
109 * @irq: interrupt number
111 * @thread_fn: interrupt handler function for threaded interrupts
137 * If a (PCI) device interrupt is not connected we set dev->irq to
138 * IRQ_NOTCONNECTED. This causes request_irq() to fail with -ENOTCONN, so we
152 * request_irq - Add a handler for an interrupt line
153 * @irq: The interrupt line to allocate
158 * @name: Name of the device generating this interrupt
161 * This call allocates an interrupt and establishes a handler; see
233 * on hardirq delivery - in practice we dont seem to have such
235 * irqs-off latencies.
268 * struct irq_affinity_notify - context for notification of IRQ affinity changes
269 * @irq: Interrupt to which notification applies
290 * struct irq_affinity - Description for automatic irq affinity assignements
291 * @pre_vectors: Don't apply affinity to @pre_vectors at beginning of
292 * the MSI(-X) vector space
293 * @post_vectors: Don't apply affinity to @post_vectors at end of
294 * the MSI(-X) vector space
295 * @nr_sets: The number of interrupt sets for which affinity
297 * @set_size: Array holding the size of each interrupt set
299 * of interrupt sets
313 * struct irq_affinity_desc - Interrupt affinity descriptor
314 * @mask: cpumask to hold the affinity assignment
315 * @is_managed: 1 if the interrupt is managed internally
334 struct irq_affinity_desc *affinity);
349 return -EINVAL; in irq_set_affinity()
367 return -EINVAL; in irq_set_affinity_hint()
371 struct irq_affinity_desc *affinity) in irq_update_affinity_desc() argument
373 return -EINVAL; in irq_update_affinity_desc()
401 * and which is the only irq-context user of a lock,
402 * that it's safe to take the lock in the irq-disabled
465 IRQCHIP_STATE_PENDING, /* Is interrupt pending? */
466 IRQCHIP_STATE_ACTIVE, /* Is interrupt in progress? */
467 IRQCHIP_STATE_MASKED, /* Is interrupt masked? */
564 /* Tasklets --- multithreaded analogue of BHs.
638 return !test_and_set_bit(TASKLET_STATE_RUN, &(t)->state); in tasklet_trylock()
656 if (!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) in tasklet_schedule()
664 if (!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) in tasklet_hi_schedule()
670 atomic_inc(&t->count); in tasklet_disable_nosync()
695 atomic_dec(&t->count); in tasklet_enable()
715 * 1. clear and/or mask the device's internal interrupt.
718 * 4. enable the device and cause it to trigger an interrupt.
719 * 5. wait for the device to interrupt, using non-intrusive polling or a delay.
721 * 7. service the device to clear its pending interrupt.