Lines Matching refs:vec
40 static void __iomem *ics_native_xive(struct ics_native *in, unsigned int vec) in ics_native_xive() argument
42 return in->base + 0x800 + ((vec - in->ibase) << 2); in ics_native_xive()
47 unsigned int vec = (unsigned int)irqd_to_hwirq(d); in ics_native_unmask_irq() local
52 pr_devel("ics-native: unmask virq %d [hw 0x%x]\n", d->irq, vec); in ics_native_unmask_irq()
54 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_unmask_irq()
58 out_be32(ics_native_xive(in, vec), (server << 8) | DEFAULT_PRIORITY); in ics_native_unmask_irq()
78 static void ics_native_do_mask(struct ics_native *in, unsigned int vec) in ics_native_do_mask() argument
80 out_be32(ics_native_xive(in, vec), 0xff); in ics_native_do_mask()
85 unsigned int vec = (unsigned int)irqd_to_hwirq(d); in ics_native_mask_irq() local
89 pr_devel("ics-native: mask virq %d [hw 0x%x]\n", d->irq, vec); in ics_native_mask_irq()
91 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_mask_irq()
93 ics_native_do_mask(in, vec); in ics_native_mask_irq()
100 unsigned int vec = (unsigned int)irqd_to_hwirq(d); in ics_native_set_affinity() local
106 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_set_affinity()
116 xive = in_be32(ics_native_xive(in, vec)); in ics_native_set_affinity()
118 out_be32(ics_native_xive(in, vec), xive); in ics_native_set_affinity()
146 static void ics_native_mask_unknown(struct ics *ics, unsigned long vec) in ics_native_mask_unknown() argument
150 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_mask_unknown()
153 ics_native_do_mask(in, vec); in ics_native_mask_unknown()
156 static long ics_native_get_server(struct ics *ics, unsigned long vec) in ics_native_get_server() argument
161 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_get_server()
164 xive = in_be32(ics_native_xive(in, vec)); in ics_native_get_server()