/Linux-v5.10/drivers/watchdog/ |
D | imx2_wdt.c | 66 struct watchdog_device wdog; member 91 static int imx2_wdt_restart(struct watchdog_device *wdog, unsigned long action, in imx2_wdt_restart() argument 94 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_restart() 121 static inline void imx2_wdt_setup(struct watchdog_device *wdog) in imx2_wdt_setup() argument 123 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_setup() 141 val |= WDOG_SEC_TO_COUNT(wdog->timeout); in imx2_wdt_setup() 159 static int imx2_wdt_ping(struct watchdog_device *wdog) in imx2_wdt_ping() argument 161 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_ping() 168 static void __imx2_wdt_set_timeout(struct watchdog_device *wdog, in __imx2_wdt_set_timeout() argument 171 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in __imx2_wdt_set_timeout() [all …]
|
D | imx_sc_wdt.c | 48 static int imx_sc_wdt_ping(struct watchdog_device *wdog) in imx_sc_wdt_ping() argument 58 static int imx_sc_wdt_start(struct watchdog_device *wdog) in imx_sc_wdt_start() argument 73 static int imx_sc_wdt_stop(struct watchdog_device *wdog) in imx_sc_wdt_stop() argument 83 static int imx_sc_wdt_set_timeout(struct watchdog_device *wdog, in imx_sc_wdt_set_timeout() argument 88 wdog->timeout = timeout; in imx_sc_wdt_set_timeout() 95 static int imx_sc_wdt_set_pretimeout(struct watchdog_device *wdog, in imx_sc_wdt_set_pretimeout() argument 106 (wdog->timeout - pretimeout) * 1000, 0, 0, 0, in imx_sc_wdt_set_pretimeout() 111 wdog->pretimeout = pretimeout; in imx_sc_wdt_set_pretimeout() 159 struct watchdog_device *wdog; in imx_sc_wdt_probe() local 169 wdog = &imx_sc_wdd->wdd; in imx_sc_wdt_probe() [all …]
|
D | imx7ulp_wdt.c | 67 static int imx7ulp_wdt_enable(struct watchdog_device *wdog, bool enable) in imx7ulp_wdt_enable() argument 69 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_enable() 98 static int imx7ulp_wdt_ping(struct watchdog_device *wdog) in imx7ulp_wdt_ping() argument 100 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_ping() 107 static int imx7ulp_wdt_start(struct watchdog_device *wdog) in imx7ulp_wdt_start() argument 109 return imx7ulp_wdt_enable(wdog, true); in imx7ulp_wdt_start() 112 static int imx7ulp_wdt_stop(struct watchdog_device *wdog) in imx7ulp_wdt_stop() argument 114 return imx7ulp_wdt_enable(wdog, false); in imx7ulp_wdt_stop() 117 static int imx7ulp_wdt_set_timeout(struct watchdog_device *wdog, in imx7ulp_wdt_set_timeout() argument 120 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_set_timeout() [all …]
|
D | omap_wdt.c | 55 #define to_omap_wdt_dev(_wdog) container_of(_wdog, struct omap_wdt_dev, wdog) 63 struct watchdog_device wdog; member 131 static int omap_wdt_start(struct watchdog_device *wdog) in omap_wdt_start() argument 133 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_start() 157 omap_wdt_set_timer(wdev, wdog->timeout); in omap_wdt_start() 166 static int omap_wdt_stop(struct watchdog_device *wdog) in omap_wdt_stop() argument 168 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_stop() 178 static int omap_wdt_ping(struct watchdog_device *wdog) in omap_wdt_ping() argument 180 struct omap_wdt_dev *wdev = to_omap_wdt_dev(wdog); in omap_wdt_ping() 189 static int omap_wdt_set_timeout(struct watchdog_device *wdog, in omap_wdt_set_timeout() argument [all …]
|
D | retu_wdt.c | 54 static int retu_wdt_start(struct watchdog_device *wdog) in retu_wdt_start() argument 56 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_start() 60 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout); in retu_wdt_start() 63 static int retu_wdt_stop(struct watchdog_device *wdog) in retu_wdt_stop() argument 65 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_stop() 72 static int retu_wdt_ping(struct watchdog_device *wdog) in retu_wdt_ping() argument 74 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_ping() 76 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout); in retu_wdt_ping() 79 static int retu_wdt_set_timeout(struct watchdog_device *wdog, in retu_wdt_set_timeout() argument 82 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_set_timeout() [all …]
|
D | bcm7038_wdt.c | 37 static void bcm7038_wdt_set_timeout_reg(struct watchdog_device *wdog) in bcm7038_wdt_set_timeout_reg() argument 39 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_set_timeout_reg() 42 timeout = wdt->rate * wdog->timeout; in bcm7038_wdt_set_timeout_reg() 47 static int bcm7038_wdt_ping(struct watchdog_device *wdog) in bcm7038_wdt_ping() argument 49 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_ping() 57 static int bcm7038_wdt_start(struct watchdog_device *wdog) in bcm7038_wdt_start() argument 59 bcm7038_wdt_set_timeout_reg(wdog); in bcm7038_wdt_start() 60 bcm7038_wdt_ping(wdog); in bcm7038_wdt_start() 65 static int bcm7038_wdt_stop(struct watchdog_device *wdog) in bcm7038_wdt_stop() argument 67 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_stop() [all …]
|
D | digicolor_wdt.c | 48 static int dc_wdt_restart(struct watchdog_device *wdog, unsigned long action, in dc_wdt_restart() argument 51 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_restart() 60 static int dc_wdt_start(struct watchdog_device *wdog) in dc_wdt_start() argument 62 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_start() 64 dc_wdt_set(wdt, wdog->timeout * clk_get_rate(wdt->clk)); in dc_wdt_start() 69 static int dc_wdt_stop(struct watchdog_device *wdog) in dc_wdt_stop() argument 71 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_stop() 78 static int dc_wdt_set_timeout(struct watchdog_device *wdog, unsigned int t) in dc_wdt_set_timeout() argument 80 struct dc_wdt *wdt = watchdog_get_drvdata(wdog); in dc_wdt_set_timeout() 83 wdog->timeout = t; in dc_wdt_set_timeout() [all …]
|
D | booke_wdt.c | 110 struct watchdog_device *wdog = data; in __booke_wdt_set() local 114 val |= WDTP(sec_to_period(wdog->timeout)); in __booke_wdt_set() 129 static int booke_wdt_ping(struct watchdog_device *wdog) in booke_wdt_ping() argument 139 struct watchdog_device *wdog = data; in __booke_wdt_enable() local 145 val |= (TCR_WIE|TCR_WRC(WRC_CHIP)|WDTP(sec_to_period(wdog->timeout))); in __booke_wdt_enable() 171 static int booke_wdt_start(struct watchdog_device *wdog) in booke_wdt_start() argument 173 on_each_cpu(__booke_wdt_enable, wdog, 0); in booke_wdt_start() 174 pr_debug("watchdog enabled (timeout = %u sec)\n", wdog->timeout); in booke_wdt_start() 179 static int booke_wdt_stop(struct watchdog_device *wdog) in booke_wdt_stop() argument
|
D | bcm2835_wdt.c | 65 static int bcm2835_wdt_start(struct watchdog_device *wdog) in bcm2835_wdt_start() argument 67 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_start() 73 writel_relaxed(PM_PASSWORD | (SECS_TO_WDOG_TICKS(wdog->timeout) & in bcm2835_wdt_start() 84 static int bcm2835_wdt_stop(struct watchdog_device *wdog) in bcm2835_wdt_stop() argument 86 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_stop() 92 static unsigned int bcm2835_wdt_get_timeleft(struct watchdog_device *wdog) in bcm2835_wdt_get_timeleft() argument 94 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_get_timeleft() 115 static int bcm2835_restart(struct watchdog_device *wdog, in bcm2835_restart() argument 118 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_restart()
|
D | bcm_kona_wdt.c | 199 static int bcm_kona_wdt_set_timeout_reg(struct watchdog_device *wdog, in bcm_kona_wdt_set_timeout_reg() argument 202 struct bcm_kona_wdt *wdt = watchdog_get_drvdata(wdog); in bcm_kona_wdt_set_timeout_reg() 205 SECS_TO_TICKS(wdog->timeout, wdt) | in bcm_kona_wdt_set_timeout_reg() 209 static int bcm_kona_wdt_set_timeout(struct watchdog_device *wdog, in bcm_kona_wdt_set_timeout() argument 212 wdog->timeout = t; in bcm_kona_wdt_set_timeout() 216 static unsigned int bcm_kona_wdt_get_timeleft(struct watchdog_device *wdog) in bcm_kona_wdt_get_timeleft() argument 218 struct bcm_kona_wdt *wdt = watchdog_get_drvdata(wdog); in bcm_kona_wdt_get_timeleft() 232 static int bcm_kona_wdt_start(struct watchdog_device *wdog) in bcm_kona_wdt_start() argument 234 return bcm_kona_wdt_set_timeout_reg(wdog, in bcm_kona_wdt_start() 238 static int bcm_kona_wdt_stop(struct watchdog_device *wdog) in bcm_kona_wdt_stop() argument [all …]
|
D | w83627hf_wdt.c | 150 static int w83627hf_init(struct watchdog_device *wdog, enum chips chip) in w83627hf_init() argument 238 wdog->timeout); in w83627hf_init() 239 superio_outb(cr_wdt_timeout, wdog->timeout); in w83627hf_init() 271 static int wdt_start(struct watchdog_device *wdog) in wdt_start() argument 273 return wdt_set_time(wdog->timeout); in wdt_start() 276 static int wdt_stop(struct watchdog_device *wdog) in wdt_stop() argument 281 static int wdt_set_timeout(struct watchdog_device *wdog, unsigned int timeout) in wdt_set_timeout() argument 283 wdog->timeout = timeout; in wdt_set_timeout() 288 static unsigned int wdt_get_time(struct watchdog_device *wdog) in wdt_get_time() argument
|
D | sb_wdog.c | 70 static void sbwdog_set(char __iomem *wdog, unsigned long t) in sbwdog_set() argument 73 __raw_writeb(0, wdog); in sbwdog_set() 74 __raw_writeq(t & 0x7fffffUL, wdog - 0x10); in sbwdog_set() 84 static void sbwdog_pet(char __iomem *wdog) in sbwdog_pet() argument 87 __raw_writeb(__raw_readb(wdog) | 1, wdog); in sbwdog_pet()
|
D | alim1535_wdt.c | 317 u32 wdog; in ali_find_watchdog() local 342 pci_read_config_dword(pdev, 0xCC, &wdog); in ali_find_watchdog() 345 wdog &= ~0x3F; in ali_find_watchdog() 347 wdog &= ~((1 << 27)|(1 << 26)|(1 << 25)|(1 << 24)); in ali_find_watchdog() 349 wdog &= ~((1 << 16)|(1 << 13)|(1 << 12)|(1 << 11)|(1 << 10)|(1 << 9)); in ali_find_watchdog() 351 pci_write_config_dword(pdev, 0xCC, wdog); in ali_find_watchdog()
|
D | octeon-wdt-main.c | 402 static int octeon_wdt_ping(struct watchdog_device __always_unused *wdog) in octeon_wdt_ping() argument 452 static int octeon_wdt_set_timeout(struct watchdog_device *wdog, in octeon_wdt_set_timeout() argument 478 octeon_wdt_ping(wdog); /* Get the irqs back on. */ in octeon_wdt_set_timeout() 482 static int octeon_wdt_start(struct watchdog_device *wdog) in octeon_wdt_start() argument 484 octeon_wdt_ping(wdog); in octeon_wdt_start() 489 static int octeon_wdt_stop(struct watchdog_device *wdog) in octeon_wdt_stop() argument 492 octeon_wdt_ping(wdog); in octeon_wdt_stop()
|
/Linux-v5.10/drivers/rtc/ |
D | rtc-abx80x.c | 117 struct watchdog_device wdog; member 603 static int __abx80x_wdog_set_timeout(struct watchdog_device *wdog, in __abx80x_wdog_set_timeout() argument 606 struct abx80x_priv *priv = watchdog_get_drvdata(wdog); in __abx80x_wdog_set_timeout() 616 static int abx80x_wdog_set_timeout(struct watchdog_device *wdog, in abx80x_wdog_set_timeout() argument 621 if (watchdog_hw_running(wdog)) in abx80x_wdog_set_timeout() 622 err = __abx80x_wdog_set_timeout(wdog, new_timeout); in abx80x_wdog_set_timeout() 625 wdog->timeout = new_timeout; in abx80x_wdog_set_timeout() 630 static int abx80x_wdog_ping(struct watchdog_device *wdog) in abx80x_wdog_ping() argument 632 return __abx80x_wdog_set_timeout(wdog, wdog->timeout); in abx80x_wdog_ping() 635 static int abx80x_wdog_start(struct watchdog_device *wdog) in abx80x_wdog_start() argument [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/remoteproc/ |
D | qcom,adsp.txt | 54 must be "wdog", "fatal", "ready", "handover", "stop-ack" 58 must be "wdog", "fatal", "ready", "handover", "stop-ack", 162 interrupt-names = "wdog", 196 interrupt-names = "wdog",
|
D | qcom,hexagon-v56.txt | 27 Definition: must be "wdog", "fatal", "ready", "handover", "stop-ack" 113 interrupt-names = "wdog", "fatal", "ready",
|
D | qcom,wcnss-pil.txt | 34 Definition: should be "wdog", "fatal", optionally followed by "ready", 112 interrupt-names = "wdog", "fatal", "ready", "handover", "stop-ack";
|
D | qcom,q6v5.txt | 44 must be "wdog", "fatal", "ready", "handover", "stop-ack" 49 must be "wdog", "fatal", "ready", "handover", "stop-ack", 223 interrupt-names = "wdog",
|
/Linux-v5.10/arch/arm/boot/dts/ |
D | arm-realview-eb-11mp-ctrevb.dts | 91 &wdog {
|
D | imx31.dtsi | 318 wdog: wdog@53fdc000 { label
|
D | imx35.dtsi | 297 wdog: wdog@53fdc000 { label
|
D | arm-realview-eb.dts | 128 &wdog {
|
D | picoxcell-pc3x2.dtsi | 207 wdog: watchdog@50000 { label
|
/Linux-v5.10/drivers/mmc/host/ |
D | cavium.c | 253 u64 emm_switch, wdog; in cvm_mmc_reset_bus() local 260 wdog = readq(slot->host->base + MIO_EMM_WDOG(host)); in cvm_mmc_reset_bus() 267 writeq(wdog, slot->host->base + MIO_EMM_WDOG(host)); in cvm_mmc_reset_bus()
|