Lines Matching refs:mon
248 struct udev_monitor *mon = igt_watch_hotplug(); in test_basic_hotplug() local
256 igt_flush_hotplugs(mon); in test_basic_hotplug()
260 igt_assert_f(igt_hotplug_detected(mon, HOTPLUG_TIMEOUT), in test_basic_hotplug()
268 igt_flush_hotplugs(mon); in test_basic_hotplug()
272 igt_assert_f(igt_hotplug_detected(mon, HOTPLUG_TIMEOUT), in test_basic_hotplug()
280 igt_cleanup_hotplug(mon); in test_basic_hotplug()
326 static bool wait_for_hotplug(struct udev_monitor *mon, int *timeout) in wait_for_hotplug() argument
333 detected = igt_hotplug_detected(mon, *timeout); in wait_for_hotplug()
346 struct udev_monitor *mon, bool connected) in try_suspend_resume_hpd() argument
354 igt_flush_hotplugs(mon); in try_suspend_resume_hpd()
372 igt_assert(wait_for_hotplug(mon, &timeout)); in try_suspend_resume_hpd()
391 igt_assert(wait_for_hotplug(mon, &timeout)); in try_suspend_resume_hpd()
407 struct udev_monitor *mon = igt_watch_hotplug(); in test_suspend_resume_hpd() local
412 try_suspend_resume_hpd(data, port, state, test, mon, false); in test_suspend_resume_hpd()
415 try_suspend_resume_hpd(data, port, state, test, mon, true); in test_suspend_resume_hpd()
417 igt_cleanup_hotplug(mon); in test_suspend_resume_hpd()
424 struct udev_monitor *mon = igt_watch_hotplug(); in test_suspend_resume_hpd_common() local
436 try_suspend_resume_hpd(data, NULL, state, test, mon, false); in test_suspend_resume_hpd_common()
439 try_suspend_resume_hpd(data, NULL, state, test, mon, true); in test_suspend_resume_hpd_common()
441 igt_cleanup_hotplug(mon); in test_suspend_resume_hpd_common()
451 struct udev_monitor *mon = igt_watch_hotplug(); in test_suspend_resume_edid_change() local
458 igt_assert(igt_hotplug_detected(mon, HOTPLUG_TIMEOUT)); in test_suspend_resume_edid_change()
459 igt_flush_hotplugs(mon); in test_suspend_resume_edid_change()
464 igt_assert(igt_hotplug_detected(mon, HOTPLUG_TIMEOUT)); in test_suspend_resume_edid_change()
476 igt_flush_hotplugs(mon); in test_suspend_resume_edid_change()
479 igt_assert(igt_hotplug_detected(mon, HOTPLUG_TIMEOUT)); in test_suspend_resume_edid_change()
616 struct udev_monitor *mon; in test_link_status() local
642 mon = igt_watch_hotplug(); in test_link_status()
672 igt_assert(igt_hotplug_detected(mon, HOTPLUG_TIMEOUT)); in test_link_status()
676 igt_flush_hotplugs(mon); in test_link_status()
698 igt_cleanup_hotplug(mon); in test_link_status()
2465 struct udev_monitor *mon = igt_watch_hotplug(); in test_hpd_without_ddc() local
2468 igt_flush_hotplugs(mon); in test_hpd_without_ddc()
2476 igt_assert(igt_hotplug_detected(mon, HOTPLUG_TIMEOUT)); in test_hpd_without_ddc()
2479 igt_cleanup_hotplug(mon); in test_hpd_without_ddc()
2485 struct udev_monitor *mon; in test_hpd_storm_detect() local
2495 mon = igt_watch_hotplug(); in test_hpd_storm_detect()
2503 count += igt_hotplug_detected(mon, 1); in test_hpd_storm_detect()
2506 igt_cleanup_hotplug(mon); in test_hpd_storm_detect()