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
250 * struct irq_affinity_notify - context for notification of IRQ affinity changes
251 * @irq: Interrupt to which notification applies
272 * struct irq_affinity - Description for automatic irq affinity assignements
273 * @pre_vectors: Don't apply affinity to @pre_vectors at beginning of
274 * the MSI(-X) vector space
275 * @post_vectors: Don't apply affinity to @post_vectors at end of
276 * the MSI(-X) vector space
277 * @nr_sets: The number of interrupt sets for which affinity
279 * @set_size: Array holding the size of each interrupt set
281 * of interrupt sets
295 * struct irq_affinity_desc - Interrupt affinity descriptor
296 * @mask: cpumask to hold the affinity assignment
297 * @is_managed: 1 if the interrupt is managed internally
318 * irq_update_affinity_hint - Update the affinity hint
319 * @irq: Interrupt to update
322 * Updates the affinity hint, but does not change the affinity of the interrupt.
331 * irq_set_affinity_and_hint - Update the affinity hint and apply the provided
332 * cpumask to the interrupt
333 * @irq: Interrupt to update
336 * Updates the affinity hint and if @m is not NULL it applies it as the
337 * affinity of that interrupt.
355 struct irq_affinity_desc *affinity);
370 return -EINVAL; in irq_set_affinity()
388 return -EINVAL; in irq_update_affinity_hint()
394 return -EINVAL; in irq_set_affinity_and_hint()
400 return -EINVAL; in irq_set_affinity_hint()
404 struct irq_affinity_desc *affinity) in irq_update_affinity_desc() argument
406 return -EINVAL; in irq_update_affinity_desc()
434 * and which is the only irq-context user of a lock,
435 * that it's safe to take the lock in the irq-disabled
498 IRQCHIP_STATE_PENDING, /* Is interrupt pending? */
499 IRQCHIP_STATE_ACTIVE, /* Is interrupt in progress? */
500 IRQCHIP_STATE_MASKED, /* Is interrupt masked? */
615 /* Tasklets --- multithreaded analogue of BHs.
689 return !test_and_set_bit(TASKLET_STATE_RUN, &(t)->state); in tasklet_trylock()
707 if (!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) in tasklet_schedule()
715 if (!test_and_set_bit(TASKLET_STATE_SCHED, &t->state)) in tasklet_hi_schedule()
721 atomic_inc(&t->count); in tasklet_disable_nosync()
746 atomic_dec(&t->count); in tasklet_enable()
766 * 1. clear and/or mask the device's internal interrupt.
769 * 4. enable the device and cause it to trigger an interrupt.
770 * 5. wait for the device to interrupt, using non-intrusive polling or a delay.
772 * 7. service the device to clear its pending interrupt.