Home
last modified time | relevance | path

Searched refs:irq (Results 1 – 25 of 3300) sorted by relevance

12345678910>>...132

/drivers/irqchip/
DMakefile4 obj-$(CONFIG_AL_FIC) += irq-al-fic.o
5 obj-$(CONFIG_ALPINE_MSI) += irq-alpine-msi.o
6 obj-$(CONFIG_ATH79) += irq-ath79-cpu.o
7 obj-$(CONFIG_ATH79) += irq-ath79-misc.o
8 obj-$(CONFIG_ARCH_BCM2835) += irq-bcm2835.o
9 obj-$(CONFIG_ARCH_BCM2835) += irq-bcm2836.o
10 obj-$(CONFIG_ARCH_ACTIONS) += irq-owl-sirq.o
11 obj-$(CONFIG_DAVINCI_AINTC) += irq-davinci-aintc.o
12 obj-$(CONFIG_DAVINCI_CP_INTC) += irq-davinci-cp-intc.o
14 obj-$(CONFIG_FARADAY_FTINTC010) += irq-ftintc010.o
[all …]
Dirq-i8259.c70 unsigned int mask, irq = d->irq - I8259A_IRQ_BASE; in disable_8259A_irq() local
73 mask = 1 << irq; in disable_8259A_irq()
76 if (irq & 8) in disable_8259A_irq()
85 unsigned int mask, irq = d->irq - I8259A_IRQ_BASE; in enable_8259A_irq() local
88 mask = ~(1 << irq); in enable_8259A_irq()
91 if (irq & 8) in enable_8259A_irq()
98 void make_8259A_irq(unsigned int irq) in make_8259A_irq() argument
100 disable_irq_nosync(irq); in make_8259A_irq()
101 irq_set_chip_and_handler(irq, &i8259A_chip, handle_level_irq); in make_8259A_irq()
102 enable_irq(irq); in make_8259A_irq()
[all …]
/drivers/misc/ocxl/
Dafu_irq.c34 struct afu_irq *irq; in ocxl_irq_set_handler() local
38 irq = idr_find(&ctx->irq_idr, irq_id); in ocxl_irq_set_handler()
39 if (!irq) { in ocxl_irq_set_handler()
44 irq->handler = handler; in ocxl_irq_set_handler()
45 irq->private = private; in ocxl_irq_set_handler()
46 irq->free_private = free_private; in ocxl_irq_set_handler()
59 struct afu_irq *irq = (struct afu_irq *) data; in afu_irq_handler() local
63 if (irq->handler) in afu_irq_handler()
64 return irq->handler(irq->private); in afu_irq_handler()
69 static int setup_afu_irq(struct ocxl_context *ctx, struct afu_irq *irq) in setup_afu_irq() argument
[all …]
/drivers/acpi/
Dpci_link.c69 struct acpi_pci_link_irq irq; member
97 struct acpi_resource_irq *p = &resource->data.irq; in acpi_pci_link_check_possible()
112 link->irq.possible[i] = p->interrupts[i]; in acpi_pci_link_check_possible()
113 link->irq.possible_count++; in acpi_pci_link_check_possible()
115 link->irq.triggering = p->triggering; in acpi_pci_link_check_possible()
116 link->irq.polarity = p->polarity; in acpi_pci_link_check_possible()
117 link->irq.resource_type = ACPI_RESOURCE_TYPE_IRQ; in acpi_pci_link_check_possible()
138 link->irq.possible[i] = p->interrupts[i]; in acpi_pci_link_check_possible()
139 link->irq.possible_count++; in acpi_pci_link_check_possible()
141 link->irq.triggering = p->triggering; in acpi_pci_link_check_possible()
[all …]
/drivers/xen/events/
Devents_base.c109 unsigned irq; member
173 static bool (*pirq_needs_eoi)(unsigned irq);
212 static int set_evtchn_to_irq(evtchn_port_t evtchn, unsigned int irq) in set_evtchn_to_irq() argument
226 if (irq == -1) in set_evtchn_to_irq()
243 WRITE_ONCE(evtchn_to_irq[row][col], irq); in set_evtchn_to_irq()
257 static struct irq_info *info_for_irq(unsigned irq) in info_for_irq() argument
259 if (irq < nr_legacy_irqs()) in info_for_irq()
260 return legacy_info_ptrs[irq]; in info_for_irq()
262 return irq_get_chip_data(irq); in info_for_irq()
265 static void set_info_for_irq(unsigned int irq, struct irq_info *info) in set_info_for_irq() argument
[all …]
/drivers/gpu/drm/i915/gvt/
Dinterrupt.c45 #define get_event_virt_handler(irq, e) (irq->events[e].v_handler) argument
46 #define get_irq_info(irq, e) (irq->events[e].info) argument
48 #define irq_to_gvt(irq) \ argument
49 container_of(irq, struct intel_gvt, irq)
150 struct intel_gvt_irq *irq = &gvt->irq; in regbase_to_irq_info() local
153 for_each_set_bit(i, irq->irq_info_bitmap, INTEL_GVT_IRQ_INFO_MAX) { in regbase_to_irq_info()
154 if (i915_mmio_reg_offset(irq->info[i]->reg_base) == reg) in regbase_to_irq_info()
155 return irq->info[i]; in regbase_to_irq_info()
179 struct intel_gvt_irq_ops *ops = gvt->irq.ops; in intel_vgpu_reg_imr_handler()
209 struct intel_gvt_irq_ops *ops = gvt->irq.ops; in intel_vgpu_reg_master_irq_handler()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Dpci_irq.c141 static void mlx5_system_free_irq(struct mlx5_irq *irq) in mlx5_system_free_irq() argument
147 irq_set_affinity_hint(irq->irqn, NULL); in mlx5_system_free_irq()
148 free_irq(irq->irqn, &irq->nh); in mlx5_system_free_irq()
151 static void irq_release(struct mlx5_irq *irq) in irq_release() argument
153 struct mlx5_irq_pool *pool = irq->pool; in irq_release()
155 xa_erase(&pool->irqs, irq->index); in irq_release()
156 mlx5_system_free_irq(irq); in irq_release()
157 free_cpumask_var(irq->mask); in irq_release()
158 kfree(irq); in irq_release()
161 static void irq_put(struct mlx5_irq *irq) in irq_put() argument
[all …]
/drivers/gpu/drm/radeon/
Dradeon_irq_kms.c54 static irqreturn_t radeon_driver_irq_handler_kms(int irq, void *arg) in radeon_driver_irq_handler_kms() argument
127 spin_lock_irqsave(&rdev->irq.lock, irqflags); in radeon_driver_irq_preinstall_kms()
130 atomic_set(&rdev->irq.ring_int[i], 0); in radeon_driver_irq_preinstall_kms()
131 rdev->irq.dpm_thermal = false; in radeon_driver_irq_preinstall_kms()
133 rdev->irq.hpd[i] = false; in radeon_driver_irq_preinstall_kms()
135 rdev->irq.crtc_vblank_int[i] = false; in radeon_driver_irq_preinstall_kms()
136 atomic_set(&rdev->irq.pflip[i], 0); in radeon_driver_irq_preinstall_kms()
137 rdev->irq.afmt[i] = false; in radeon_driver_irq_preinstall_kms()
140 spin_unlock_irqrestore(&rdev->irq.lock, irqflags); in radeon_driver_irq_preinstall_kms()
181 spin_lock_irqsave(&rdev->irq.lock, irqflags); in radeon_driver_irq_uninstall_kms()
[all …]
/drivers/parisc/
Dgsc.c35 int irq = txn_alloc_irq(GSC_EIM_WIDTH); in gsc_alloc_irq() local
36 if (irq < 0) { in gsc_alloc_irq()
38 return irq; in gsc_alloc_irq()
41 i->txn_addr = txn_alloc_addr(irq); in gsc_alloc_irq()
42 i->txn_data = txn_alloc_data(irq); in gsc_alloc_irq()
43 i->irq = irq; in gsc_alloc_irq()
45 return irq; in gsc_alloc_irq()
48 int gsc_claim_irq(struct gsc_irq *i, int irq) in gsc_claim_irq() argument
50 int c = irq; in gsc_claim_irq()
52 irq += CPU_IRQ_BASE; /* virtualize the IRQ first */ in gsc_claim_irq()
[all …]
Dasp.c32 int irq; in asp_choose_irq() local
35 case 0x71: irq = 9; break; /* SCSI */ in asp_choose_irq()
36 case 0x72: irq = 8; break; /* LAN */ in asp_choose_irq()
37 case 0x73: irq = 1; break; /* HIL */ in asp_choose_irq()
38 case 0x74: irq = 7; break; /* Centronics */ in asp_choose_irq()
39 case 0x75: irq = (dev->hw_path == 4) ? 5 : 6; break; /* RS232 */ in asp_choose_irq()
40 case 0x76: irq = 10; break; /* EISA BA */ in asp_choose_irq()
41 case 0x77: irq = 11; break; /* Graphics1 */ in asp_choose_irq()
42 case 0x7a: irq = 13; break; /* Audio (Bushmaster) */ in asp_choose_irq()
43 case 0x7b: irq = 13; break; /* Audio (Scorpio) */ in asp_choose_irq()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_irq.c151 spin_lock_irqsave(&adev->irq.lock, irqflags); in amdgpu_irq_disable_all()
153 if (!adev->irq.client[i].sources) in amdgpu_irq_disable_all()
157 struct amdgpu_irq_src *src = adev->irq.client[i].sources[j]; in amdgpu_irq_disable_all()
172 spin_unlock_irqrestore(&adev->irq.lock, irqflags); in amdgpu_irq_disable_all()
186 static irqreturn_t amdgpu_irq_handler(int irq, void *arg) in amdgpu_irq_handler() argument
192 ret = amdgpu_ih_process(adev, &adev->irq.ih); in amdgpu_irq_handler()
224 irq.ih1_work); in amdgpu_irq_handle_ih1()
226 amdgpu_ih_process(adev, &adev->irq.ih1); in amdgpu_irq_handle_ih1()
239 irq.ih2_work); in amdgpu_irq_handle_ih2()
241 amdgpu_ih_process(adev, &adev->irq.ih2); in amdgpu_irq_handle_ih2()
[all …]
/drivers/mfd/
Dda9052-irq.c176 static int da9052_map_irq(struct da9052 *da9052, int irq) in da9052_map_irq() argument
178 return regmap_irq_get_virq(da9052->irq_data, irq); in da9052_map_irq()
181 int da9052_enable_irq(struct da9052 *da9052, int irq) in da9052_enable_irq() argument
183 irq = da9052_map_irq(da9052, irq); in da9052_enable_irq()
184 if (irq < 0) in da9052_enable_irq()
185 return irq; in da9052_enable_irq()
187 enable_irq(irq); in da9052_enable_irq()
193 int da9052_disable_irq(struct da9052 *da9052, int irq) in da9052_disable_irq() argument
195 irq = da9052_map_irq(da9052, irq); in da9052_disable_irq()
196 if (irq < 0) in da9052_disable_irq()
[all …]
Dpcf50633-irq.c19 int pcf50633_register_irq(struct pcf50633 *pcf, int irq, in pcf50633_register_irq() argument
22 if (irq < 0 || irq >= PCF50633_NUM_IRQ || !handler) in pcf50633_register_irq()
25 if (WARN_ON(pcf->irq_handler[irq].handler)) in pcf50633_register_irq()
29 pcf->irq_handler[irq].handler = handler; in pcf50633_register_irq()
30 pcf->irq_handler[irq].data = data; in pcf50633_register_irq()
37 int pcf50633_free_irq(struct pcf50633 *pcf, int irq) in pcf50633_free_irq() argument
39 if (irq < 0 || irq >= PCF50633_NUM_IRQ) in pcf50633_free_irq()
43 pcf->irq_handler[irq].handler = NULL; in pcf50633_free_irq()
50 static int __pcf50633_irq_mask_set(struct pcf50633 *pcf, int irq, u8 mask) in __pcf50633_irq_mask_set() argument
55 idx = irq >> 3; in __pcf50633_irq_mask_set()
[all …]
Darizona-irq.c29 static int arizona_map_irq(struct arizona *arizona, int irq) in arizona_map_irq() argument
34 ret = regmap_irq_get_virq(arizona->aod_irq_chip, irq); in arizona_map_irq()
39 return regmap_irq_get_virq(arizona->irq_chip, irq); in arizona_map_irq()
42 int arizona_request_irq(struct arizona *arizona, int irq, char *name, in arizona_request_irq() argument
45 irq = arizona_map_irq(arizona, irq); in arizona_request_irq()
46 if (irq < 0) in arizona_request_irq()
47 return irq; in arizona_request_irq()
49 return request_threaded_irq(irq, NULL, handler, IRQF_ONESHOT, in arizona_request_irq()
54 void arizona_free_irq(struct arizona *arizona, int irq, void *data) in arizona_free_irq() argument
56 irq = arizona_map_irq(arizona, irq); in arizona_free_irq()
[all …]
/drivers/acpi/acpica/
Drsirq.c27 {ACPI_RSC_BITMASK16, ACPI_RS_OFFSET(data.irq.interrupts[0]),
28 AML_OFFSET(irq.irq_mask),
29 ACPI_RS_OFFSET(data.irq.interrupt_count)},
33 {ACPI_RSC_SET8, ACPI_RS_OFFSET(data.irq.triggering),
39 {ACPI_RSC_2BITFLAG, ACPI_RS_OFFSET(data.irq.descriptor_length),
40 AML_OFFSET(irq.descriptor_type),
49 {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.irq.triggering),
50 AML_OFFSET(irq.flags),
53 {ACPI_RSC_1BITFLAG, ACPI_RS_OFFSET(data.irq.polarity),
54 AML_OFFSET(irq.flags),
[all …]
/drivers/ssb/
Ddriver_mipscore.c108 unsigned int irq; in ssb_mips_irq() local
114 for (irq = 1; irq <= 4; irq++) { in ssb_mips_irq()
115 tmp = ((ipsflag & ipsflag_irq_mask[irq]) >> ipsflag_irq_shift[irq]); in ssb_mips_irq()
119 if (irq == 5) { in ssb_mips_irq()
121 irq = 0; in ssb_mips_irq()
124 return irq; in ssb_mips_irq()
127 static void clear_irq(struct ssb_bus *bus, unsigned int irq) in clear_irq() argument
132 if (irq == 0) { in clear_irq()
137 ipsflag_irq_mask[irq]); in clear_irq()
141 static void set_irq(struct ssb_device *dev, unsigned int irq) in set_irq() argument
[all …]
/drivers/sh/intc/
Dchip.c18 unsigned int irq = data->irq; in _intc_enable() local
19 struct intc_desc_int *d = get_intc_desc(irq); in _intc_enable()
30 [_INTC_FN(handle)], irq); in _intc_enable()
33 intc_balancing_enable(irq); in _intc_enable()
43 unsigned int irq = data->irq; in intc_disable() local
44 struct intc_desc_int *d = get_intc_desc(irq); in intc_disable()
49 intc_balancing_disable(irq); in intc_disable()
58 [_INTC_FN(handle)], irq); in intc_disable()
83 unsigned int irq = data->irq; in intc_mask_ack() local
84 struct intc_desc_int *d = get_intc_desc(irq); in intc_mask_ack()
[all …]
Dvirq.c23 unsigned int irq; member
35 void intc_irq_xlate_set(unsigned int irq, intc_enum id, struct intc_desc_int *d) in intc_irq_xlate_set() argument
40 intc_irq_xlate[irq].enum_id = id; in intc_irq_xlate_set()
41 intc_irq_xlate[irq].desc = d; in intc_irq_xlate_set()
45 struct intc_map_entry *intc_irq_xlate_get(unsigned int irq) in intc_irq_xlate_get() argument
47 return intc_irq_xlate + irq; in intc_irq_xlate_get()
54 int irq = -1; in intc_irq_lookup() local
75 irq = ptr - intc_irq_xlate; in intc_irq_lookup()
80 return irq; in intc_irq_lookup()
84 static int add_virq_to_pirq(unsigned int irq, unsigned int virq) in add_virq_to_pirq() argument
[all …]
Dinternals.h33 unsigned int irq; member
91 static inline struct intc_desc_int *get_intc_desc(unsigned int irq) in get_intc_desc() argument
93 struct irq_chip *chip = irq_get_chip(irq); in get_intc_desc()
101 static inline void activate_irq(int irq) in activate_irq() argument
103 irq_modify_status(irq, IRQ_NOREQUEST, IRQ_NOPROBE); in activate_irq()
111 return _a->irq - _b->irq; in intc_handle_int_cmp()
122 unsigned int irq);
127 unsigned int irq);
132 unsigned int irq);
144 void intc_balancing_enable(unsigned int irq);
[all …]
/drivers/gpu/drm/msm/disp/
Dmdp_kms.c13 struct mdp_irq irq; member
23 struct mdp_irq *irq; in update_irq() local
28 list_for_each_entry(irq, &mdp_kms->irq_list, node) in update_irq()
29 irqmask |= irq->irqmask; in update_irq()
56 handler->irq(handler, handler->irqmask & status); in mdp_dispatch_irqs()
79 static void wait_irq(struct mdp_irq *irq, uint32_t irqstatus) in wait_irq() argument
82 container_of(irq, struct mdp_irq_wait, irq); in wait_irq()
90 .irq = { in mdp_irq_wait()
91 .irq = wait_irq, in mdp_irq_wait()
96 mdp_irq_register(mdp_kms, &wait.irq); in mdp_irq_wait()
[all …]
/drivers/base/power/
Dwakeirq.c50 int dev_pm_set_wake_irq(struct device *dev, int irq) in dev_pm_set_wake_irq() argument
55 if (irq < 0) in dev_pm_set_wake_irq()
63 wirq->irq = irq; in dev_pm_set_wake_irq()
98 free_irq(wirq->irq, wirq); in dev_pm_clear_wake_irq()
124 static irqreturn_t handle_threaded_wake_irq(int irq, void *_wirq) in handle_threaded_wake_irq() argument
130 if (irqd_is_wakeup_set(irq_get_irq_data(irq))) { in handle_threaded_wake_irq()
145 static int __dev_pm_set_dedicated_wake_irq(struct device *dev, int irq, unsigned int flag) in __dev_pm_set_dedicated_wake_irq() argument
150 if (irq < 0) in __dev_pm_set_dedicated_wake_irq()
164 wirq->irq = irq; in __dev_pm_set_dedicated_wake_irq()
167 irq_set_status_flags(irq, IRQ_DISABLE_UNLAZY); in __dev_pm_set_dedicated_wake_irq()
[all …]
/drivers/perf/
Darm_pmu_acpi.c93 int cpu, hetid, irq, ret; in arm_spe_acpi_register_device() local
121 irq = acpi_register_gsi(NULL, gsi, ACPI_LEVEL_SENSITIVE, in arm_spe_acpi_register_device()
123 if (irq < 0) { in arm_spe_acpi_register_device()
128 spe_resources[0].start = irq; in arm_spe_acpi_register_device()
143 int irq, cpu, irq_cpu, err; in arm_pmu_acpi_parse_irqs() local
146 irq = arm_pmu_acpi_register_irq(cpu); in arm_pmu_acpi_parse_irqs()
147 if (irq < 0) { in arm_pmu_acpi_parse_irqs()
148 err = irq; in arm_pmu_acpi_parse_irqs()
152 } else if (irq == 0) { in arm_pmu_acpi_parse_irqs()
161 per_cpu(pmu_irqs, cpu) = irq; in arm_pmu_acpi_parse_irqs()
[all …]
/drivers/usb/dwc3/
Dhost.c18 int irq; in dwc3_host_get_irq() local
20 irq = platform_get_irq_byname_optional(dwc3_pdev, "host"); in dwc3_host_get_irq()
21 if (irq > 0) in dwc3_host_get_irq()
24 if (irq == -EPROBE_DEFER) in dwc3_host_get_irq()
27 irq = platform_get_irq_byname_optional(dwc3_pdev, "dwc_usb3"); in dwc3_host_get_irq()
28 if (irq > 0) in dwc3_host_get_irq()
31 if (irq == -EPROBE_DEFER) in dwc3_host_get_irq()
34 irq = platform_get_irq(dwc3_pdev, 0); in dwc3_host_get_irq()
35 if (irq > 0) in dwc3_host_get_irq()
38 if (!irq) in dwc3_host_get_irq()
[all …]
/drivers/video/fbdev/mmp/hw/
Dmmp_ctrl.h636 #define DMA_FRAME_IRQ0_ENA(irq) ((irq)<<31) argument
638 #define DMA_FRAME_IRQ1_ENA(irq) ((irq)<<30) argument
642 #define AXI_BUS_ERROR_IRQ_ENA(irq) ((irq)<<28) argument
644 #define GRA_FRAME_IRQ0_ENA(irq) ((irq)<<27) argument
646 #define GRA_FRAME_IRQ1_ENA(irq) ((irq)<<26) argument
658 #define SLV_IRQ_ENA(irq) ((irq)<<19) argument
660 #define SPI_IRQ_ENA(irq) ((irq)<<18) argument
662 #define PWRDN_IRQ_ENA(irq) ((irq)<<17) argument
664 #define AXI_LATENCY_TOO_LONG_IRQ_ENA(irq) ((irq)<<16) argument
666 #define CLEAN_SPU_IRQ_ISR(irq) (irq) argument
[all …]
/drivers/misc/
Ddummy-irq.c18 static int irq = -1; variable
20 static irqreturn_t dummy_interrupt(int irq, void *dev_id) in dummy_interrupt() argument
26 irq); in dummy_interrupt()
35 if (irq < 0) { in dummy_irq_init()
39 if (request_irq(irq, &dummy_interrupt, IRQF_SHARED, "dummy_irq", &irq)) { in dummy_irq_init()
40 printk(KERN_ERR "dummy-irq: cannot register IRQ %d\n", irq); in dummy_irq_init()
43 printk(KERN_INFO "dummy-irq: registered for IRQ %d\n", irq); in dummy_irq_init()
50 free_irq(irq, &irq); in dummy_irq_exit()
58 module_param_hw(irq, uint, irq, 0444);
59 MODULE_PARM_DESC(irq, "The IRQ to register for");

12345678910>>...132