Lines Matching full:intr

69 static void gic_clear_pcpu_masks(unsigned int intr)  in gic_clear_pcpu_masks()  argument
75 clear_bit(intr, per_cpu_ptr(pcpu_masks, i)); in gic_clear_pcpu_masks()
78 static bool gic_local_irq_is_routable(int intr) in gic_local_irq_is_routable() argument
87 switch (intr) { in gic_local_irq_is_routable()
153 unsigned int intr; in gic_handle_shared_int() local
169 for_each_set_bit(intr, pending, gic_shared_intrs) { in gic_handle_shared_int()
172 GIC_SHARED_TO_HWIRQ(intr)); in gic_handle_shared_int()
175 GIC_SHARED_TO_HWIRQ(intr)); in gic_handle_shared_int()
181 unsigned int intr = GIC_HWIRQ_TO_SHARED(d->hwirq); in gic_mask_irq() local
183 write_gic_rmask(intr); in gic_mask_irq()
184 gic_clear_pcpu_masks(intr); in gic_mask_irq()
189 unsigned int intr = GIC_HWIRQ_TO_SHARED(d->hwirq); in gic_unmask_irq() local
192 write_gic_smask(intr); in gic_unmask_irq()
194 gic_clear_pcpu_masks(intr); in gic_unmask_irq()
196 set_bit(intr, per_cpu_ptr(pcpu_masks, cpu)); in gic_unmask_irq()
313 unsigned int intr; in gic_handle_local_int() local
320 for_each_set_bit(intr, &pending, GIC_NUM_LOCAL_INTRS) { in gic_handle_local_int()
323 GIC_LOCAL_TO_HWIRQ(intr)); in gic_handle_local_int()
326 GIC_LOCAL_TO_HWIRQ(intr)); in gic_handle_local_int()
332 int intr = GIC_HWIRQ_TO_LOCAL(d->hwirq); in gic_mask_local_irq() local
334 write_gic_vl_rmask(BIT(intr)); in gic_mask_local_irq()
339 int intr = GIC_HWIRQ_TO_LOCAL(d->hwirq); in gic_unmask_local_irq() local
341 write_gic_vl_smask(BIT(intr)); in gic_unmask_local_irq()
354 int intr, cpu; in gic_mask_local_irq_all_vpes() local
356 intr = GIC_HWIRQ_TO_LOCAL(d->hwirq); in gic_mask_local_irq_all_vpes()
363 write_gic_vo_rmask(BIT(intr)); in gic_mask_local_irq_all_vpes()
372 int intr, cpu; in gic_unmask_local_irq_all_vpes() local
374 intr = GIC_HWIRQ_TO_LOCAL(d->hwirq); in gic_unmask_local_irq_all_vpes()
381 write_gic_vo_smask(BIT(intr)); in gic_unmask_local_irq_all_vpes()
399 unsigned int intr = local_intrs[i]; in gic_all_vpes_irq_cpu_online() local
402 if (!gic_local_irq_is_routable(intr)) in gic_all_vpes_irq_cpu_online()
404 cd = &gic_all_vpes_chip_data[intr]; in gic_all_vpes_irq_cpu_online()
405 write_gic_vl_map(mips_gic_vx_map_reg(intr), cd->map); in gic_all_vpes_irq_cpu_online()
407 write_gic_vl_smask(BIT(intr)); in gic_all_vpes_irq_cpu_online()
434 int intr = GIC_HWIRQ_TO_SHARED(hw); in gic_shared_irq_domain_map() local
441 write_gic_map_pin(intr, GIC_MAP_PIN_MAP_TO_PIN | gic_cpu_pin); in gic_shared_irq_domain_map()
442 write_gic_map_vp(intr, BIT(mips_cm_vp_id(cpu))); in gic_shared_irq_domain_map()
473 unsigned int intr; in gic_irq_domain_map() local
494 intr = GIC_HWIRQ_TO_LOCAL(hwirq); in gic_irq_domain_map()
501 switch (intr) { in gic_irq_domain_map()
510 cd = &gic_all_vpes_chip_data[intr]; in gic_irq_domain_map()
533 if (!gic_local_irq_is_routable(intr)) in gic_irq_domain_map()
539 write_gic_vo_map(mips_gic_vx_map_reg(intr), map); in gic_irq_domain_map()