Lines Matching refs:cirq_num
237 static int mt_cirq_set_pol(uint32_t cirq_num, uint32_t pol) in mt_cirq_set_pol() argument
240 uint32_t bit = 1U << (cirq_num % 32U); in mt_cirq_set_pol()
242 if (cirq_num >= CIRQ_IRQ_NUM) { in mt_cirq_set_pol()
247 base = (cirq_num / 32U) * 4U + CIRQ_POL_CLR_BASE; in mt_cirq_set_pol()
249 base = (cirq_num / 32U) * 4U + CIRQ_POL_SET_BASE; in mt_cirq_set_pol()
266 static int mt_cirq_mask(uint32_t cirq_num) in mt_cirq_mask() argument
268 uint32_t bit = 1U << (cirq_num % 32U); in mt_cirq_mask()
270 if (cirq_num >= CIRQ_IRQ_NUM) { in mt_cirq_mask()
274 mmio_write_32((cirq_num / 32U) * 4U + CIRQ_MASK_SET_BASE, bit); in mt_cirq_mask()
286 static int mt_cirq_unmask(uint32_t cirq_num) in mt_cirq_unmask() argument
288 uint32_t bit = 1U << (cirq_num % 32U); in mt_cirq_unmask()
290 if (cirq_num >= CIRQ_IRQ_NUM) { in mt_cirq_unmask()
294 mmio_write_32((cirq_num / 32U) * 4U + CIRQ_MASK_CLR_BASE, bit); in mt_cirq_unmask()