Lines Matching full:tops
51 /* There are sixteen TOPs (timeout periods) that can be set in the watchdog. */
210 * watchdog-caused reset happens after two watchdog TOPs elapsed. in dw_wdt_set_timeout()
417 * TOPs array can be arbitrary ordered with nearly any sixteen uint numbers
419 * passed TOPs array to pre-calculate the effective timeouts and to sort the
423 static void dw_wdt_handle_tops(struct dw_wdt *dw_wdt, const u32 *tops) in dw_wdt_handle_tops() argument
430 * We walk over the passed TOPs array and calculate corresponding in dw_wdt_handle_tops()
432 * is needed to distinguish the TOPs with very close timeouts and to in dw_wdt_handle_tops()
437 tout.sec = tops[val] / dw_wdt->rate; in dw_wdt_handle_tops()
438 msec = (u64)tops[val] * MSEC_PER_SEC; in dw_wdt_handle_tops()
462 const u32 *tops; in dw_wdt_init_timeouts() local
472 tops = dw_wdt_fix_tops; in dw_wdt_init_timeouts()
475 "snps,watchdog-tops", of_tops, DW_WDT_NUM_TOPS, in dw_wdt_init_timeouts()
478 dev_warn(dev, "No valid TOPs array specified\n"); in dw_wdt_init_timeouts()
479 tops = dw_wdt_fix_tops; in dw_wdt_init_timeouts()
481 tops = of_tops; in dw_wdt_init_timeouts()
485 /* Convert the specified TOPs into an array of watchdog timeouts. */ in dw_wdt_init_timeouts()
486 dw_wdt_handle_tops(dw_wdt, tops); in dw_wdt_init_timeouts()