Lines Matching defs:irq
139 static uint32_t mt_irq_get_pol(uint32_t irq)
145 if (irq < 32U) {
149 reg = ((irq - 32U) / 32U);
157 unsigned int mt_irq_get_sens(unsigned int irq)
165 config = mmio_read_32(MT_GIC_BASE + GICD_ICFGR + (irq / 16U) * 4U);
166 config = (config >> (irq % 16U) * 2U) & 0x3;
299 uint32_t mt_irq_get_en(uint32_t irq)
303 addr = BASE_GICD_BASE + GICD_ISENABLER + (irq / 32U) * 4U;
306 val = (st >> (irq % 32U)) & 1U;
426 * if a irq is pending & not masked, don't ack it
427 * , since cirq start irq might not be 32 aligned with gic,
428 * need an exotic API to get proper vector of pending irq
476 void mt_irq_unmask_for_sleep_ex(uint32_t irq)
480 mask = 1U << (irq % 32U);
483 ((irq / 32U) * 4U), mask);