Lines Matching refs:st
301 uint32_t addr, st, val; in mt_irq_get_en() local
304 st = mmio_read_32(addr); in mt_irq_get_en()
306 val = (st >> (irq % 32U)) & 1U; in mt_irq_get_en()
450 uint32_t st; in mt_cirq_enable() local
455 st = mmio_read_32(CIRQ_CON); in mt_cirq_enable()
459 st |= (CIRQ_CON_EN << CIRQ_CON_EN_BITS); in mt_cirq_enable()
461 mmio_write_32(CIRQ_CON, (st & CIRQ_CON_BITS_MASK)); in mt_cirq_enable()
469 uint32_t st; in mt_cirq_disable() local
471 st = mmio_read_32(CIRQ_CON); in mt_cirq_disable()
472 st &= ~(CIRQ_CON_EN << CIRQ_CON_EN_BITS); in mt_cirq_disable()
473 mmio_write_32(CIRQ_CON, (st & CIRQ_CON_BITS_MASK)); in mt_cirq_disable()
544 uint32_t st; in mt_cirq_sw_reset() local
546 st = mmio_read_32(CIRQ_CON); in mt_cirq_sw_reset()
547 st |= (CIRQ_SW_RESET << CIRQ_CON_SW_RST_BITS); in mt_cirq_sw_reset()
548 mmio_write_32(CIRQ_CON, st); in mt_cirq_sw_reset()