Home
last modified time | relevance | path

Searched refs:prival (Results 1 – 4 of 4) sorted by relevance

/openbsd/sys/arch/riscv64/dev/
H A Dplic.c654 uint32_t prival; in plic_set_priority() local
663 prival = 0;//effectively disable this intr source in plic_set_priority()
665 prival = pri - 4; in plic_set_priority()
668 PLIC_PRIORITY(irq), prival); in plic_set_priority()
676 uint32_t prival; in plic_set_threshold() local
679 prival = 0; in plic_set_threshold()
681 prival = IPL_HIGH - 4; // XXX Device-specific high threshold in plic_set_threshold()
683 prival = threshold - 4; // XXX Device-specific threshold offset in plic_set_threshold()
686 PLIC_THRESHOLD(sc, cpu), prival); in plic_set_threshold()
/openbsd/sys/arch/arm/cortex/
H A Dampintc.c389 uint32_t prival; in ampintc_set_priority() local
397 prival = (IPL_HIGH - pri) << ICMIPMR_SH; in ampintc_set_priority()
398 bus_space_write_1(sc->sc_iot, sc->sc_d_ioh, ICD_IPRn(irq), prival); in ampintc_set_priority()
/openbsd/sys/arch/arm64/dev/
H A Dagintc.c819 uint32_t prival; in agintc_set_priority() local
821 prival = ((0xff - ipl) << sc->sc_prio_shift) & 0xff; in agintc_set_priority()
825 GICD_IPRIORITYR(irq), prival); in agintc_set_priority()
829 GICR_IPRIORITYR(irq), prival); in agintc_set_priority()
839 uint32_t prival; in agintc_setipl() local
845 prival = ((0xff - ipl) << sc->sc_pmr_shift) & 0xff; in agintc_setipl()
846 __asm volatile("msr "STR(ICC_PMR)", %x0" : : "r" (prival)); in agintc_setipl()
H A Dampintc.c445 uint32_t prival; in ampintc_set_priority() local
453 prival = (IPL_HIGH - pri) << ICMIPMR_SH; in ampintc_set_priority()
454 bus_space_write_1(sc->sc_iot, sc->sc_d_ioh, ICD_IPRn(irq), prival); in ampintc_set_priority()