Lines Matching refs:cpu
80 static struct int_handler_struct *get_int_handler(unsigned int vector, uint cpu) { in get_int_handler() argument
82 return &int_handler_table_per_cpu[vector][cpu]; in get_int_handler()
89 uint cpu = arch_curr_cpu_num(); in register_int_handler() local
99 h = get_int_handler(vector, cpu); in register_int_handler()
386 uint cpu = arch_curr_cpu_num(); in __platform_irq() local
388 LTRACEF_LEVEL(2, "iar 0x%x cpu %u currthread %p vector %d pc 0x%lx\n", iar, cpu, in __platform_irq()
395 struct int_handler_struct *handler = get_int_handler(vector, cpu); in __platform_irq()
401 LTRACEF_LEVEL(2, "cpu %u exit %d\n", cpu, ret); in __platform_irq()
414 uint cpu = arch_curr_cpu_num(); in platform_irq() local
417 if (pending_irq < MAX_INT && get_int_handler(pending_irq, cpu)->handler) { in platform_irq()
438 if (irq < MAX_INT && (h = get_int_handler(pending_irq, cpu))->handler) in platform_irq()
464 uint cpu = arch_curr_cpu_num(); in arm_gic_get_next_irq_locked() local
470 if (get_int_handler(irq, cpu)->handler) in arm_gic_get_next_irq_locked()
528 static bool update_fiq_targets(u_int cpu, bool enable, u_int triggered_fiq, bool resume_gicd) { in update_fiq_targets() argument
544 LTRACEF("cpu %d, irq %i, enable %d\n", cpu, fiq, enable); in update_fiq_targets()
546 arm_gic_set_target_locked(fiq, 1U << cpu, enable ? ~0 : 0); in update_fiq_targets()
556 u_int cpu = arch_curr_cpu_num(); in suspend_resume_fiq() local
558 ASSERT(cpu < 8); in suspend_resume_fiq()
560 update_fiq_targets(cpu, resume_gicc, ~0, resume_gicd); in suspend_resume_fiq()
564 u_int cpu = arch_curr_cpu_num(); in sm_intc_fiq_enter() local
568 ASSERT(cpu < 8); in sm_intc_fiq_enter()
570 LTRACEF("cpu %d, irq %i\n", cpu, irq); in sm_intc_fiq_enter()
573 LTRACEF("spurious fiq: cpu %d, old %d, new %d\n", cpu, current_fiq[cpu], irq); in sm_intc_fiq_enter()
577 fiq_enabled = update_fiq_targets(cpu, false, irq, false); in sm_intc_fiq_enter()
580 if (current_fiq[cpu] != 0x3ff) { in sm_intc_fiq_enter()
581 … dprintf(INFO, "more than one fiq active: cpu %d, old %d, new %d\n", cpu, current_fiq[cpu], irq); in sm_intc_fiq_enter()
586 dprintf(INFO, "got disabled fiq: cpu %d, new %d\n", cpu, irq); in sm_intc_fiq_enter()
590 current_fiq[cpu] = irq; in sm_intc_fiq_enter()
596 u_int cpu = arch_curr_cpu_num(); in sm_intc_fiq_exit() local
598 ASSERT(cpu < 8); in sm_intc_fiq_exit()
600 LTRACEF("cpu %d, irq %i\n", cpu, current_fiq[cpu]); in sm_intc_fiq_exit()
601 if (current_fiq[cpu] == 0x3ff) { in sm_intc_fiq_exit()
602 dprintf(INFO, "%s: no fiq active, cpu %d\n", __func__, cpu); in sm_intc_fiq_exit()
605 update_fiq_targets(cpu, true, current_fiq[cpu], false); in sm_intc_fiq_exit()
606 current_fiq[cpu] = 0x3ff; in sm_intc_fiq_exit()