Lines Matching full:tops
52 /* There are sixteen TOPs (timeout periods) that can be set in the watchdog. */
211 * watchdog-caused reset happens after two watchdog TOPs elapsed. in dw_wdt_set_timeout()
420 * TOPs array can be arbitrary ordered with nearly any sixteen uint numbers
422 * passed TOPs array to pre-calculate the effective timeouts and to sort the
426 static void dw_wdt_handle_tops(struct dw_wdt *dw_wdt, const u32 *tops) in dw_wdt_handle_tops() argument
433 * We walk over the passed TOPs array and calculate corresponding in dw_wdt_handle_tops()
435 * is needed to distinguish the TOPs with very close timeouts and to in dw_wdt_handle_tops()
440 tout.sec = tops[val] / dw_wdt->rate; in dw_wdt_handle_tops()
441 msec = (u64)tops[val] * MSEC_PER_SEC; in dw_wdt_handle_tops()
465 const u32 *tops; in dw_wdt_init_timeouts() local
475 tops = dw_wdt_fix_tops; in dw_wdt_init_timeouts()
478 "snps,watchdog-tops", of_tops, DW_WDT_NUM_TOPS, in dw_wdt_init_timeouts()
481 dev_warn(dev, "No valid TOPs array specified\n"); in dw_wdt_init_timeouts()
482 tops = dw_wdt_fix_tops; in dw_wdt_init_timeouts()
484 tops = of_tops; in dw_wdt_init_timeouts()
488 /* Convert the specified TOPs into an array of watchdog timeouts. */ in dw_wdt_init_timeouts()
489 dw_wdt_handle_tops(dw_wdt, tops); in dw_wdt_init_timeouts()