| /linux/drivers/watchdog/ |
| H A D | uniphier_wdt.c | 1 // 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 D | menf21bmc_wdt.c | 1 // 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 D | wafer5823wdt.c | 1 // 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 D | advantechwdt.c | 1 // 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 D | at91sam9_wdt.c | 1 // 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 D | i6300esb.c | 1 // 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 …]
|
| H A D | ib700wdt.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 * (c) Copyright 2000-2001 Marek Michalkiewicz <marekm@linux.org.pl> 20 * "AS-IS" and at no charge. 24 * 14-Dec-2001 Matt Domsch <Matt_Domsch@dell.com> 26 * Added timeout module option to override default 78 * Level Value Time/sec | Level Value Time/sec 93 /* Default timeout */ 94 #define WATCHDOG_TIMEOUT 30 /* 30 seconds +/- 20% */ 95 static int timeout = WATCHDOG_TIMEOUT; /* in seconds */ variable 96 module_param(timeout, int, 0); [all …]
|
| H A D | sbc60xxwdt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * any of this software. This material is provided "AS-IS" in 13 * 12/4 - 2000 [Initial revision] 14 * 25/4 - 2000 Added /dev/watchdog support 15 * 09/5 - 2001 [smj@oro.net] fixed fop_write to "return 1" 17 * 12/4 - 2002 [rob@osinvestor.com] eliminate fop_read 28 * 09/8 - 2003 [wim@iguana.be] cleanup of trailing spaces 30 * made timeout (the emulated heartbeat) a 40 * particular WDT has a very short timeout (one second) and it 67 * You must set these - The driver cannot probe for the settings [all …]
|
| H A D | w83877f_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * any of this software. This material is provided "AS-IS" in 14 * 4/19 - 2001 [Initial revision] 15 * 9/27 - 2001 Added spinlocking 16 * 4/12 - 2002 [rob@osinvestor.com] Eliminate extra comments 27 * 09/8 - 2003 [wim@iguana.be] cleanup of trailing spaces 30 * made timeout (the emulated heartbeat) a 36 * because this particular WDT has a very short timeout (1.6 69 * The W83877F seems to be fixed at 1.6s timeout (at least on the 70 * EMACS PC-104 board I'm using). If we reset the watchdog every [all …]
|
| H A D | asm9260_wdt.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (c) 2014 Oleksij Rempel <linux@rempel-privat.de> 25 /* This bit set if timeout reached. Cleared by SW. */ 27 /* HW Reset on timeout */ 71 iowrite32(0xaa, priv->iobase + HW_WDFEED); in asm9260_wdt_feed() 72 iowrite32(0x55, priv->iobase + HW_WDFEED); in asm9260_wdt_feed() 82 counter = ioread32(priv->iobase + HW_WDTV); in asm9260_wdt_gettimeleft() 84 return counter / priv->wdt_freq; in asm9260_wdt_gettimeleft() 92 counter = wdd->timeout * priv->wdt_freq; in asm9260_wdt_updatetimeout() 94 iowrite32(counter, priv->iobase + HW_WDTC); in asm9260_wdt_updatetimeout() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_tc_edt.sh | |
| /linux/drivers/rtc/ |
| H A D | rtc-mc146818-lib.c | 1 // 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 …]
|
| /linux/Documentation/devicetree/bindings/misc/ |
| H A D | qemu,vcpu-stall-detector.yaml | 1 # 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/Documentation/devicetree/bindings/watchdog/ |
| H A D | st_lpc_wdt.txt | 1 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 D | mediatek,mtk-wdt.yaml | 1 # 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 D | sprd,sp9860-wdt.yaml | 1 # 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 D | atmel,at91sam9-wdt.yaml | 1 # 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 …]
|
| H A D | cdns,wdt-r1p2.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/watchdog/cdns,wdt-r1p2.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Neeli Srinivas <srinivas.neeli@amd.com> 15 a programmable reset period. The timeout period varies from 1 ms 19 - $ref: watchdog.yaml# 24 - cdns,wdt-r1p2 35 reset-on-timeout: 42 - compatible [all …]
|
| H A D | renesas,wdt.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Wolfram Sang <wsa+renesas@sang-engineering.com> 11 - Geert Uytterhoeven <geert+renesas@glider.be> 16 - items: 17 - enum: 18 - renesas,r8a7742-wdt # RZ/G1H 19 - renesas,r8a7743-wdt # RZ/G1M 20 - renesas,r8a7744-wdt # RZ/G1N [all …]
|
| H A D | realtek,otto-wdt.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/watchdog/realtek,otto-wdt.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sander Vanheule <sander@svanheule.net> 13 The timer has two timeout phases. Both phases have a maximum duration of 32 17 - Phase 1: During this phase, the WDT can be pinged to reset the timeout. 18 - Phase 2: Starts after phase 1 has timed out, and only serves to give the 24 - $ref: watchdog.yaml# 29 - realtek,rtl8380-wdt [all …]
|
| /linux/drivers/scsi/ |
| H A D | sr_vendor.c | 1 // 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/drivers/net/ethernet/cavium/liquidio/ |
| H A D | octeon_main.h | 7 * 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/uapi/linux/ |
| H A D | if_slip.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 23 #define SIOCSKEEPALIVE (SIOCDEVPRIVATE) /* Set keepalive timeout in sec */ 24 #define SIOCGKEEPALIVE (SIOCDEVPRIVATE+1) /* Get keepalive timeout */ 25 #define SIOCSOUTFILL (SIOCDEVPRIVATE+2) /* Set outfill timeout */ 26 #define SIOCGOUTFILL (SIOCDEVPRIVATE+3) /* Get outfill timeout */ [all...] |
| /linux/include/media/ |
| H A D | dvb_demux.h | 4 * 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 …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | res_spin_lock.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2024-2025 Meta Platforms, Inc. and affiliates. */ 20 } arrmap SEC(".maps"); 22 struct bpf_res_spin_lock lockA __hidden SEC(".data.A"); 23 struct bpf_res_spin_lock lockB __hidden SEC(".data.B"); 25 SEC("tc") 33 return -1; in res_spin_lock_test() 36 return -1; in res_spin_lock_test() 38 r = bpf_res_spin_lock(&elem1->lock); in res_spin_lock_test() 41 r = bpf_res_spin_lock(&elem2->lock); in res_spin_lock_test() [all …]
|