• Home
  • Raw
  • Download

Lines Matching refs:vpe

49 #define ltq_icu_w32(vpe, m, x, y)	\  argument
50 ltq_w32((x), ltq_icu_membase[vpe] + m*LTQ_ICU_IM_SIZE + (y))
52 #define ltq_icu_r32(vpe, m, x) \ argument
53 ltq_r32(ltq_icu_membase[vpe] + m*LTQ_ICU_IM_SIZE + (x))
82 int vpe; in ltq_disable_irq() local
87 for_each_present_cpu(vpe) { in ltq_disable_irq()
88 ltq_icu_w32(vpe, im, in ltq_disable_irq()
89 ltq_icu_r32(vpe, im, LTQ_ICU_IER) & ~BIT(offset), in ltq_disable_irq()
100 int vpe; in ltq_mask_and_ack_irq() local
105 for_each_present_cpu(vpe) { in ltq_mask_and_ack_irq()
106 ltq_icu_w32(vpe, im, in ltq_mask_and_ack_irq()
107 ltq_icu_r32(vpe, im, LTQ_ICU_IER) & ~BIT(offset), in ltq_mask_and_ack_irq()
109 ltq_icu_w32(vpe, im, BIT(offset), LTQ_ICU_ISR); in ltq_mask_and_ack_irq()
119 int vpe; in ltq_ack_irq() local
124 for_each_present_cpu(vpe) { in ltq_ack_irq()
125 ltq_icu_w32(vpe, im, BIT(offset), LTQ_ICU_ISR); in ltq_ack_irq()
135 int vpe; in ltq_enable_irq() local
139 vpe = cpumask_first(irq_data_get_effective_affinity_mask(d)); in ltq_enable_irq()
142 if (unlikely(vpe >= nr_cpu_ids)) in ltq_enable_irq()
143 vpe = smp_processor_id(); in ltq_enable_irq()
147 ltq_icu_w32(vpe, im, ltq_icu_r32(vpe, im, LTQ_ICU_IER) | BIT(offset), in ltq_enable_irq()
290 int vpe = smp_processor_id(); in ltq_hw_irq_handler() local
292 irq = ltq_icu_r32(vpe, module, LTQ_ICU_IOSR); in ltq_hw_irq_handler()
341 int i, ret, vpe; in icu_of_init() local
344 for_each_possible_cpu(vpe) { in icu_of_init()
345 if (of_address_to_resource(node, vpe, &res)) in icu_of_init()
346 panic("Failed to get icu%i memory range", vpe); in icu_of_init()
350 pr_err("Failed to request icu%i memory\n", vpe); in icu_of_init()
352 ltq_icu_membase[vpe] = ioremap(res.start, in icu_of_init()
355 if (!ltq_icu_membase[vpe]) in icu_of_init()
356 panic("Failed to remap icu%i memory", vpe); in icu_of_init()
360 for_each_possible_cpu(vpe) { in icu_of_init()
363 ltq_icu_w32(vpe, i, 0, LTQ_ICU_IER); in icu_of_init()
366 ltq_icu_w32(vpe, i, ~0, LTQ_ICU_ISR); in icu_of_init()
367 ltq_icu_w32(vpe, i, ~0, LTQ_ICU_IMR); in icu_of_init()
370 ltq_icu_w32(vpe, i, 0, LTQ_ICU_IRSR); in icu_of_init()