Home
last modified time | relevance | path

Searched refs:wd_timeout_table (Results 1 – 2 of 2) sorted by relevance

/linux/lib/
H A Dutil_macros_kunit.c27 static u32 wd_timeout_table[] = { 2, 4, 6, 8, 16, 32, 48, 64 }; in test_find_closest() local
57 FIND_CLOSEST_RANGE_CHECK(-3, 3, wd_timeout_table, 0); in test_find_closest()
58 FIND_CLOSEST_RANGE_CHECK(4, 5, wd_timeout_table, 1); in test_find_closest()
59 FIND_CLOSEST_RANGE_CHECK(6, 7, wd_timeout_table, 2); in test_find_closest()
60 FIND_CLOSEST_RANGE_CHECK(8, 12, wd_timeout_table, 3); in test_find_closest()
61 FIND_CLOSEST_RANGE_CHECK(13, 24, wd_timeout_table, 4); in test_find_closest()
62 FIND_CLOSEST_RANGE_CHECK(25, 40, wd_timeout_table, 5); in test_find_closest()
63 FIND_CLOSEST_RANGE_CHECK(41, 56, wd_timeout_table, 6); in test_find_closest()
64 FIND_CLOSEST_RANGE_CHECK(57, 128, wd_timeout_table, 7); in test_find_closest()
135 static u32 wd_timeout_table[] = { 64, 48, 32, 16, 8, 6, 4, 2 }; in test_find_closest_descending() local
[all …]
/linux/drivers/watchdog/
H A Dsimatic-ipc-wdt.c62 static u32 wd_timeout_table[] = {2, 4, 6, 8, 16, 32, 48, 64 }; variable
85 int timeout_idx = find_closest(t, wd_timeout_table, in wd_set_timeout()
86 ARRAY_SIZE(wd_timeout_table)); in wd_set_timeout()
89 wdd->timeout = wd_timeout_table[timeout_idx]; in wd_set_timeout()
128 timeout_idx = find_closest(TIMEOUT_DEF, wd_timeout_table, in wd_setup()
129 ARRAY_SIZE(wd_timeout_table)); in wd_setup()