Home
last modified time | relevance | path

Searched refs:virq (Results 1 – 25 of 83) sorted by relevance

1234

/arch/powerpc/platforms/ps3/
Dinterrupt.c181 unsigned int *virq) in ps3_virq_setup() argument
193 *virq = irq_create_mapping(NULL, outlet); in ps3_virq_setup()
195 if (!*virq) { in ps3_virq_setup()
203 outlet, cpu, *virq); in ps3_virq_setup()
205 result = irq_set_chip_data(*virq, pd); in ps3_virq_setup()
213 ps3_chip_mask(irq_get_irq_data(*virq)); in ps3_virq_setup()
218 irq_dispose_mapping(*virq); in ps3_virq_setup()
230 static int ps3_virq_destroy(unsigned int virq) in ps3_virq_destroy() argument
232 const struct ps3_private *pd = irq_get_chip_data(virq); in ps3_virq_destroy()
235 __LINE__, pd->ppe_id, pd->thread_id, virq); in ps3_virq_destroy()
[all …]
/arch/powerpc/platforms/cell/
Dspider-pic.c171 static int spider_host_map(struct irq_domain *h, unsigned int virq, in spider_host_map() argument
174 irq_set_chip_data(virq, h->host_data); in spider_host_map()
175 irq_set_chip_and_handler(virq, &spider_pic, handle_level_irq); in spider_host_map()
178 irq_set_irq_type(virq, IRQ_TYPE_NONE); in spider_host_map()
206 unsigned int cs, virq; in spider_irq_cascade() local
210 virq = 0; in spider_irq_cascade()
212 virq = irq_linear_revmap(pic->host, cs); in spider_irq_cascade()
214 if (virq) in spider_irq_cascade()
215 generic_handle_irq(virq); in spider_irq_cascade()
230 unsigned int virq; in spider_find_cascade_and_node() local
[all …]
Daxon_msi.c259 unsigned int virq, rc; in axon_msi_setup_msi_irqs() local
273 virq = irq_create_direct_mapping(msic->irq_domain); in axon_msi_setup_msi_irqs()
274 if (!virq) { in axon_msi_setup_msi_irqs()
279 dev_dbg(&dev->dev, "axon_msi: allocated virq 0x%x\n", virq); in axon_msi_setup_msi_irqs()
281 irq_set_msi_desc(virq, entry); in axon_msi_setup_msi_irqs()
282 msg.data = virq; in axon_msi_setup_msi_irqs()
283 pci_write_msi_msg(virq, &msg); in axon_msi_setup_msi_irqs()
311 static int msic_host_map(struct irq_domain *h, unsigned int virq, in msic_host_map() argument
314 irq_set_chip_data(virq, h->host_data); in msic_host_map()
315 irq_set_chip_and_handler(virq, &msic_irq_chip, handle_simple_irq); in msic_host_map()
[all …]
Dinterrupt.c150 unsigned int virq; in iic_get_irq() local
157 virq = irq_linear_revmap(iic_host, iic_pending_to_hwnum(pending)); in iic_get_irq()
158 if (!virq) in iic_get_irq()
162 return virq; in iic_get_irq()
192 int virq; in iic_request_ipi() local
194 virq = irq_create_mapping(iic_host, iic_msg_to_irq(msg)); in iic_request_ipi()
195 if (!virq) { in iic_request_ipi()
205 if (smp_request_message_ipi(virq, msg)) in iic_request_ipi()
206 irq_dispose_mapping(virq); in iic_request_ipi()
227 static int iic_host_map(struct irq_domain *h, unsigned int virq, in iic_host_map() argument
[all …]
/arch/powerpc/platforms/pasemi/
Dmsi.c85 unsigned int virq; in pasemi_msi_setup_msi_irqs() local
111 virq = irq_create_mapping(msi_mpic->irqhost, hwirq); in pasemi_msi_setup_msi_irqs()
112 if (!virq) { in pasemi_msi_setup_msi_irqs()
124 mpic_set_vector(virq, 0); in pasemi_msi_setup_msi_irqs()
126 irq_set_msi_desc(virq, entry); in pasemi_msi_setup_msi_irqs()
127 irq_set_chip(virq, &mpic_pasemi_msi_chip); in pasemi_msi_setup_msi_irqs()
128 irq_set_irq_type(virq, IRQ_TYPE_EDGE_RISING); in pasemi_msi_setup_msi_irqs()
131 "addr 0x%x\n", virq, hwirq, msg.address_lo); in pasemi_msi_setup_msi_irqs()
137 pci_write_msi_msg(virq, &msg); in pasemi_msi_setup_msi_irqs()
/arch/x86/platform/uv/
Duv_irq.c80 static int uv_domain_alloc(struct irq_domain *domain, unsigned int virq, in uv_domain_alloc() argument
85 struct irq_data *irq_data = irq_domain_get_irq_data(domain, virq); in uv_domain_alloc()
96 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, arg); in uv_domain_alloc()
99 irq_set_status_flags(virq, IRQ_NO_BALANCING); in uv_domain_alloc()
101 irq_set_status_flags(virq, IRQ_MOVE_PCNTXT); in uv_domain_alloc()
105 irq_domain_set_info(domain, virq, virq, &uv_irq_chip, chip_data, in uv_domain_alloc()
114 static void uv_domain_free(struct irq_domain *domain, unsigned int virq, in uv_domain_free() argument
117 struct irq_data *irq_data = irq_domain_get_irq_data(domain, virq); in uv_domain_free()
121 irq_clear_status_flags(virq, IRQ_MOVE_PCNTXT); in uv_domain_free()
122 irq_clear_status_flags(virq, IRQ_NO_BALANCING); in uv_domain_free()
[all …]
/arch/powerpc/platforms/powernv/
Dopal-irqchip.c53 int virq, hwirq = 0; in opal_handle_events() local
65 virq = irq_find_mapping(opal_event_irqchip.domain, in opal_handle_events()
67 if (virq) in opal_handle_events()
68 generic_handle_irq(virq); in opal_handle_events()
220 unsigned int irq, virq; in opal_event_init() local
224 virq = irq_create_mapping(NULL, irq); in opal_event_init()
225 if (!virq) { in opal_event_init()
231 rc = request_irq(virq, opal_interrupt, IRQF_TRIGGER_LOW, in opal_event_init()
234 irq_dispose_mapping(virq); in opal_event_init()
236 rc, virq, irq); in opal_event_init()
[all …]
/arch/powerpc/include/asm/
Dparport.h22 int virq; in parport_pc_find_nonpci_ports() local
30 virq = irq_of_parse_and_map(np, 0); in parport_pc_find_nonpci_ports()
31 if (!virq) in parport_pc_find_nonpci_ports()
34 if (parport_pc_probe_port(io1, io2, virq, autodma, NULL, 0) in parport_pc_find_nonpci_ports()
Dps3.h191 unsigned int *virq);
192 int ps3_irq_plug_destroy(unsigned int virq);
193 int ps3_event_receive_port_setup(enum ps3_cpu_binding cpu, unsigned int *virq);
194 int ps3_event_receive_port_destroy(unsigned int virq);
195 int ps3_send_event_locally(unsigned int virq);
198 unsigned int *virq);
199 int ps3_io_irq_destroy(unsigned int virq);
201 unsigned int *virq);
202 int ps3_vuart_irq_destroy(unsigned int virq);
204 unsigned int class, unsigned int *virq);
[all …]
/arch/powerpc/sysdev/
Dmpic_u3msi.c127 unsigned int virq; in u3msi_setup_msi_irqs() local
157 virq = irq_create_mapping(msi_mpic->irqhost, hwirq); in u3msi_setup_msi_irqs()
158 if (!virq) { in u3msi_setup_msi_irqs()
164 irq_set_msi_desc(virq, entry); in u3msi_setup_msi_irqs()
165 irq_set_chip(virq, &mpic_u3msi_chip); in u3msi_setup_msi_irqs()
166 irq_set_irq_type(virq, IRQ_TYPE_EDGE_RISING); in u3msi_setup_msi_irqs()
169 virq, hwirq, (unsigned long)addr); in u3msi_setup_msi_irqs()
172 virq, hwirq, (unsigned long)addr); in u3msi_setup_msi_irqs()
174 pci_write_msi_msg(virq, &msg); in u3msi_setup_msi_irqs()
Dfsl_mpic_err.c84 int mpic_map_error_int(struct mpic *mpic, unsigned int virq, irq_hw_number_t hw) in mpic_map_error_int() argument
92 irq_set_chip_data(virq, mpic); in mpic_map_error_int()
93 irq_set_chip_and_handler(virq, &mpic->hc_err, in mpic_map_error_int()
133 unsigned int virq; in mpic_err_int_init() local
136 virq = irq_create_mapping(mpic->irqhost, irqnum); in mpic_err_int_init()
137 if (!virq) { in mpic_err_int_init()
145 ret = request_irq(virq, fsl_error_int_handler, IRQF_NO_THREAD, in mpic_err_int_init()
Dppc4xx_msi.c82 unsigned int virq; in ppc4xx_setup_msi_irqs() local
104 virq = irq_of_parse_and_map(msi_data->msi_dev, int_no); in ppc4xx_setup_msi_irqs()
105 if (!virq) { in ppc4xx_setup_msi_irqs()
110 dev_dbg(&dev->dev, "%s: virq = %d\n", __func__, virq); in ppc4xx_setup_msi_irqs()
116 irq_set_msi_desc(virq, entry); in ppc4xx_setup_msi_irqs()
118 pci_write_msi_msg(virq, &msg); in ppc4xx_setup_msi_irqs()
200 int virq; in ppc4xx_of_msi_remove() local
203 virq = msi->msi_virqs[i]; in ppc4xx_of_msi_remove()
204 if (virq) in ppc4xx_of_msi_remove()
205 irq_dispose_mapping(virq); in ppc4xx_of_msi_remove()
Dfsl_msi.c54 int virq; member
77 cascade_virq = msi_data->cascade_array[srs]->virq; in fsl_msi_print_chip()
90 static int fsl_msi_host_map(struct irq_domain *h, unsigned int virq, in fsl_msi_host_map() argument
96 irq_set_status_flags(virq, IRQ_TYPE_EDGE_FALLING); in fsl_msi_host_map()
98 irq_set_chip_data(virq, msi_data); in fsl_msi_host_map()
99 irq_set_chip_and_handler(virq, chip, handle_edge_irq); in fsl_msi_host_map()
189 unsigned int virq; in fsl_setup_msi_irqs() local
251 virq = irq_create_mapping(msi_data->irqhost, hwirq); in fsl_setup_msi_irqs()
253 if (!virq) { in fsl_setup_msi_irqs()
260 irq_set_msi_desc(virq, entry); in fsl_setup_msi_irqs()
[all …]
Dmpic.h38 extern void mpic_set_vector(unsigned int virq, unsigned int vector);
44 extern int mpic_map_error_int(struct mpic *mpic, unsigned int virq, irq_hw_number_t hw);
48 static inline int mpic_map_error_int(struct mpic *mpic, unsigned int virq, irq_hw_number_t hw) in mpic_map_error_int() argument
/arch/sh/boards/mach-x3proto/
Dgpio.c53 int virq; in x3proto_gpio_to_irq() local
56 virq = irq_create_mapping(x3proto_irq_domain, gpio); in x3proto_gpio_to_irq()
58 virq = -ENXIO; in x3proto_gpio_to_irq()
60 return virq; in x3proto_gpio_to_irq()
88 static int x3proto_gpio_irq_map(struct irq_domain *domain, unsigned int virq, in x3proto_gpio_irq_map() argument
91 irq_set_chip_and_handler_name(virq, &dummy_irq_chip, handle_simple_irq, in x3proto_gpio_irq_map()
/arch/powerpc/platforms/embedded6xx/
Dhlwd-pic.c95 static int hlwd_pic_map(struct irq_domain *h, unsigned int virq, in hlwd_pic_map() argument
98 irq_set_chip_data(virq, h->host_data); in hlwd_pic_map()
99 irq_set_status_flags(virq, IRQ_LEVEL); in hlwd_pic_map()
100 irq_set_chip_and_handler(virq, &hlwd_pic, handle_level_irq); in hlwd_pic_map()
127 unsigned int virq; in hlwd_pic_irq_cascade() local
133 virq = __hlwd_pic_get_irq(irq_domain); in hlwd_pic_irq_cascade()
134 if (virq) in hlwd_pic_irq_cascade()
135 generic_handle_irq(virq); in hlwd_pic_irq_cascade()
/arch/powerpc/sysdev/xics/
Dxics-common.c189 unsigned int irq, virq; in xics_migrate_irqs_away() local
202 for_each_irq_desc(virq, desc) { in xics_migrate_irqs_away()
209 if (virq < NUM_ISA_INTERRUPTS) in xics_migrate_irqs_away()
247 virq, cpu); in xics_migrate_irqs_away()
251 irq_set_affinity(virq, cpu_all_mask); in xics_migrate_irqs_away()
283 int xics_get_irq_server(unsigned int virq, const struct cpumask *cpumask, in xics_get_irq_server() argument
335 static int xics_host_map(struct irq_domain *h, unsigned int virq, in xics_host_map() argument
340 pr_devel("xics: map virq %d, hwirq 0x%lx\n", virq, hw); in xics_host_map()
347 irq_clear_status_flags(virq, IRQ_LEVEL); in xics_host_map()
351 irq_set_chip_and_handler(virq, &xics_ipi_chip, in xics_host_map()
[all …]
Dics-rtas.c26 static int ics_rtas_map(struct ics *ics, unsigned int virq);
171 static int ics_rtas_map(struct ics *ics, unsigned int virq) in ics_rtas_map() argument
173 unsigned int hw_irq = (unsigned int)virq_to_hw(virq); in ics_rtas_map()
185 irq_set_chip_and_handler(virq, &ics_rtas_irq_chip, handle_fasteoi_irq); in ics_rtas_map()
186 irq_set_chip_data(virq, &ics_rtas); in ics_rtas_map()
/arch/mips/pci/
Dfixup-lemote2f.c56 int virq; in pcibios_map_irq() local
60 virq = irq_tab[slot][pin]; in pcibios_map_irq()
62 virq + LOONGSON_IRQ_BASE); in pcibios_map_irq()
63 if (virq != 0) in pcibios_map_irq()
64 return LOONGSON_IRQ_BASE + virq; in pcibios_map_irq()
/arch/powerpc/platforms/82xx/
Dpq2ads-pci-pic.c98 int virq = irq_linear_revmap(priv->host, bit); in pq2ads_pci_irq_demux() local
99 generic_handle_irq(virq); in pq2ads_pci_irq_demux()
105 static int pci_pic_host_map(struct irq_domain *h, unsigned int virq, in pci_pic_host_map() argument
108 irq_set_status_flags(virq, IRQ_LEVEL); in pci_pic_host_map()
109 irq_set_chip_data(virq, h->host_data); in pci_pic_host_map()
110 irq_set_chip_and_handler(virq, &pq2ads_pci_ic, handle_level_irq); in pci_pic_host_map()
/arch/powerpc/sysdev/ge/
Dge_pic.c156 static int gef_pic_host_map(struct irq_domain *h, unsigned int virq, in gef_pic_host_map() argument
160 irq_set_status_flags(virq, IRQ_LEVEL); in gef_pic_host_map()
161 irq_set_chip_and_handler(virq, &gef_pic_chip, handle_level_irq); in gef_pic_host_map()
231 unsigned int virq = 0; in gef_pic_get_irq() local
245 virq = irq_linear_revmap(gef_pic_irq_host, in gef_pic_get_irq()
249 return virq; in gef_pic_get_irq()
/arch/c6x/kernel/
Dirq.c77 static int core_domain_map(struct irq_domain *h, unsigned int virq, in core_domain_map() argument
83 prio_to_virq[hw] = virq; in core_domain_map()
85 irq_set_status_flags(virq, IRQ_LEVEL); in core_domain_map()
86 irq_set_chip_and_handler(virq, &core_chip, handle_level_irq); in core_domain_map()
/arch/x86/kernel/apic/
Dhtirq.c63 static int htirq_domain_alloc(struct irq_domain *domain, unsigned int virq, in htirq_domain_alloc() argument
86 ret = irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, info); in htirq_domain_alloc()
99 irq_domain_set_info(domain, virq, hwirq, &ht_irq_chip, ht_cfg, in htirq_domain_alloc()
105 static void htirq_domain_free(struct irq_domain *domain, unsigned int virq, in htirq_domain_free() argument
108 struct irq_data *irq_data = irq_domain_get_irq_data(domain, virq); in htirq_domain_free()
112 irq_domain_free_irqs_top(domain, virq, nr_irqs); in htirq_domain_free()
/arch/arc/kernel/
Dmcip.c234 static int idu_irq_map(struct irq_domain *d, unsigned int virq, irq_hw_number_t hwirq) in idu_irq_map() argument
236 irq_set_chip_and_handler(virq, &idu_irq_chip, handle_level_irq); in idu_irq_map()
237 irq_set_status_flags(virq, IRQ_MOVE_PCNTXT); in idu_irq_map()
297 int i, virq; in idu_of_init() local
318 virq = irq_of_parse_and_map(intc, i); in idu_of_init()
320 idu_first_hwirq = irqd_to_hwirq(irq_get_irq_data(virq)); in idu_of_init()
322 irq_set_chained_handler_and_data(virq, idu_cascade_isr, domain); in idu_of_init()
/arch/arm/mach-davinci/
Dcp_intc.c100 static int cp_intc_host_map(struct irq_domain *h, unsigned int virq, in cp_intc_host_map() argument
103 pr_debug("cp_intc_host_map(%d, 0x%lx)\n", virq, hw); in cp_intc_host_map()
105 irq_set_chip(virq, &cp_intc_irq_chip); in cp_intc_host_map()
106 irq_set_probe(virq); in cp_intc_host_map()
107 irq_set_handler(virq, handle_edge_irq); in cp_intc_host_map()

1234