Lines Matching +full:timeout +full:- +full:secs

1 // SPDX-License-Identifier: GPL-2.0-only
29 #define SECS_TO_TICKS(secs) ((secs) * 1000 / 128) argument
39 static int kdumptimeout = -1;
41 static void __iomem *pci_mem_addr; /* the PCI-memory address */
72 int reload = SECS_TO_TICKS(min(wdd->timeout, wdd->max_hw_heartbeat_ms/1000)); in hpwdt_start()
74 dev_dbg(wdd->parent, "start watchdog 0x%08x:0x%08x:0x%02x\n", wdd->timeout, reload, control); in hpwdt_start()
107 int reload = SECS_TO_TICKS(min(wdd->timeout, wdd->max_hw_heartbeat_ms/1000)); in hpwdt_ping()
109 dev_dbg(wdd->parent, "ping watchdog 0x%08x:0x%08x\n", wdd->timeout, reload); in hpwdt_ping()
122 dev_dbg(wdd->parent, "set_timeout = %d\n", val); in hpwdt_settimeout()
124 wdd->timeout = val; in hpwdt_settimeout()
125 if (val <= wdd->pretimeout) { in hpwdt_settimeout()
126 dev_dbg(wdd->parent, "pretimeout < timeout. Setting to zero\n"); in hpwdt_settimeout()
127 wdd->pretimeout = 0; in hpwdt_settimeout()
142 dev_dbg(wdd->parent, "set_pretimeout = %d\n", req); in hpwdt_set_pretimeout()
145 if (val >= wdd->timeout) in hpwdt_set_pretimeout()
146 return -EINVAL; in hpwdt_set_pretimeout()
150 dev_dbg(wdd->parent, "Rounding pretimeout to: %d\n", val); in hpwdt_set_pretimeout()
152 wdd->pretimeout = val; in hpwdt_set_pretimeout()
188 unsigned int val = max((unsigned int)kdumptimeout, hpwdt_dev.timeout); in hpwdt_pretimeout()
228 .timeout = DEFAULT_MARGIN,
255 dev_info(&dev->dev, in hpwdt_init_nmi_decoding()
265 dev_warn(&dev->dev, in hpwdt_init_nmi_decoding()
292 if (dev->subsystem_vendor != PCI_VENDOR_ID_HP && in hpwdt_init_one()
293 dev->subsystem_vendor != PCI_VENDOR_ID_HP_3PAR) { in hpwdt_init_one()
294 dev_warn(&dev->dev, in hpwdt_init_one()
296 return -ENODEV; in hpwdt_init_one()
300 dev_dbg(&dev->dev, "Not supported on this device\n"); in hpwdt_init_one()
301 return -ENODEV; in hpwdt_init_one()
305 dev_warn(&dev->dev, in hpwdt_init_one()
307 ent->vendor, ent->device); in hpwdt_init_one()
308 return -ENODEV; in hpwdt_init_one()
313 dev_warn(&dev->dev, in hpwdt_init_one()
315 retval = -ENOMEM; in hpwdt_init_one()
324 dev_info(&dev->dev, "timer is running\n"); in hpwdt_init_one()
342 if (pretimeout && hpwdt_dev.timeout <= PRETIMEOUT_SEC) { in hpwdt_init_one()
343 dev_warn(&dev->dev, "timeout <= pretimeout. Setting pretimeout to zero\n"); in hpwdt_init_one()
349 hpwdt_dev.parent = &dev->dev; in hpwdt_init_one()
354 dev_info(&dev->dev, "HPE Watchdog Timer Driver: Version: %s\n", in hpwdt_init_one()
356 dev_info(&dev->dev, "timeout: %d seconds (nowayout=%d)\n", in hpwdt_init_one()
357 hpwdt_dev.timeout, nowayout); in hpwdt_init_one()
358 dev_info(&dev->dev, "pretimeout: %s.\n", in hpwdt_init_one()
360 dev_info(&dev->dev, "kdumptimeout: %d.\n", kdumptimeout); in hpwdt_init_one()
419 MODULE_PARM_DESC(soft_margin, "Watchdog timeout in seconds");
421 module_param_named(timeout, soft_margin, int, 0);
422 MODULE_PARM_DESC(timeout, "Alias of soft_margin");
429 MODULE_PARM_DESC(kdumptimeout, "Timeout applied for crash kernel transition in seconds");