Lines Matching refs:test_intr_handle
65 struct rte_intr_handle *test_intr_handle; in test_interrupt_init() local
78 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_INVALID]; in test_interrupt_init()
79 if (rte_intr_fd_set(test_intr_handle, -1)) in test_interrupt_init()
81 if (rte_intr_type_set(test_intr_handle, RTE_INTR_HANDLE_UNKNOWN)) in test_interrupt_init()
84 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID]; in test_interrupt_init()
85 if (rte_intr_fd_set(test_intr_handle, pfds.readfd)) in test_interrupt_init()
87 if (rte_intr_type_set(test_intr_handle, RTE_INTR_HANDLE_UNKNOWN)) in test_interrupt_init()
90 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_UIO]; in test_interrupt_init()
91 if (rte_intr_fd_set(test_intr_handle, pfds.readfd)) in test_interrupt_init()
93 if (rte_intr_type_set(test_intr_handle, RTE_INTR_HANDLE_UIO)) in test_interrupt_init()
96 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_ALARM]; in test_interrupt_init()
97 if (rte_intr_fd_set(test_intr_handle, pfds.readfd)) in test_interrupt_init()
99 if (rte_intr_type_set(test_intr_handle, RTE_INTR_HANDLE_ALARM)) in test_interrupt_init()
102 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_DEV_EVENT]; in test_interrupt_init()
103 if (rte_intr_fd_set(test_intr_handle, pfds.readfd)) in test_interrupt_init()
105 if (rte_intr_type_set(test_intr_handle, RTE_INTR_HANDLE_DEV_EVENT)) in test_interrupt_init()
108 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_CASE1]; in test_interrupt_init()
109 if (rte_intr_fd_set(test_intr_handle, pfds.writefd)) in test_interrupt_init()
111 if (rte_intr_type_set(test_intr_handle, RTE_INTR_HANDLE_UIO)) in test_interrupt_init()
210 struct rte_intr_handle *test_intr_handle; in test_interrupt_callback() local
232 test_intr_handle = intr_handles[test_intr_type]; in test_interrupt_callback()
233 if (test_interrupt_handle_compare(intr_handle, test_intr_handle) == 0) in test_interrupt_callback()
257 struct rte_intr_handle *test_intr_handle; in test_interrupt_enable() local
266 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_INVALID]; in test_interrupt_enable()
267 if (rte_intr_enable(test_intr_handle) == 0) { in test_interrupt_enable()
274 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID]; in test_interrupt_enable()
275 if (rte_intr_enable(test_intr_handle) == 0) { in test_interrupt_enable()
282 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_ALARM]; in test_interrupt_enable()
283 if (rte_intr_enable(test_intr_handle) == 0) { in test_interrupt_enable()
290 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_DEV_EVENT]; in test_interrupt_enable()
291 if (rte_intr_enable(test_intr_handle) == 0) { in test_interrupt_enable()
298 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_CASE1]; in test_interrupt_enable()
299 if (rte_intr_enable(test_intr_handle) < 0) { in test_interrupt_enable()
304 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_UIO]; in test_interrupt_enable()
305 if (rte_intr_enable(test_intr_handle) == 0) { in test_interrupt_enable()
320 struct rte_intr_handle *test_intr_handle; in test_interrupt_disable() local
330 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_INVALID]; in test_interrupt_disable()
331 if (rte_intr_disable(test_intr_handle) == 0) { in test_interrupt_disable()
338 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID]; in test_interrupt_disable()
339 if (rte_intr_disable(test_intr_handle) == 0) { in test_interrupt_disable()
346 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_ALARM]; in test_interrupt_disable()
347 if (rte_intr_disable(test_intr_handle) == 0) { in test_interrupt_disable()
354 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_DEV_EVENT]; in test_interrupt_disable()
355 if (rte_intr_disable(test_intr_handle) == 0) { in test_interrupt_disable()
362 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_CASE1]; in test_interrupt_disable()
363 if (rte_intr_disable(test_intr_handle) < 0) { in test_interrupt_disable()
368 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_UIO]; in test_interrupt_disable()
369 if (rte_intr_disable(test_intr_handle) == 0) { in test_interrupt_disable()
385 struct rte_intr_handle *test_intr_handle; in test_interrupt_full_path_check() local
388 test_intr_handle = intr_handles[intr_type]; in test_interrupt_full_path_check()
390 if (rte_intr_callback_register(test_intr_handle, in test_interrupt_full_path_check()
391 test_interrupt_callback, test_intr_handle) < 0) { in test_interrupt_full_path_check()
405 rte_intr_callback_unregister(test_intr_handle, in test_interrupt_full_path_check()
407 test_intr_handle)) < 0) { in test_interrupt_full_path_check()
430 struct rte_intr_handle *test_intr_handle; in test_interrupt() local
481 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_INVALID]; in test_interrupt()
482 if (rte_intr_callback_register(test_intr_handle, in test_interrupt()
483 test_interrupt_callback, test_intr_handle) == 0) { in test_interrupt()
490 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID]; in test_interrupt()
491 if (rte_intr_callback_register(test_intr_handle, NULL, in test_interrupt()
492 test_intr_handle) == 0) { in test_interrupt()
507 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_INVALID]; in test_interrupt()
508 if (rte_intr_callback_unregister(test_intr_handle, in test_interrupt()
509 test_interrupt_callback, test_intr_handle) > 0) { in test_interrupt()
516 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID]; in test_interrupt()
517 if (rte_intr_callback_register(test_intr_handle, in test_interrupt()
518 test_interrupt_callback, test_intr_handle) < 0) { in test_interrupt()
522 if (rte_intr_callback_register(test_intr_handle, in test_interrupt()
523 test_interrupt_callback_1, test_intr_handle) < 0) { in test_interrupt()
528 if (rte_intr_callback_unregister(test_intr_handle, in test_interrupt()
534 if (rte_intr_callback_unregister(test_intr_handle, in test_interrupt()
535 test_interrupt_callback, test_intr_handle) <= 0) { in test_interrupt()
539 if (rte_intr_callback_unregister(test_intr_handle, in test_interrupt()
566 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID]; in test_interrupt()
567 rte_intr_callback_unregister(test_intr_handle, in test_interrupt()
569 rte_intr_callback_unregister(test_intr_handle, in test_interrupt()
572 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_UIO]; in test_interrupt()
573 rte_intr_callback_unregister(test_intr_handle, in test_interrupt()
575 rte_intr_callback_unregister(test_intr_handle, in test_interrupt()
578 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_ALARM]; in test_interrupt()
579 rte_intr_callback_unregister(test_intr_handle, in test_interrupt()
581 rte_intr_callback_unregister(test_intr_handle, in test_interrupt()
584 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_DEV_EVENT]; in test_interrupt()
585 rte_intr_callback_unregister(test_intr_handle, in test_interrupt()
587 rte_intr_callback_unregister(test_intr_handle, in test_interrupt()