Lines Matching full:fixture

17 static struct shared_irq_fixture fixture;  variable
36 arch_irq_disconnect_dynamic(fixture.irq1, fixture.irq_priority, in dynamic_shared_irq_suite_after()
38 arch_irq_disconnect_dynamic(fixture.irq1, fixture.irq_priority, in dynamic_shared_irq_suite_after()
40 arch_irq_disconnect_dynamic(fixture.irq2, fixture.irq_priority, in dynamic_shared_irq_suite_after()
86 fixture.irq1 = get_irq_slot(CONFIG_GEN_IRQ_START_VECTOR); in dynamic_shared_irq_suite_setup()
87 zassert_true(fixture.irq1 != TEST_INVALID_IRQ, in dynamic_shared_irq_suite_setup()
89 fixture.irq2 = get_irq_slot(fixture.irq1 + 1); in dynamic_shared_irq_suite_setup()
90 zassert_true(fixture.irq2 != TEST_INVALID_IRQ, in dynamic_shared_irq_suite_setup()
92 fixture.irq_priority = IRQ_PRIORITY; in dynamic_shared_irq_suite_setup()
94 fixture.irq1_table_idx = fixture.irq1 - CONFIG_GEN_IRQ_START_VECTOR; in dynamic_shared_irq_suite_setup()
95 fixture.irq2_table_idx = fixture.irq2 - CONFIG_GEN_IRQ_START_VECTOR; in dynamic_shared_irq_suite_setup()
110 arch_irq_connect_dynamic(fixture.irq1, fixture.irq_priority, in dynamic_shared_irq_suite_before()
113 zassert_true(_sw_isr_table[fixture.irq1_table_idx + TABLE_OFFSET].isr == test_isr_0, in dynamic_shared_irq_suite_before()
115 zassert_true(!_sw_isr_table[fixture.irq1_table_idx + TABLE_OFFSET].arg, in dynamic_shared_irq_suite_before()
117 zassert_true(!z_shared_sw_isr_table[fixture.irq1_table_idx + TABLE_OFFSET].client_num, in dynamic_shared_irq_suite_before()
120 arch_irq_connect_dynamic(fixture.irq1, fixture.irq_priority, in dynamic_shared_irq_suite_before()
123 zassert_true(_sw_isr_table[fixture.irq1_table_idx + TABLE_OFFSET].isr == z_shared_isr, in dynamic_shared_irq_suite_before()
125 zassert_true(_sw_isr_table[fixture.irq1_table_idx + TABLE_OFFSET].arg == in dynamic_shared_irq_suite_before()
126 &z_shared_sw_isr_table[fixture.irq1_table_idx + TABLE_OFFSET], in dynamic_shared_irq_suite_before()
128 zassert_true(z_shared_sw_isr_table[fixture.irq1_table_idx + TABLE_OFFSET].client_num == 2, in dynamic_shared_irq_suite_before()
131 zassert_true(client_exists_at_index(test_isr_0, 0, fixture.irq1_table_idx + TABLE_OFFSET, in dynamic_shared_irq_suite_before()
135 fixture.irq1_table_idx + TABLE_OFFSET, 1), in dynamic_shared_irq_suite_before()
138 arch_irq_connect_dynamic(fixture.irq2, fixture.irq_priority, in dynamic_shared_irq_suite_before()
141 zassert_true(_sw_isr_table[fixture.irq2_table_idx + TABLE_OFFSET].isr == test_isr_2, in dynamic_shared_irq_suite_before()
143 zassert_true(_sw_isr_table[fixture.irq2_table_idx + TABLE_OFFSET].arg == (void *)2, in dynamic_shared_irq_suite_before()
145 zassert_true(!z_shared_sw_isr_table[fixture.irq2_table_idx + TABLE_OFFSET].client_num, in dynamic_shared_irq_suite_before()
164 irq_enable(fixture.irq1); in ZTEST()
165 irq_enable(fixture.irq2); in ZTEST()
167 trigger_irq(fixture.irq1); in ZTEST()
168 trigger_irq(fixture.irq2); in ZTEST()
179 irq_disable(fixture.irq1); in ZTEST()
180 irq_disable(fixture.irq2); in ZTEST()
199 arch_irq_disconnect_dynamic(fixture.irq1, fixture.irq_priority, in ZTEST()
202 zassert_true(_sw_isr_table[fixture.irq1_table_idx + TABLE_OFFSET].isr == test_isr_1, in ZTEST()
204 zassert_true(_sw_isr_table[fixture.irq1_table_idx + TABLE_OFFSET].arg == (void *)1, in ZTEST()
206 zassert_true(!z_shared_sw_isr_table[fixture.irq1_table_idx + TABLE_OFFSET].client_num, in ZTEST()
209 irq_enable(fixture.irq1); in ZTEST()
210 trigger_irq(fixture.irq1); in ZTEST()
228 irq_disable(fixture.irq1); in ZTEST()