Home
last modified time | relevance | path

Searched +full:timeout +full:- +full:secs (Results 1 – 25 of 125) sorted by relevance

12345

/linux/drivers/watchdog/
H A Dbooke_wdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Watchdog timer for PowerPC Book-E systems
8 * Copyright 2005, 2008, 2010-2011 Freescale Semiconductor Inc.
22 * Also, the wdt_period sets the watchdog timer period timeout.
23 * For E500 cpus the wdt_period sets which bit changing from 0->1 will
24 * trigger a watchdog timeout. This watchdog timeout will occur 3 times, the
55 * 2.5 * (2^(63-period+1)) / timebase_freq
58 * at least 1. This will still result in a very long timeout.
62 unsigned long long tmp = 1ULL << (64 - period); in period_to_sec()
75 * This procedure will find the highest period which will give a timeout
[all …]
H A Dsb_wdog.c74 __raw_writeq(t & 0x7fffffUL, wdog - 0x10); in sbwdog_set()
94 static unsigned long timeout = 0x7fffffUL; /* useconds: 8.3ish secs. */ variable
110 return -EBUSY; in sbwdog_open()
116 sbwdog_set(user_dog, timeout); in sbwdog_open()
142 * 42 - the answer
159 return -EFAULT; in sbwdog_write()
172 int ret = -ENOTTY; in sbwdog_ioctl()
179 ret = copy_to_user(argp, &ident, sizeof(ident)) ? -EFAULT : 0; in sbwdog_ioctl()
199 ret = -EINVAL; in sbwdog_ioctl()
202 timeout = time; in sbwdog_ioctl()
[all …]
H A Dda9063_wdt.c1 // SPDX-License-Identifier: GPL-2.0+
25 * Watchdog selector to timeout in seconds.
27 * others: timeout = 2048 ms * 2^(TWDSCALE-1).
33 #define DA9063_TWDSCALE_MAX (ARRAY_SIZE(wdt_timeout) - 1)
39 static unsigned int da9063_wdt_timeout_to_sel(unsigned int secs) in da9063_wdt_timeout_to_sel() argument
44 if (wdt_timeout[i] >= secs) in da9063_wdt_timeout_to_sel()
52 * Read the currently active timeout.
59 regmap_read(da9063->regmap, DA9063_REG_CONTROL_D, &val); in da9063_wdt_read_timeout()
66 return regmap_update_bits(da9063->regmap, DA9063_REG_CONTROL_D, in da9063_wdt_disable_timer()
72 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument
[all …]
H A Dda9062_wdt.c1 // SPDX-License-Identifier: GPL-2.0+
26 #define DA9062_TWDSCALE_MAX (ARRAY_SIZE(wdt_timeout) - 1)
29 #define DA9062_WDG_DEFAULT_TIMEOUT wdt_timeout[DA9062_TWDSCALE_MAX-1]
42 regmap_read(wdt->hw->regmap, DA9062AA_CONTROL_D, &val); in da9062_wdt_read_timeout()
47 static unsigned int da9062_wdt_timeout_to_sel(unsigned int secs) in da9062_wdt_timeout_to_sel() argument
52 if (wdt_timeout[i] >= secs) in da9062_wdt_timeout_to_sel()
61 return regmap_update_bits(wdt->hw->regmap, DA9062AA_CONTROL_F, in da9062_reset_watchdog_timer()
69 struct da9062 *chip = wdt->hw; in da9062_wdt_update_timeout_register()
71 regmap_update_bits(chip->regmap, in da9062_wdt_update_timeout_register()
78 return regmap_update_bits(chip->regmap, in da9062_wdt_update_timeout_register()
[all …]
H A Dhpwdt.c1 // 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()
[all …]
H A Dtqmx86_wdt.c1 // SPDX-License-Identifier: GPL-2.0+
19 /* default timeout (secs) */
22 static unsigned int timeout; variable
23 module_param(timeout, uint, 0);
24 MODULE_PARM_DESC(timeout,
25 "Watchdog timeout in seconds. (1<=timeout<=4096, default="
39 iowrite8(0x81, priv->io_base + TQMX86_WDCS); in tqmx86_wdt_start()
52 iowrite8(val, priv->io_base + TQMX86_WDCFG); in tqmx86_wdt_set_timeout()
54 wdd->timeout = t; in tqmx86_wdt_set_timeout()
73 struct device *dev = &pdev->dev; in tqmx86_wdt_probe()
[all …]
H A Dep93xx_wdt.c1 // SPDX-License-Identifier: GPL-2.0-only
26 /* default timeout (secs) */
33 static unsigned int timeout; variable
34 module_param(timeout, uint, 0);
35 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds.");
49 writel(0xaaaa, priv->mmio + EP93XX_WATCHDOG); in ep93xx_wdt_start()
58 writel(0xaa55, priv->mmio + EP93XX_WATCHDOG); in ep93xx_wdt_stop()
67 writel(0x5555, priv->mmio + EP93XX_WATCHDOG); in ep93xx_wdt_ping()
89 struct device *dev = &pdev->dev; in ep93xx_wdt_probe()
97 return -ENOMEM; in ep93xx_wdt_probe()
[all …]
H A Dcpwd.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* cpwd.c - driver implementation for hardware watchdog
6 * interface and Solaris-compatible ioctls as best it is
43 #define WD_BADMODEL "SUNW,501-5336"
79 unsigned long timeout; member
90 u16 timeout; member
97 /* Sun uses Altera PLD EPF8820ATC144-4
100 * 1) RIC - sends an interrupt when triggered
101 * 2) XIR - asserts XIR_B_RESET when triggered, resets CPU
102 * 3) POR - asserts POR_B_RESET when triggered, resets CPU, backplane, board
[all …]
H A Dpic32-wdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
19 #include <asm/mach-pic32/pic32.h>
46 return !!(readl(wdt->regs + WDTCON_REG) & WDTCON_WIN_EN); in pic32_wdt_is_win_enabled()
51 u32 v = readl(wdt->regs + WDTCON_REG); in pic32_wdt_get_post_scaler()
58 u32 v = readl(wdt->regs + WDTCON_REG); in pic32_wdt_get_clk_id()
65 u32 v = readl(wdt->rst_base); in pic32_wdt_bootstatus()
67 writel(RESETCON_WDT_TIMEOUT, PIC32_CLR(wdt->rst_base)); in pic32_wdt_bootstatus()
77 rate = clk_get_rate(wdt->clk); in pic32_wdt_get_timeout_secs()
82 /* default, prescaler of 32 (i.e. div-by-32) is implicit. */ in pic32_wdt_get_timeout_secs()
91 /* find time taken (in secs) to reach terminal count */ in pic32_wdt_get_timeout_secs()
[all …]
H A DiTCO_wdt.c1 // SPDX-License-Identifier: GPL-2.0+
5 * (c) Copyright 2006-2011 Wim Van Sebroeck <wim@iguana.be>.
9 * provided "AS-IS" and at no charge.
13 * document number 290655-003, 290677-014: 82801AA (ICH), 82801AB (ICHO)
14 * document number 290687-002, 298242-027: 82801BA (ICH2)
15 * document number 290733-003, 290739-013: 82801CA (ICH3-S)
16 * document number 290716-001, 290718-007: 82801CAM (ICH3-M)
17 * document number 290744-001, 290745-025: 82801DB (ICH4)
18 * document number 252337-001, 252663-008: 82801DBM (ICH4-M)
19 * document number 273599-001, 273645-002: 82801E (C-ICH)
[all …]
/linux/drivers/rtc/
H A Drtc-jz4740.c1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2009-2010, Lars-Peter Clausen <lars@metafoo.de>
9 #include <linux/clk-provider.h>
75 return readl(rtc->base + reg); in jz4740_rtc_reg_read()
82 return readl_poll_timeout(rtc->base + JZ_REG_RTC_CTRL, ctrl, in jz4740_rtc_wait_write_ready()
95 writel(JZ_RTC_WENR_MAGIC, rtc->base + JZ_REG_RTC_WENR); in jz4780_rtc_enable_write()
97 return readl_poll_timeout(rtc->base + JZ_REG_RTC_WENR, ctrl, in jz4780_rtc_enable_write()
106 if (rtc->type >= ID_JZ4760) in jz4740_rtc_reg_write()
111 writel(val, rtc->base + reg); in jz4740_rtc_reg_write()
123 spin_lock_irqsave(&rtc->lock, flags); in jz4740_rtc_ctrl_set_bits()
[all …]
H A Drtc-ab8500.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2010
63 unsigned long timeout = jiffies + HZ; in ab8500_rtc_read_time() local
65 unsigned long mins, secs; in ab8500_rtc_read_time() local
76 while (time_before(jiffies, timeout)) { in ab8500_rtc_read_time()
99 secs = (buf[3] << 8) | buf[4]; in ab8500_rtc_read_time()
100 secs = secs / COUNTS_PER_SEC; in ab8500_rtc_read_time()
101 secs = secs + (mins * 60); in ab8500_rtc_read_time()
103 rtc_time64_to_tm(secs, tm); in ab8500_rtc_read_time()
111 unsigned long no_secs, no_mins, secs = 0; in ab8500_rtc_set_time() local
[all …]
H A Drtc-sc27xx.c1 // SPDX-License-Identifier: GPL-2.0
99 /* timeout of synchronizing time and alarm registers (us) */
128 return regmap_write(rtc->regmap, rtc->base + SPRD_RTC_INT_CLR, in sprd_rtc_clear_alarm_ints()
137 ret = regmap_read(rtc->regmap, rtc->base + SPRD_RTC_SPG_VALUE, &val); in sprd_rtc_lock_alarm()
147 ret = regmap_write(rtc->regmap, rtc->base + SPRD_RTC_SPG_UPD, val); in sprd_rtc_lock_alarm()
152 ret = regmap_read_poll_timeout(rtc->regmap, in sprd_rtc_lock_alarm()
153 rtc->base + SPRD_RTC_INT_RAW_STS, val, in sprd_rtc_lock_alarm()
158 dev_err(rtc->dev, "failed to update SPG value:%d\n", ret); in sprd_rtc_lock_alarm()
162 return regmap_write(rtc->regmap, rtc->base + SPRD_RTC_INT_CLR, in sprd_rtc_lock_alarm()
167 time64_t *secs) in sprd_rtc_get_secs() argument
[all …]
/linux/drivers/scsi/cxlflash/
H A Dmain.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
64 /* TIMEOUT and RETRY definitions */
66 /* AFU command timeout values */
67 #define MC_AFU_SYNC_TIMEOUT 5 /* 5 secs */
68 #define MC_LUN_PROV_TIMEOUT 5 /* 5 secs */
69 #define MC_AFU_DEBUG_TIMEOUT 5 /* 5 secs */
107 if (ddv->flags & CXLFLASH_OCXL_DEV) in cxlflash_assign_ops()
112 if (!(ddv->flags & CXLFLASH_OCXL_DEV)) in cxlflash_assign_ops()
/linux/tools/testing/selftests/futex/functional/
H A Dfutex_requeue_pi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * Copyright © International Business Machines Corp., 2006-2008
15 * 2008-Jan-13: Initial version by Sripathi Kodi <sripathik@in.ibm.com>
16 * 2009-Nov-6: futex test adaptation by Darren Hart <dvhart@linux.intel.com>
33 #define TEST_NAME "futex-requeue-pi"
53 struct timespec *timeout; member
62 printf(" -b Broadcast wakeup (all waiters)\n"); in usage()
63 printf(" -c Use color\n"); in usage()
64 printf(" -h Display this help message\n"); in usage()
65 printf(" -l Lock the pi futex across requeue\n"); in usage()
[all …]
/linux/net/netfilter/
H A Dnf_conntrack_proto_sctp.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (c) 2004-2012 Patrick McHardy <kaber@trash.net>
42 #define SECS * HZ macro
43 #define MINS * 60 SECS
48 [SCTP_CONNTRACK_CLOSED] = 10 SECS,
49 [SCTP_CONNTRACK_COOKIE_WAIT] = 3 SECS,
50 [SCTP_CONNTRACK_COOKIE_ECHOED] = 3 SECS,
51 [SCTP_CONNTRACK_ESTABLISHED] = 210 SECS,
52 [SCTP_CONNTRACK_SHUTDOWN_SENT] = 3 SECS,
53 [SCTP_CONNTRACK_SHUTDOWN_RECD] = 3 SECS,
[all …]
H A Dnf_conntrack_proto_tcp.c1 // SPDX-License-Identifier: GPL-2.0-only
2 /* (C) 1999-2001 Paul `Rusty' Russell
3 * (C) 2002-2004 Netfilter Core Team <coreteam@netfilter.org>
4 * (C) 2002-2013 Jozsef Kadlecsik <kadlec@netfilter.org>
5 * (C) 2006-2012 Patrick McHardy <kaber@trash.net>
35 closely. They're more complex. --RR */
56 #define SECS * HZ macro
57 #define MINS * 60 SECS
63 [TCP_CONNTRACK_SYN_RECV] = 60 SECS,
66 [TCP_CONNTRACK_CLOSE_WAIT] = 60 SECS,
[all …]
/linux/Documentation/watchdog/
H A Dwatchdog-parameters.rst7 be listed here unless the driver has its own driver-specific information
10 See Documentation/admin-guide/kernel-parameters.rst for information on
14 -------------------------------------------------
21 timeout. Setting this to a non-zero value can be useful to ensure that
25 -------------------------------------------------
36 -------------------------------------------------
43 timeout:
44 Watchdog timeout in seconds. 1<= timeout <=63, default=60.
49 -------------------------------------------------
52 timeout:
[all …]
/linux/fs/xfs/
H A Dxfs_sysctl.h1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2001-2005 Silicon Graphics, Inc.
37 xfs_sysctl_val_t fstrm_timer; /* Filestream dir-AG assoc'n timeout. */
90 int log_recovery_delay; /* log recovery delay (secs) */
91 int mount_delay; /* mount setup delay (secs) */
/linux/drivers/base/firmware_loader/
H A Dfallback.c1 // SPDX-License-Identifier: GPL-2.0
19 * use small loading timeout for caching devices' firmware because all these
22 * current distributions is about 2M bytes, so 10 secs should be enough.
30 /* Restores the timeout to the value last configured during normal operation */
42 static inline int fw_sysfs_wait_timeout(struct fw_priv *fw_priv, long timeout) in fw_sysfs_wait_timeout() argument
44 return __fw_state_wait_common(fw_priv, timeout); in fw_sysfs_wait_timeout()
57 if (kill_all || !fw_priv->need_uevent) in kill_pending_fw_fallback_reqs()
68 * fw_load_sysfs_fallback() - load a firmware via the sysfs fallback mechanism
70 * @timeout: timeout to wait for the load
74 static int fw_load_sysfs_fallback(struct fw_sysfs *fw_sysfs, long timeout) in fw_load_sysfs_fallback() argument
[all …]
/linux/drivers/net/ethernet/netronome/nfp/nfpcore/
H A Dnfp_resource.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */
21 /* NFP Resource Table self-identifier */
28 * struct nfp_resource_entry - Resource table entry
38 * @region.page_offset: 256-byte page offset into target's CPP address
39 * @region.page_size: size, in 256-byte pages
78 if (!strcmp(res->name, NFP_RESOURCE_TBL_NAME)) { in nfp_cpp_resource_find()
80 return -EOPNOTSUPP; in nfp_cpp_resource_find()
82 key = crc32_posix(res->name, NFP_RESOURCE_ENTRY_NAME_SZ); in nfp_cpp_resource_find()
90 return -EIO; in nfp_cpp_resource_find()
[all …]
/linux/fs/smb/server/
H A Dtransport_tcp.c1 // SPDX-License-Identifier: GPL-2.0-or-later
45 #define KSMBD_TRANS(t) (&(t)->transport)
51 tcp_sock_set_nodelay(sock->sk); in ksmbd_tcp_nodelay()
56 sock_set_reuseaddr(sock->sk); in ksmbd_tcp_reuseaddr()
59 static inline void ksmbd_tcp_rcv_timeout(struct socket *sock, s64 secs) in ksmbd_tcp_rcv_timeout() argument
61 lock_sock(sock->sk); in ksmbd_tcp_rcv_timeout()
62 if (secs && secs < MAX_SCHEDULE_TIMEOUT / HZ - 1) in ksmbd_tcp_rcv_timeout()
63 sock->sk->sk_rcvtimeo = secs * HZ; in ksmbd_tcp_rcv_timeout()
65 sock->sk->sk_rcvtimeo = MAX_SCHEDULE_TIMEOUT; in ksmbd_tcp_rcv_timeout()
66 release_sock(sock->sk); in ksmbd_tcp_rcv_timeout()
[all …]
/linux/drivers/net/dsa/microchip/
H A Dksz9477.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2017-2024 Microchip Technology Inc.
11 #include <linux/platform_data/microchip-ksz.h>
50 if (!dsa_is_cpu_port(dev->ds, port)) in ksz9477_change_mtu()
72 mutex_lock(&dev->vlan_mutex); in ksz9477_get_vlan_table()
80 dev_dbg(dev->dev, "Failed to read vlan table\n"); in ksz9477_get_vlan_table()
91 mutex_unlock(&dev->vlan_mutex); in ksz9477_get_vlan_table()
101 mutex_lock(&dev->vlan_mutex); in ksz9477_set_vlan_table()
113 dev_dbg(dev->dev, "Failed to write vlan table\n"); in ksz9477_set_vlan_table()
120 dev->vlan_cache[vid].table[0] = vlan_table[0]; in ksz9477_set_vlan_table()
[all …]
/linux/kernel/trace/
H A Dring_buffer_benchmark.c1 // SPDX-License-Identifier: GPL-2.0
58 MODULE_PARM_DESC(producer_fifo, "use fifo for producer: 0 - disabled, 1 - low prio, 2 - fifo");
61 MODULE_PARM_DESC(consumer_fifo, "use fifo for consumer: 0 - disabled, 1 - low prio, 2 - fifo");
126 commit = local_read(&rpage->commit) & 0xfffff; in read_page()
129 if (i >= (page_size - offsetof(struct rb_page, data))) { in read_page()
134 inc = -1; in read_page()
135 event = (void *)&rpage->data[i]; in read_page()
136 switch (event->type_len) { in read_page()
139 if (!event->time_delta) in read_page()
141 inc = event->array[0] + 4; in read_page()
[all …]
/linux/Documentation/networking/
H A Dxfrm_sync.rst1 .. SPDX-License-Identifier: GPL-2.0
21 This way a backup stays as closely up-to-date as an active member.
25 For this reason, we also add a nagle-like algorithm to restrict
27 know if the replay sequence threshold is reached or 10 secs have passed"
28 These thresholds are set system-wide via sysctls or can be updated
32 - the lifetime byte counter
36 - the replay sequence for both inbound and outbound
39 ----------------------
41 nlmsghdr:aevent_id:optional-TLVs.
76 message (kernel<->user) as well the cause (config, query or event).
[all …]

12345