Lines Matching full:vpe
50 #define ltq_icu_w32(vpe, m, x, y) \ argument
51 ltq_w32((x), ltq_icu_membase[vpe] + m*LTQ_ICU_IM_SIZE + (y))
53 #define ltq_icu_r32(vpe, m, x) \ argument
54 ltq_r32(ltq_icu_membase[vpe] + m*LTQ_ICU_IM_SIZE + (x))
83 int vpe; in ltq_disable_irq() local
88 for_each_present_cpu(vpe) { in ltq_disable_irq()
89 ltq_icu_w32(vpe, im, in ltq_disable_irq()
90 ltq_icu_r32(vpe, im, LTQ_ICU_IER) & ~BIT(offset), in ltq_disable_irq()
101 int vpe; in ltq_mask_and_ack_irq() local
106 for_each_present_cpu(vpe) { in ltq_mask_and_ack_irq()
107 ltq_icu_w32(vpe, im, in ltq_mask_and_ack_irq()
108 ltq_icu_r32(vpe, im, LTQ_ICU_IER) & ~BIT(offset), in ltq_mask_and_ack_irq()
110 ltq_icu_w32(vpe, im, BIT(offset), LTQ_ICU_ISR); in ltq_mask_and_ack_irq()
120 int vpe; in ltq_ack_irq() local
125 for_each_present_cpu(vpe) { in ltq_ack_irq()
126 ltq_icu_w32(vpe, im, BIT(offset), LTQ_ICU_ISR); in ltq_ack_irq()
136 int vpe; in ltq_enable_irq() local
140 vpe = cpumask_first(irq_data_get_effective_affinity_mask(d)); in ltq_enable_irq()
143 if (unlikely(vpe >= nr_cpu_ids)) in ltq_enable_irq()
144 vpe = smp_processor_id(); in ltq_enable_irq()
148 ltq_icu_w32(vpe, im, ltq_icu_r32(vpe, im, LTQ_ICU_IER) | BIT(offset), in ltq_enable_irq()
291 int vpe = smp_processor_id(); in ltq_hw_irq_handler() local
293 irq = ltq_icu_r32(vpe, module, LTQ_ICU_IOSR); in ltq_hw_irq_handler()
342 int i, ret, vpe; in icu_of_init() local
345 for_each_possible_cpu(vpe) { in icu_of_init()
346 if (of_address_to_resource(node, vpe, &res)) in icu_of_init()
347 panic("Failed to get icu%i memory range", vpe); in icu_of_init()
351 pr_err("Failed to request icu%i memory\n", vpe); in icu_of_init()
353 ltq_icu_membase[vpe] = ioremap(res.start, in icu_of_init()
356 if (!ltq_icu_membase[vpe]) in icu_of_init()
357 panic("Failed to remap icu%i memory", vpe); in icu_of_init()
361 for_each_possible_cpu(vpe) { in icu_of_init()
364 ltq_icu_w32(vpe, i, 0, LTQ_ICU_IER); in icu_of_init()
367 ltq_icu_w32(vpe, i, ~0, LTQ_ICU_ISR); in icu_of_init()
368 ltq_icu_w32(vpe, i, ~0, LTQ_ICU_IMR); in icu_of_init()
371 ltq_icu_w32(vpe, i, 0, LTQ_ICU_IRSR); in icu_of_init()