Lines Matching +full:interrupt +full:- +full:src
4 * Copyright 2008-2011 Freescale Semiconductor, Inc.
19 #include <linux/interrupt.h>
47 unsigned int src = virq_to_hw(d->irq); in ehv_pic_unmask_irq() local
49 ev_int_set_mask(src, 0); in ehv_pic_unmask_irq()
54 unsigned int src = virq_to_hw(d->irq); in ehv_pic_mask_irq() local
56 ev_int_set_mask(src, 1); in ehv_pic_mask_irq()
61 unsigned int src = virq_to_hw(d->irq); in ehv_pic_end_irq() local
63 ev_int_eoi(src); in ehv_pic_end_irq()
74 unsigned int src = virq_to_hw(d->irq); in ehv_pic_set_affinity() local
80 ev_int_get_config(src, &config, &prio, &cpu_dest); in ehv_pic_set_affinity()
81 ev_int_set_config(src, config, prio, cpuid); in ehv_pic_set_affinity()
114 unsigned int src = virq_to_hw(d->irq); in ehv_pic_set_irq_type() local
126 ev_int_get_config(src, &vold, &prio, &cpu_dest); in ehv_pic_set_irq_type()
133 * individual interrupt priorities. in ehv_pic_set_irq_type()
139 ev_int_set_config(src, vecpri, prio, cpu_dest); in ehv_pic_set_irq_type()
159 /* Return an interrupt vector or 0 if no interrupt is pending. */
166 if (global_ehv_pic->coreint_flag) in ehv_pic_get_irq()
171 if (irq == 0xFFFF) /* 0xFFFF --> no irq is pending */ in ehv_pic_get_irq()
178 return irq_linear_revmap(global_ehv_pic->irqhost, irq); in ehv_pic_get_irq()
192 struct ehv_pic *ehv_pic = h->host_data; in ehv_pic_host_map()
196 chip = &ehv_pic->hc_irq; in ehv_pic_host_map()
207 * highest priority active interrupt in ISR/IPR when we do in ehv_pic_host_map()
224 * interrupt sense values coming from the guest device tree in ehv_pic_host_xlate()
225 * interrupt specifiers can have four possible sense and in ehv_pic_host_xlate()
260 np = of_find_compatible_node(NULL, NULL, "epapr,hv-pic"); in ehv_pic_init()
262 pr_err("ehv_pic_init: could not find epapr,hv-pic node\n"); in ehv_pic_init()
272 ehv_pic->irqhost = irq_domain_add_linear(np, NR_EHV_PIC_INTS, in ehv_pic_init()
274 if (!ehv_pic->irqhost) { in ehv_pic_init()
280 np2 = of_find_compatible_node(NULL, NULL, "fsl,hv-mpic-per-cpu"); in ehv_pic_init()
289 ehv_pic->hc_irq = ehv_pic_irq_chip; in ehv_pic_init()
290 ehv_pic->hc_irq.irq_set_affinity = ehv_pic_set_affinity; in ehv_pic_init()
291 ehv_pic->coreint_flag = of_property_read_bool(np, "has-external-proxy"); in ehv_pic_init()
294 irq_set_default_host(global_ehv_pic->irqhost); in ehv_pic_init()