Lines Matching refs:MPIC_INFO

150 #define MPIC_INFO(name) mpic->hw_set[MPIC_IDX_##name]  macro
154 #define MPIC_INFO(name) MPIC_##name macro
213 unsigned int offset = MPIC_INFO(GREG_IPI_VECTOR_PRI_0) + in _mpic_ipi_read()
214 (ipi * MPIC_INFO(GREG_IPI_STRIDE)); in _mpic_ipi_read()
223 unsigned int offset = MPIC_INFO(GREG_IPI_VECTOR_PRI_0) + in _mpic_ipi_write()
224 (ipi * MPIC_INFO(GREG_IPI_STRIDE)); in _mpic_ipi_write()
232 (tm & 3) * MPIC_INFO(TIMER_STRIDE); in mpic_tm_offset()
238 MPIC_INFO(TIMER_VECTOR_PRI); in _mpic_tm_read()
246 MPIC_INFO(TIMER_VECTOR_PRI); in _mpic_tm_write()
272 reg + (idx * MPIC_INFO(IRQ_STRIDE))); in _mpic_irq_read()
288 reg + (idx * MPIC_INFO(IRQ_STRIDE)), value); in _mpic_irq_write()
353 mpic_write(mpic->gregs, MPIC_INFO(GREG_IPI_VECTOR_PRI_0), MPIC_VECPRI_MASK); in mpic_test_broken_ipi()
354 r = mpic_read(mpic->gregs, MPIC_INFO(GREG_IPI_VECTOR_PRI_0)); in mpic_test_broken_ipi()
657 mpic_cpu_write(MPIC_INFO(CPU_EOI), 0); in mpic_eoi()
673 mpic_irq_write(src, MPIC_INFO(IRQ_VECTOR_PRI), in mpic_unmask_irq()
674 mpic_irq_read(src, MPIC_INFO(IRQ_VECTOR_PRI)) & in mpic_unmask_irq()
683 } while(mpic_irq_read(src, MPIC_INFO(IRQ_VECTOR_PRI)) & MPIC_VECPRI_MASK); in mpic_unmask_irq()
694 mpic_irq_write(src, MPIC_INFO(IRQ_VECTOR_PRI), in mpic_mask_irq()
695 mpic_irq_read(src, MPIC_INFO(IRQ_VECTOR_PRI)) | in mpic_mask_irq()
705 } while(!(mpic_irq_read(src, MPIC_INFO(IRQ_VECTOR_PRI)) & MPIC_VECPRI_MASK)); in mpic_mask_irq()
833 mpic_irq_write(src, MPIC_INFO(IRQ_DESTINATION), 1 << cpuid); in mpic_set_affinity()
839 mpic_irq_write(src, MPIC_INFO(IRQ_DESTINATION), in mpic_set_affinity()
851 return MPIC_INFO(VECPRI_SENSE_EDGE) | in mpic_type_to_vecpri()
852 MPIC_INFO(VECPRI_POLARITY_POSITIVE); in mpic_type_to_vecpri()
855 return MPIC_INFO(VECPRI_SENSE_EDGE) | in mpic_type_to_vecpri()
856 MPIC_INFO(VECPRI_POLARITY_NEGATIVE); in mpic_type_to_vecpri()
858 return MPIC_INFO(VECPRI_SENSE_LEVEL) | in mpic_type_to_vecpri()
859 MPIC_INFO(VECPRI_POLARITY_POSITIVE); in mpic_type_to_vecpri()
862 return MPIC_INFO(VECPRI_SENSE_LEVEL) | in mpic_type_to_vecpri()
863 MPIC_INFO(VECPRI_POLARITY_NEGATIVE); in mpic_type_to_vecpri()
879 vold = mpic_irq_read(src, MPIC_INFO(IRQ_VECTOR_PRI)); in mpic_set_irq_type()
889 vold_ps = vold & (MPIC_INFO(VECPRI_POLARITY_MASK) | in mpic_set_irq_type()
890 MPIC_INFO(VECPRI_SENSE_MASK)); in mpic_set_irq_type()
892 if (vold_ps == (MPIC_INFO(VECPRI_SENSE_EDGE) | in mpic_set_irq_type()
893 MPIC_INFO(VECPRI_POLARITY_POSITIVE))) in mpic_set_irq_type()
895 else if (vold_ps == (MPIC_INFO(VECPRI_SENSE_EDGE) | in mpic_set_irq_type()
896 MPIC_INFO(VECPRI_POLARITY_NEGATIVE))) in mpic_set_irq_type()
898 else if (vold_ps == (MPIC_INFO(VECPRI_SENSE_LEVEL) | in mpic_set_irq_type()
899 MPIC_INFO(VECPRI_POLARITY_POSITIVE))) in mpic_set_irq_type()
901 else if (vold_ps == (MPIC_INFO(VECPRI_SENSE_LEVEL) | in mpic_set_irq_type()
902 MPIC_INFO(VECPRI_POLARITY_NEGATIVE))) in mpic_set_irq_type()
918 vnew = vold & ~(MPIC_INFO(VECPRI_POLARITY_MASK) | in mpic_set_irq_type()
919 MPIC_INFO(VECPRI_SENSE_MASK)); in mpic_set_irq_type()
922 mpic_irq_write(src, MPIC_INFO(IRQ_VECTOR_PRI), vnew); in mpic_set_irq_type()
939 vecpri = mpic_irq_read(src, MPIC_INFO(IRQ_VECTOR_PRI)); in mpic_set_vector()
940 vecpri = vecpri & ~MPIC_INFO(VECPRI_VECTOR_MASK); in mpic_set_vector()
942 mpic_irq_write(src, MPIC_INFO(IRQ_VECTOR_PRI), vecpri); in mpic_set_vector()
956 mpic_irq_write(src, MPIC_INFO(IRQ_DESTINATION), 1 << cpuid); in mpic_set_destination()
1358 mpic_map(mpic, mpic->paddr, &mpic->gregs, MPIC_INFO(GREG_BASE), 0x1000); in mpic_alloc()
1359 mpic_map(mpic, mpic->paddr, &mpic->tmregs, MPIC_INFO(TIMER_BASE), 0x1000); in mpic_alloc()
1420 mpic_write(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0), in mpic_alloc()
1421 mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) in mpic_alloc()
1423 while( mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) in mpic_alloc()
1430 mpic_write(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0), in mpic_alloc()
1431 mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) in mpic_alloc()
1435 mpic_write(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0), in mpic_alloc()
1436 mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) in mpic_alloc()
1450 MPIC_INFO(CPU_BASE) + cpu * MPIC_INFO(CPU_STRIDE), in mpic_alloc()
1458 greg_feature = mpic_read(mpic->gregs, MPIC_INFO(GREG_FEATURE_0)); in mpic_alloc()
1479 MPIC_INFO(IRQ_BASE), in mpic_alloc()
1480 MPIC_INFO(IRQ_STRIDE) * isu_size); in mpic_alloc()
1543 MPIC_INFO(IRQ_STRIDE) * mpic->isu_size); in mpic_assign_isu()
1559 mpic_cpu_write(MPIC_INFO(CPU_CURRENT_TASK_PRI), 0xf); in mpic_init()
1579 offset + MPIC_INFO(TIMER_DESTINATION), in mpic_init()
1582 offset + MPIC_INFO(TIMER_VECTOR_PRI), in mpic_init()
1618 mpic_irq_write(i, MPIC_INFO(IRQ_VECTOR_PRI), vecpri); in mpic_init()
1619 mpic_irq_write(i, MPIC_INFO(IRQ_DESTINATION), 1 << cpu); in mpic_init()
1624 mpic_write(mpic->gregs, MPIC_INFO(GREG_SPURIOUS), mpic->spurious_vec); in mpic_init()
1628 mpic_write(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0), in mpic_init()
1629 mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) in mpic_init()
1633 mpic_write(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0), in mpic_init()
1634 mpic_read(mpic->gregs, MPIC_INFO(GREG_GLOBAL_CONF_0)) in mpic_init()
1638 mpic_cpu_write(MPIC_INFO(CPU_CURRENT_TASK_PRI), 0); in mpic_init()
1686 reg = mpic_irq_read(src, MPIC_INFO(IRQ_VECTOR_PRI)) in mpic_irq_set_priority()
1688 mpic_irq_write(src, MPIC_INFO(IRQ_VECTOR_PRI), in mpic_irq_set_priority()
1715 mpic_irq_write(i, MPIC_INFO(IRQ_DESTINATION), in mpic_setup_this_cpu()
1716 mpic_irq_read(i, MPIC_INFO(IRQ_DESTINATION)) | msk); in mpic_setup_this_cpu()
1720 mpic_cpu_write(MPIC_INFO(CPU_CURRENT_TASK_PRI), 0); in mpic_setup_this_cpu()
1730 return mpic_cpu_read(MPIC_INFO(CPU_CURRENT_TASK_PRI)); in mpic_cpu_get_priority()
1738 mpic_cpu_write(MPIC_INFO(CPU_CURRENT_TASK_PRI), prio); in mpic_cpu_set_priority()
1755 mpic_irq_write(i, MPIC_INFO(IRQ_DESTINATION), in mpic_teardown_this_cpu()
1756 mpic_irq_read(i, MPIC_INFO(IRQ_DESTINATION)) & ~msk); in mpic_teardown_this_cpu()
1759 mpic_cpu_write(MPIC_INFO(CPU_CURRENT_TASK_PRI), 0xf); in mpic_teardown_this_cpu()
1773 src = mpic_cpu_read(reg) & MPIC_INFO(VECPRI_VECTOR_MASK); in _mpic_get_one_irq()
1794 return _mpic_get_one_irq(mpic, MPIC_INFO(CPU_INTACK)); in mpic_get_one_irq()
1839 return _mpic_get_one_irq(mpic, MPIC_INFO(CPU_MCACK)); in mpic_get_mcirq()
1882 mpic_cpu_write(MPIC_INFO(CPU_IPI_DISPATCH_0) + in smp_mpic_message_pass()
1883 msg * MPIC_INFO(CPU_IPI_DISPATCH_STRIDE), physmask); in smp_mpic_message_pass()
1913 pir = mpic_read(mpic->gregs, MPIC_INFO(GREG_PROCESSOR_INIT)); in mpic_reset_core()
1915 mpic_write(mpic->gregs, MPIC_INFO(GREG_PROCESSOR_INIT), pir); in mpic_reset_core()
1916 mpic_read(mpic->gregs, MPIC_INFO(GREG_PROCESSOR_INIT)); in mpic_reset_core()
1920 mpic_write(mpic->gregs, MPIC_INFO(GREG_PROCESSOR_INIT), pir); in mpic_reset_core()
1921 mpic_read(mpic->gregs, MPIC_INFO(GREG_PROCESSOR_INIT)); in mpic_reset_core()
1941 mpic_irq_read(i, MPIC_INFO(IRQ_VECTOR_PRI)); in mpic_suspend_one()
1943 mpic_irq_read(i, MPIC_INFO(IRQ_DESTINATION)); in mpic_suspend_one()
1964 mpic_irq_write(i, MPIC_INFO(IRQ_VECTOR_PRI), in mpic_resume_one()
1966 mpic_irq_write(i, MPIC_INFO(IRQ_DESTINATION), in mpic_resume_one()