/linux-6.6.21/drivers/watchdog/ |
D | imx2_wdt.c | 71 struct watchdog_device wdog; member 100 static int imx2_wdt_restart(struct watchdog_device *wdog, unsigned long action, in imx2_wdt_restart() argument 103 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_restart() 130 static inline void imx2_wdt_setup(struct watchdog_device *wdog) in imx2_wdt_setup() argument 132 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_setup() 153 val |= WDOG_SEC_TO_COUNT(wdog->timeout); in imx2_wdt_setup() 171 static int imx2_wdt_ping(struct watchdog_device *wdog) in imx2_wdt_ping() argument 173 struct imx2_wdt_device *wdev = watchdog_get_drvdata(wdog); in imx2_wdt_ping() 183 static void __imx2_wdt_set_timeout(struct watchdog_device *wdog, in __imx2_wdt_set_timeout() argument 186 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 | 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 | keembay_wdt.c | 70 static void keembay_wdt_set_timeout_reg(struct watchdog_device *wdog) in keembay_wdt_set_timeout_reg() argument 72 struct keembay_wdt *wdt = watchdog_get_drvdata(wdog); in keembay_wdt_set_timeout_reg() 74 keembay_wdt_writel(wdt, TIM_WATCHDOG, wdog->timeout * wdt->rate); in keembay_wdt_set_timeout_reg() 77 static void keembay_wdt_set_pretimeout_reg(struct watchdog_device *wdog) in keembay_wdt_set_pretimeout_reg() argument 79 struct keembay_wdt *wdt = watchdog_get_drvdata(wdog); in keembay_wdt_set_pretimeout_reg() 82 if (wdog->pretimeout) in keembay_wdt_set_pretimeout_reg() 83 th_val = wdog->timeout - wdog->pretimeout; in keembay_wdt_set_pretimeout_reg() 88 static int keembay_wdt_start(struct watchdog_device *wdog) in keembay_wdt_start() argument 90 struct keembay_wdt *wdt = watchdog_get_drvdata(wdog); in keembay_wdt_start() 97 static int keembay_wdt_stop(struct watchdog_device *wdog) in keembay_wdt_stop() argument [all …]
|
D | imx7ulp_wdt.c | 127 static int imx7ulp_wdt_enable(struct watchdog_device *wdog, bool enable) in imx7ulp_wdt_enable() argument 129 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_enable() 145 static int imx7ulp_wdt_ping(struct watchdog_device *wdog) in imx7ulp_wdt_ping() argument 147 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_ping() 154 static int imx7ulp_wdt_start(struct watchdog_device *wdog) in imx7ulp_wdt_start() argument 156 return imx7ulp_wdt_enable(wdog, true); in imx7ulp_wdt_start() 159 static int imx7ulp_wdt_stop(struct watchdog_device *wdog) in imx7ulp_wdt_stop() argument 161 return imx7ulp_wdt_enable(wdog, false); in imx7ulp_wdt_stop() 184 static int imx7ulp_wdt_set_timeout(struct watchdog_device *wdog, in imx7ulp_wdt_set_timeout() argument 187 struct imx7ulp_wdt_device *wdt = watchdog_get_drvdata(wdog); in imx7ulp_wdt_set_timeout() [all …]
|
D | bcm7038_wdt.c | 57 static void bcm7038_wdt_set_timeout_reg(struct watchdog_device *wdog) in bcm7038_wdt_set_timeout_reg() argument 59 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_set_timeout_reg() 62 timeout = wdt->rate * wdog->timeout; in bcm7038_wdt_set_timeout_reg() 67 static int bcm7038_wdt_ping(struct watchdog_device *wdog) in bcm7038_wdt_ping() argument 69 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_ping() 77 static int bcm7038_wdt_start(struct watchdog_device *wdog) in bcm7038_wdt_start() argument 79 bcm7038_wdt_set_timeout_reg(wdog); in bcm7038_wdt_start() 80 bcm7038_wdt_ping(wdog); in bcm7038_wdt_start() 85 static int bcm7038_wdt_stop(struct watchdog_device *wdog) in bcm7038_wdt_stop() argument 87 struct bcm7038_watchdog *wdt = watchdog_get_drvdata(wdog); in bcm7038_wdt_stop() [all …]
|
D | retu_wdt.c | 55 static int retu_wdt_start(struct watchdog_device *wdog) in retu_wdt_start() argument 57 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_start() 61 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout); in retu_wdt_start() 64 static int retu_wdt_stop(struct watchdog_device *wdog) in retu_wdt_stop() argument 66 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_stop() 73 static int retu_wdt_ping(struct watchdog_device *wdog) in retu_wdt_ping() argument 75 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_ping() 77 return retu_write(wdev->rdev, RETU_REG_WATCHDOG, wdog->timeout); in retu_wdt_ping() 80 static int retu_wdt_set_timeout(struct watchdog_device *wdog, in retu_wdt_set_timeout() argument 83 struct retu_wdt_dev *wdev = watchdog_get_drvdata(wdog); in retu_wdt_set_timeout() [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 | 66 static int bcm2835_wdt_start(struct watchdog_device *wdog) in bcm2835_wdt_start() argument 68 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_start() 74 writel_relaxed(PM_PASSWORD | (SECS_TO_WDOG_TICKS(wdog->timeout) & in bcm2835_wdt_start() 85 static int bcm2835_wdt_stop(struct watchdog_device *wdog) in bcm2835_wdt_stop() argument 87 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_stop() 93 static unsigned int bcm2835_wdt_get_timeleft(struct watchdog_device *wdog) in bcm2835_wdt_get_timeleft() argument 95 struct bcm2835_wdt *wdt = watchdog_get_drvdata(wdog); in bcm2835_wdt_get_timeleft() 116 static int bcm2835_restart(struct watchdog_device *wdog, in bcm2835_restart() argument 119 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 | exar_wdt.c | 153 static int exar_wdt_start(struct watchdog_device *wdog) in exar_wdt_start() argument 155 struct wdt_priv *priv = watchdog_get_drvdata(wdog); in exar_wdt_start() 168 static int exar_wdt_stop(struct watchdog_device *wdog) in exar_wdt_stop() argument 170 struct wdt_priv *priv = watchdog_get_drvdata(wdog); in exar_wdt_stop() 180 static int exar_wdt_keepalive(struct watchdog_device *wdog) in exar_wdt_keepalive() argument 182 struct wdt_priv *priv = watchdog_get_drvdata(wdog); in exar_wdt_keepalive() 194 static int exar_wdt_set_timeout(struct watchdog_device *wdog, unsigned int t) in exar_wdt_set_timeout() argument 196 struct wdt_priv *priv = watchdog_get_drvdata(wdog); in exar_wdt_set_timeout() 212 wdog->timeout = unit_min ? t * 60 : t; in exar_wdt_set_timeout() 214 if (watchdog_hw_running(wdog)) in exar_wdt_set_timeout() [all …]
|
D | w83627hf_wdt.c | 154 static int w83627hf_init(struct watchdog_device *wdog, enum chips chip) in w83627hf_init() argument 242 wdog->timeout); in w83627hf_init() 243 superio_outb(cr_wdt_timeout, wdog->timeout); in w83627hf_init() 253 wdog->bootstatus |= WDIOF_CARDRESET; in w83627hf_init() 279 static int wdt_start(struct watchdog_device *wdog) in wdt_start() argument 281 return wdt_set_time(wdog->timeout); in wdt_start() 284 static int wdt_stop(struct watchdog_device *wdog) in wdt_stop() argument 289 static int wdt_set_timeout(struct watchdog_device *wdog, unsigned int timeout) in wdt_set_timeout() argument 291 wdog->timeout = timeout; in wdt_set_timeout() 296 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 | 405 static int octeon_wdt_ping(struct watchdog_device __always_unused *wdog) in octeon_wdt_ping() argument 455 static int octeon_wdt_set_timeout(struct watchdog_device *wdog, in octeon_wdt_set_timeout() argument 481 octeon_wdt_ping(wdog); /* Get the irqs back on. */ in octeon_wdt_set_timeout() 485 static int octeon_wdt_start(struct watchdog_device *wdog) in octeon_wdt_start() argument 487 octeon_wdt_ping(wdog); in octeon_wdt_start() 492 static int octeon_wdt_stop(struct watchdog_device *wdog) in octeon_wdt_stop() argument 495 octeon_wdt_ping(wdog); in octeon_wdt_stop()
|
/linux-6.6.21/drivers/rtc/ |
D | rtc-abx80x.c | 129 struct watchdog_device wdog; member 613 static int __abx80x_wdog_set_timeout(struct watchdog_device *wdog, in __abx80x_wdog_set_timeout() argument 616 struct abx80x_priv *priv = watchdog_get_drvdata(wdog); in __abx80x_wdog_set_timeout() 626 static int abx80x_wdog_set_timeout(struct watchdog_device *wdog, in abx80x_wdog_set_timeout() argument 631 if (watchdog_hw_running(wdog)) in abx80x_wdog_set_timeout() 632 err = __abx80x_wdog_set_timeout(wdog, new_timeout); in abx80x_wdog_set_timeout() 635 wdog->timeout = new_timeout; in abx80x_wdog_set_timeout() 640 static int abx80x_wdog_ping(struct watchdog_device *wdog) in abx80x_wdog_ping() argument 642 return __abx80x_wdog_set_timeout(wdog, wdog->timeout); in abx80x_wdog_ping() 645 static int abx80x_wdog_start(struct watchdog_device *wdog) in abx80x_wdog_start() argument [all …]
|
/linux-6.6.21/Documentation/devicetree/bindings/power/supply/ |
D | qcom,pmi8998-charger.yaml | 28 - const: wdog-bark 73 interrupt-names = "usb-plugin", "bat-ov", "wdog-bark", "usbin-icl-change";
|
/linux-6.6.21/Documentation/devicetree/bindings/remoteproc/ |
D | qcom,qcs404-cdsp-pil.yaml | 36 - const: wdog 129 interrupt-names = "wdog", "fatal", "ready",
|
D | qcom,sdm845-adsp-pil.yaml | 36 - const: wdog 132 interrupt-names = "wdog", "fatal", "ready",
|
D | qcom,sc7280-wpss-pil.yaml | 37 - const: wdog 170 interrupt-names = "wdog", "fatal", "ready", "handover",
|
D | qcom,sc7280-adsp-pil.yaml | 41 - const: wdog 163 interrupt-names = "wdog", "fatal", "ready",
|
D | qcom,qcs404-pas.yaml | 79 interrupt-names = "wdog", "fatal", "ready",
|
D | qcom,pas-common.yaml | 40 - const: wdog
|
/linux-6.6.21/arch/arm64/boot/dts/qcom/ |
D | pmi8998.dtsi | 22 "wdog-bark",
|