Lines Matching refs:offset
48 #define IRQ_LINE(offset) offset argument
50 #define TABLE_INDEX(offset) offset + CONFIG_RISCV_RESERVED_IRQ_ISR_TABLES_OFFSET argument
52 #define TABLE_INDEX(offset) offset argument
100 #define IRQ_LINE(offset) (TEST_NUM_IRQS - ((offset) + 1)) argument
101 #define TABLE_INDEX(offset) (TEST_IRQ_TABLE_SIZE - ((offset) + 1)) argument
181 int test_irq(int offset) in test_irq() argument
184 TC_PRINT("triggering irq %d\n", IRQ_LINE(offset)); in test_irq()
185 trigger_irq(IRQ_LINE(offset)); in test_irq()
190 if (trigger_check[offset] != 1) { in test_irq()
192 IRQ_LINE(offset), in test_irq()
193 trigger_check[offset]); in test_irq()
198 ARG_UNUSED(offset); in test_irq()
206 static int check_vector(void *isr, int offset) in check_vector() argument
216 TABLE_INDEX(offset), IRQ_LINE(offset)); in check_vector()
218 if (_irq_vector_table[TABLE_INDEX(offset)] != (uint32_t)isr) { in check_vector()
219 TC_PRINT("bad entry %d in vector table\n", TABLE_INDEX(offset)); in check_vector()
224 if (test_irq(offset)) { in check_vector()
233 static int check_sw_isr(void *isr, uintptr_t arg, int offset) in check_sw_isr() argument
235 struct _isr_table_entry *e = &_sw_isr_table[TABLE_INDEX(offset)]; in check_sw_isr()
238 TABLE_INDEX(offset), IRQ_LINE(offset)); in check_sw_isr()
251 void *v = (void *)_irq_vector_table[TABLE_INDEX(offset)]; in check_sw_isr()
259 if (test_irq(offset)) { in check_sw_isr()