Lines Matching refs:test_intr_handle
226 struct rte_intr_handle test_intr_handle; in test_interrupt_enable() local
235 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_INVALID]; in test_interrupt_enable()
236 if (rte_intr_enable(&test_intr_handle) == 0) { in test_interrupt_enable()
243 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID]; in test_interrupt_enable()
244 if (rte_intr_enable(&test_intr_handle) == 0) { in test_interrupt_enable()
251 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_ALARM]; in test_interrupt_enable()
252 if (rte_intr_enable(&test_intr_handle) == 0) { in test_interrupt_enable()
259 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_DEV_EVENT]; in test_interrupt_enable()
260 if (rte_intr_enable(&test_intr_handle) == 0) { in test_interrupt_enable()
267 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_CASE1]; in test_interrupt_enable()
268 if (rte_intr_enable(&test_intr_handle) < 0) { in test_interrupt_enable()
273 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_UIO]; in test_interrupt_enable()
274 if (rte_intr_enable(&test_intr_handle) == 0) { in test_interrupt_enable()
289 struct rte_intr_handle test_intr_handle; in test_interrupt_disable() local
299 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_INVALID]; in test_interrupt_disable()
300 if (rte_intr_disable(&test_intr_handle) == 0) { in test_interrupt_disable()
307 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID]; in test_interrupt_disable()
308 if (rte_intr_disable(&test_intr_handle) == 0) { in test_interrupt_disable()
315 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_ALARM]; in test_interrupt_disable()
316 if (rte_intr_disable(&test_intr_handle) == 0) { in test_interrupt_disable()
323 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_DEV_EVENT]; in test_interrupt_disable()
324 if (rte_intr_disable(&test_intr_handle) == 0) { in test_interrupt_disable()
331 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_CASE1]; in test_interrupt_disable()
332 if (rte_intr_disable(&test_intr_handle) < 0) { in test_interrupt_disable()
337 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_UIO]; in test_interrupt_disable()
338 if (rte_intr_disable(&test_intr_handle) == 0) { in test_interrupt_disable()
354 struct rte_intr_handle test_intr_handle; in test_interrupt_full_path_check() local
357 test_intr_handle = intr_handles[intr_type]; in test_interrupt_full_path_check()
359 if (rte_intr_callback_register(&test_intr_handle, in test_interrupt_full_path_check()
360 test_interrupt_callback, &test_intr_handle) < 0) { in test_interrupt_full_path_check()
374 rte_intr_callback_unregister(&test_intr_handle, in test_interrupt_full_path_check()
376 &test_intr_handle)) < 0) { in test_interrupt_full_path_check()
399 struct rte_intr_handle test_intr_handle; in test_interrupt() local
447 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_INVALID]; in test_interrupt()
448 if (rte_intr_callback_register(&test_intr_handle, in test_interrupt()
449 test_interrupt_callback, &test_intr_handle) == 0) { in test_interrupt()
456 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID]; in test_interrupt()
457 if (rte_intr_callback_register(&test_intr_handle, NULL, &test_intr_handle) == 0) { in test_interrupt()
472 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_INVALID]; in test_interrupt()
473 if (rte_intr_callback_unregister(&test_intr_handle, in test_interrupt()
474 test_interrupt_callback, &test_intr_handle) > 0) { in test_interrupt()
481 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID]; 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()
487 if (rte_intr_callback_register(&test_intr_handle, in test_interrupt()
488 test_interrupt_callback_1, &test_intr_handle) < 0) { in test_interrupt()
493 if (rte_intr_callback_unregister(&test_intr_handle, in test_interrupt()
499 if (rte_intr_callback_unregister(&test_intr_handle, in test_interrupt()
500 test_interrupt_callback, &test_intr_handle) <= 0) { in test_interrupt()
504 if (rte_intr_callback_unregister(&test_intr_handle, in test_interrupt()
531 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID]; in test_interrupt()
532 rte_intr_callback_unregister(&test_intr_handle, in test_interrupt()
534 rte_intr_callback_unregister(&test_intr_handle, in test_interrupt()
537 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_UIO]; in test_interrupt()
538 rte_intr_callback_unregister(&test_intr_handle, in test_interrupt()
540 rte_intr_callback_unregister(&test_intr_handle, in test_interrupt()
543 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_ALARM]; in test_interrupt()
544 rte_intr_callback_unregister(&test_intr_handle, in test_interrupt()
546 rte_intr_callback_unregister(&test_intr_handle, in test_interrupt()
549 test_intr_handle = intr_handles[TEST_INTERRUPT_HANDLE_VALID_DEV_EVENT]; in test_interrupt()
550 rte_intr_callback_unregister(&test_intr_handle, in test_interrupt()
552 rte_intr_callback_unregister(&test_intr_handle, in test_interrupt()