Home
last modified time | relevance | path

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

12345678910>>...20

/linux/drivers/watchdog/
H A Ddw_wdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright 2010-2011 Picochip Ltd., Jamie Iles
7 * in the many subsystems. The watchdog has 16 different timeout periods
51 /* There are sixteen TOPs (timeout periods) that can be set in the watchdog. */
78 unsigned int sec; member
93 u32 timeout; member
104 return readl(dw_wdt->regs + WDOG_CONTROL_REG_OFFSET) & in dw_wdt_is_enabled()
112 val = readl(dw_wdt->regs + WDOG_CONTROL_REG_OFFSET); in dw_wdt_update_mode()
117 writel(val, dw_wdt->regs + WDOG_CONTROL_REG_OFFSET); in dw_wdt_update_mode()
119 dw_wdt->rmod = rmod; in dw_wdt_update_mode()
[all …]
H A Duniphier_wdt.c1 // SPDX-License-Identifier: GPL-2.0
35 #define SEC_TO_WDTTIMSET_PRD(sec) \ argument
36 (ilog2(sec) + WDTTIMSET_PERIOD_1_SEC)
44 static unsigned int timeout = 0; variable
62 ret = regmap_write_bits(wdev->regmap, WDTCTRL, in uniphier_watchdog_ping()
69 ret = regmap_read_poll_timeout(wdev->regmap, WDTCTRL, val, in uniphier_watchdog_ping()
76 static int __uniphier_watchdog_start(struct regmap *regmap, unsigned int sec) in __uniphier_watchdog_start() argument
89 SEC_TO_WDTTIMSET_PRD(sec)); in __uniphier_watchdog_start()
113 static int __uniphier_watchdog_restart(struct regmap *regmap, unsigned int sec) in __uniphier_watchdog_restart() argument
121 return __uniphier_watchdog_start(regmap, sec); in __uniphier_watchdog_restart()
[all …]
H A Dwatchdog_core.c1 // SPDX-License-Identifier: GPL-2.0+
5 * (c) Copyright 2008-2011 Alan Cox <alan@lxorguk.ukuu.org.uk>,
8 * (c) Copyright 2008-2011 Wim Van Sebroeck <wim@iguana.be>.
22 * This material is provided "AS-IS" and at no charge.
29 #include <linux/errno.h> /* For the -ENODEV/... values */
46 static int stop_on_reboot = -1;
69 list_add_tail(&wdd->deferred, in watchdog_deferred_registration_add()
82 list_del(&wdd_tmp->deferred); in watchdog_deferred_registration_del()
91 * Check that we have valid min and max timeout values, if in watchdog_check_min_max_timeout()
94 if (!wdd->max_hw_heartbeat_ms && wdd->min_timeout > wdd->max_timeout) { in watchdog_check_min_max_timeout()
[all …]
H A Dmenf21bmc_wdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
25 #define BMC_WD_TIMEOUT_MIN 1 /* in sec */
26 #define BMC_WD_TIMEOUT_MAX 6553 /* in sec */
42 rst_rsn = i2c_smbus_read_byte_data(data->i2c_client, BMC_CMD_RST_RSN); in menf21bmc_wdt_set_bootstatus()
47 data->wdt.bootstatus |= WDIOF_CARDRESET; in menf21bmc_wdt_set_bootstatus()
49 data->wdt.bootstatus |= WDIOF_EXTERN1; in menf21bmc_wdt_set_bootstatus()
51 data->wdt.bootstatus |= WDIOF_EXTERN2; in menf21bmc_wdt_set_bootstatus()
53 data->wdt.bootstatus |= WDIOF_POWERUNDER; in menf21bmc_wdt_set_bootstatus()
62 return i2c_smbus_write_byte(drv_data->i2c_client, BMC_CMD_WD_ON); in menf21bmc_wdt_start()
69 return i2c_smbus_write_byte_data(drv_data->i2c_client, in menf21bmc_wdt_stop()
[all …]
H A Dlenovo_se10_wdt.c1 // SPDX-License-Identifier: GPL-2.0-or-later
36 #define DRVNAME "lenovo-se10-wdt"
38 /*The timeout range is 1-255 seconds*/
43 #define WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */
47 static int timeout; /* in seconds */ variable
48 module_param(timeout, int, 0);
49 MODULE_PARM_DESC(timeout,
50 "Watchdog timeout in seconds. 1 <= timeout <= 255, default="
66 return -EBUSY; in set_bram()
109 static int wdt_set_timeout(struct watchdog_device *wdog, unsigned int timeout) in wdt_set_timeout() argument
[all …]
H A Dw83627hf_wdt.c1 // SPDX-License-Identifier: GPL-2.0+
16 * (c) Copyright 2000-2001 Marek Michalkiewicz <marekm@linux.org.pl>
23 * "AS-IS" and at no charge.
40 #define WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */
43 static int cr_wdt_timeout; /* WDT timeout register */
54 static int timeout; /* in seconds */ variable
55 module_param(timeout, int, 0);
56 MODULE_PARM_DESC(timeout,
57 "Watchdog timeout in seconds. 1 <= timeout <= 255, default="
135 return -EBUSY; in superio_enter()
[all …]
H A Dwafer5823wdt.c1 // SPDX-License-Identifier: GPL-2.0+
7 * (c) Copyright 2002 Justin Cormack <justin@street-vision.com>
14 * (c) Copyright 1996-1997 Alan Cox <alan@lxorguk.ukuu.org.uk>,
19 * "AS-IS" and at no charge.
42 #define WD_TIMO 60 /* 60 sec default timeout */
49 * You must set these - there is no sane way to probe for this board.
51 * To enable, write the timeout value in seconds (1 to 255) to I/O
60 static int timeout = WD_TIMO; /* in seconds */ variable
61 module_param(timeout, int, 0);
62 MODULE_PARM_DESC(timeout,
[all …]
H A Dadvantechwdt.c1 // SPDX-License-Identifier: GPL-2.0+
5 * (c) Copyright 2000-2001 Marek Michalkiewicz <marekm@linux.org.pl>
15 * "AS-IS" and at no charge.
19 * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com>
22 * 16-Oct-2002 Rob Radez <rob@osinvestor.com>
44 #define WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */
52 * You must set these - there is no sane way to probe for this board.
54 * To enable or restart, write the timeout value in seconds (1 to 63)
56 * Both are 0x443 for most boards (tested on a PCA-6276VE-00B1), but
57 * check your manual (at least the PCA-6159 seems to be different -
[all …]
H A Dat91sam9_wdt.c1 // SPDX-License-Identifier: GPL-2.0+
5 * Copyright (C) 2008 Renaud CERRATO r.cerrato@til-technologies.fr
11 * timeout need to be set from Linux, be sure that the bootstrap or the
41 readl_relaxed((wdt)->base + (field))
43 writel_relaxed((val), (wdt)->base + (field))
52 #define secs_to_ticks(s) ((s) ? (((s) << 8) - 1) : 0)
62 /* Hardware timeout in seconds */
68 /* User land timeout */
123 if (time_before(jiffies, wdt->next_heartbeat) || in at91_ping()
124 !watchdog_active(&wdt->wdd)) { in at91_ping()
[all …]
H A Di6300esb.c1 // SPDX-License-Identifier: GPL-2.0-or-later
8 * based on i810-tco.c which is in turn based on softdog.c
12 * 6300ESB chip : document number 300641-004
49 #define ESB_TIMER1_REG(w) ((w)->base + 0x00)/* Timer1 value after each reset */
50 #define ESB_TIMER2_REG(w) ((w)->base + 0x04)/* Timer2 value after each reset */
51 #define ESB_GINTSR_REG(w) ((w)->base + 0x08)/* General Interrupt Status Reg */
52 #define ESB_RELOAD_REG(w) ((w)->base + 0x0c)/* Reload register */
60 #define ESB_WDT_REBOOT (0x01 << 5) /* Enable reboot on timeout */
62 #define ESB_WDT_INTTYPE (0x03 << 0) /* Interrupt type on timer1 timeout */
66 #define ESB_WDT_RELOAD (0x01 << 8) /* prevent timeout */
[all …]
/linux/Documentation/watchdog/
H A Dmlx-wdt.rst16 Actual HW timeout can be defined as a power of 2 msec.
17 e.g. timeout 20 sec will be rounded up to 32768 msec.
18 The maximum timeout period is 32 sec (32768 msec.),
19 Get time-left isn't supported
22 Actual HW timeout is defined in sec. and it's the same as
23 a user-defined timeout.
24 Maximum timeout is 255 sec.
25 Get time-left is supported.
28 Same as Type 2 with extended maximum timeout period.
29 Maximum timeout is 65535 sec.
[all …]
/linux/drivers/rtc/
H A Drtc-mc146818-lib.c1 // SPDX-License-Identifier: GPL-2.0-only
16 * Execute a function while the UIP (Update-in-progress) bit of the RTC is
17 * unset. The timeout is configurable by the caller in ms.
22 int timeout, in mc146818_avoid_UIP() argument
29 for (i = 0; UIP_RECHECK_LOOPS_MS(i) < timeout; i++) { in mc146818_avoid_UIP()
91 * If the UIP (Update-in-progress) bit of the RTC is set for more then
119 * by the RTC when initially set to a non-zero value. in mc146818_get_time_callback()
121 p->time->tm_sec = seconds; in mc146818_get_time_callback()
122 p->time->tm_min = CMOS_READ(RTC_MINUTES); in mc146818_get_time_callback()
123 p->time->tm_hour = CMOS_READ(RTC_HOURS); in mc146818_get_time_callback()
[all …]
H A Drtc-zynqmp.c1 // SPDX-License-Identifier: GPL-2.0
47 #define RTC_MIN_OFFSET -32768000
65 * The value written will be updated after 1 sec into the in xlnx_rtc_set_time()
66 * seconds read register, so we need to program time +1 sec in xlnx_rtc_set_time()
71 writel(new_time, xrtcdev->reg_base + RTC_SET_TM_WR); in xlnx_rtc_set_time()
81 writel(RTC_INT_SEC, xrtcdev->reg_base + RTC_INT_STS); in xlnx_rtc_set_time()
92 status = readl(xrtcdev->reg_base + RTC_INT_STS); in xlnx_rtc_read_time()
99 read_time = readl(xrtcdev->reg_base + RTC_CUR_TM); in xlnx_rtc_read_time()
105 * Since we add +1 sec while writing, we need to -1 sec while in xlnx_rtc_read_time()
108 read_time = readl(xrtcdev->reg_base + RTC_SET_TM_RD) - 1; in xlnx_rtc_read_time()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_tc_edt.sh2 # SPDX-License-Identifier: GPL-2.0
9 if [[ $EUID -ne 0 ]]; then
15 # check that nc, dd, and timeout are present
16 command -v nc >/dev/null 2>&1 || \
18 command -v dd >/dev/null 2>&1 || \
20 command -v timeout >/dev/null 2>&1 || \
21 { echo >&2 "timeout is not available"; exit 1; }
23 readonly NS_SRC="ns-src-$(mktemp -u XXXXXX)"
24 readonly NS_DST="ns-dst-$(mktemp -u XXXXXX)"
37 set -e # exit on error
[all …]
/linux/Documentation/devicetree/bindings/watchdog/
H A Dts4800-wdt.txt4 - compatible: must be "technologic,ts4800-wdt"
5 - syscon: phandle / integer array that points to the syscon node which
7 - phandle to FPGA's syscon
8 - offset to the watchdog register
11 - timeout-sec: contains the watchdog timeout in seconds.
16 compatible = "syscon", "simple-mfd";
18 reg-io-width = <2>;
21 compatible = "technologic,ts4800-wdt";
23 timeout-sec = <10>;
H A Dmarvel.txt5 - Compatibility : "marvell,orion-wdt"
6 "marvell,armada-370-wdt"
7 "marvell,armada-xp-wdt"
8 "marvell,armada-375-wdt"
9 "marvell,armada-380-wdt"
11 - reg : Should contain two entries: first one with the
15 For "marvell,armada-375-wdt" and "marvell,armada-380-wdt":
17 - reg : A third entry is mandatory and should contain the
20 Clocks required for compatibles = "marvell,orion-wdt",
21 "marvell,armada-370-wdt":
[all …]
H A Dmediatek,mtk-wdt.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/watchdog/mediatek,mtk-wdt.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Matthias Brugger <matthias.bgg@gmail.com>
13 The watchdog supports a pre-timeout interrupt that fires
14 timeout-sec/2 before the expiry.
17 - $ref: watchdog.yaml#
22 - enum:
23 - mediatek,mt2712-wdt
[all …]
H A Dst_lpc_wdt.txt1 STMicroelectronics Low Power Controller (LPC) - Watchdog
7 [See: ../rtc/rtc-st-lpc.txt for RTC options]
8 [See: ../timer/st,stih407-lpc for Clocksource options]
12 - compatible : Should be: "st,stih407-lpc"
13 - reg : LPC registers base address + size
14 - interrupts : LPC interrupt line number and associated flags
15 - clocks : Clock used by LPC device (See: ../clock/clock-bindings.txt)
16 - st,lpc-mode : The LPC can run either one of three modes:
24 - st,syscfg : Phandle to syscfg node used to enable watchdog and configure
26 - timeout-sec : Watchdog timeout in seconds
[all …]
H A Dsprd,sp9860-wdt.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/watchdog/sprd,sp9860-wdt.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Orson Zhai <orsonzhai@gmail.com>
11 - Baolin Wang <baolin.wang7@gmail.com>
12 - Chunyan Zhang <zhang.lyra@gmail.com>
15 - $ref: watchdog.yaml#
19 const: sprd,sp9860-wdt
30 clock-names:
[all …]
H A Datmel,at91sam9-wdt.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 ---
5 $id: http://devicetree.org/schemas/watchdog/atmel,at91sam9-wdt.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Eugen Hristev <eugen.hristev@microchip.com>
15 const: atmel,at91sam9260-wdt
26 atmel,max-heartbeat-sec:
32 atmel,min-heartbeat-sec:
35 must be smaller than the max-heartbeat-sec value. It is used to
39 atmel,watchdog-type:
[all …]
/linux/init/
H A Ddo_mounts.c1 // SPDX-License-Identifier: GPL-2.0-only
75 root_wait = -1; in rootwait_setup()
83 int sec; in rootwait_timeout_setup() local
85 if (kstrtoint(str, 0, &sec) || sec < 0) { in rootwait_timeout_setup()
90 if (check_mul_overflow(sec, MSEC_PER_SEC, &root_wait)) { in rootwait_timeout_setup()
99 root_wait = -1; in rootwait_timeout_setup()
139 if (p[-1] == ',') { in split_fs_names()
140 p[-1] = '\0'; in split_fs_names()
160 return -ENOMEM; in do_mount_root()
170 s = current->fs->pwd.dentry->d_sb; in do_mount_root()
[all …]
/linux/drivers/scsi/
H A Dsr_vendor.c1 // SPDX-License-Identifier: GPL-2.0
2 /* -*-linux-c-*-
4 * vendor-specific code for SCSI CD-ROM's goes here.
7 * the like) are too new to be included into the SCSI-II standard (to
10 * Aug 1997: Ha! Got a SCSI-3 cdrom spec across my fingers. SCSI-3 does
13 * Rearranged stuff here: SCSI-3 is included allways, support
16 * Gerd Knorr <kraxel@cs.tu-berlin.de>
18 * --------------------------------------------------------------------------
20 * support for XA/multisession-CD's
22 * - NEC: Detection and support of multisession CD's.
[all …]
/linux/Documentation/devicetree/bindings/misc/
H A Dqemu,vcpu-stall-detector.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/misc/qemu,vcpu-stall-detector.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
14 - Sebastian Ene <sebastianene@google.com>
19 - qemu,vcpu-stall-detector
24 clock-frequency:
35 timeout-sec:
37 The stall detector expiration timeout measured in seconds.
43 - compatible
[all …]
/linux/drivers/net/ethernet/cavium/liquidio/
H A Docteon_main.h7 * Copyright (c) 2003-2016 Cavium, Inc.
14 * AS-IS and WITHOUT ANY WARRANTY; without even the implied warranty
47 * Bytes offset below assume worst-case of a 64-bit system.
50 /** Bytes 1-8. Pointer to network device private structure. */
53 /** Bytes 9-16. Pointer to sk_buff. */
56 /** Bytes 17-24. Pointer to gather list. */
59 /** Bytes 25-32. Physical address of skb->data or gather list. */
62 /** Bytes 33-47. Piggybacked soft command, if any */
66 /* BQL-related functions */
83 blocks--; in octeon_swap_8B_data()
[all …]
/linux/include/media/
H A Ddvb_demux.h4 * Copyright (C) 2000-2001 Marcus Metzler & Ralph Metzler
30 * enum dvb_dmx_filter_type - type of demux feed.
41 * enum dvb_dmx_state - state machine for a demux filter.
64 * struct dvb_demux_filter - Describes a DVB demux section filter.
95 * struct dvb_demux_feed - describes a DVB field
99 * @feed.ts or @feed.sec.
102 * @feed.sec: a &struct dmx_section_feed pointer.
106 * @cb.ts or @cb.sec.
109 * @cb.sec: a dmx_section_cb() callback function pointer.
116 * @timeout: feed timeout.
[all …]

12345678910>>...20