Home
last modified time | relevance | path

Searched refs:heartbeat (Results 1 - 25 of 173) sorted by relevance

1234567

/kernel/linux/linux-5.10/drivers/hwtracing/stm/
H A Dheartbeat.c3 * Simple heartbeat STM source driver
30 static const char str[] = "heartbeat stm source driver is here to serve you";
34 struct stm_heartbeat *heartbeat = container_of(hr, struct stm_heartbeat, in stm_heartbeat_hrtimer_handler() local
37 stm_source_write(&heartbeat->data, 0, str, sizeof str); in stm_heartbeat_hrtimer_handler()
38 if (heartbeat->active) in stm_heartbeat_hrtimer_handler()
41 return heartbeat->active ? HRTIMER_RESTART : HRTIMER_NORESTART; in stm_heartbeat_hrtimer_handler()
46 struct stm_heartbeat *heartbeat = in stm_heartbeat_link() local
49 heartbeat->active = 1; in stm_heartbeat_link()
50 hrtimer_start(&heartbeat->hrtimer, ms_to_ktime(interval_ms), in stm_heartbeat_link()
58 struct stm_heartbeat *heartbeat in stm_heartbeat_unlink() local
[all...]
/kernel/linux/linux-6.6/drivers/hwtracing/stm/
H A Dheartbeat.c3 * Simple heartbeat STM source driver
30 static const char str[] = "heartbeat stm source driver is here to serve you";
34 struct stm_heartbeat *heartbeat = container_of(hr, struct stm_heartbeat, in stm_heartbeat_hrtimer_handler() local
37 stm_source_write(&heartbeat->data, 0, str, sizeof str); in stm_heartbeat_hrtimer_handler()
38 if (heartbeat->active) in stm_heartbeat_hrtimer_handler()
41 return heartbeat->active ? HRTIMER_RESTART : HRTIMER_NORESTART; in stm_heartbeat_hrtimer_handler()
46 struct stm_heartbeat *heartbeat = in stm_heartbeat_link() local
49 heartbeat->active = 1; in stm_heartbeat_link()
50 hrtimer_start(&heartbeat->hrtimer, ms_to_ktime(interval_ms), in stm_heartbeat_link()
58 struct stm_heartbeat *heartbeat in stm_heartbeat_unlink() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
H A Dintel_engine_heartbeat.c35 mod_delayed_work(system_highpri_wq, &engine->heartbeat.work, delay); in next_heartbeat()
49 struct drm_printer p = drm_debug_printer("heartbeat"); in show_heartbeat()
52 "%s heartbeat {seqno:%llx:%lld, prio:%d} not ticking\n", in show_heartbeat()
59 static void heartbeat(struct work_struct *wrk) in heartbeat() function
65 container_of(wrk, typeof(*engine), heartbeat.work.work); in heartbeat()
73 rq = engine->heartbeat.systole; in heartbeat()
76 engine->heartbeat.systole = NULL; in heartbeat()
85 if (engine->heartbeat.systole) { in heartbeat()
100 * Gradually raise the priority of the heartbeat to in heartbeat()
120 "stopped heartbeat o in heartbeat()
[all...]
H A Dselftest_engine_heartbeat.c122 pr_err("%s: no heartbeat pulse?\n", engine->name); in __live_idle_pulse()
136 pr_err("%s: heartbeat pulse did not flush idle tasks\n", in __live_idle_pulse()
176 /* Check that heartbeat pulses flush the idle barriers */ in live_idle_pulse()
220 while (READ_ONCE(engine->heartbeat.systole)) in __live_heartbeat_fast()
221 flush_delayed_work(&engine->heartbeat.work); in __live_heartbeat_fast()
224 flush_delayed_work(&engine->heartbeat.work); in __live_heartbeat_fast()
225 if (!delayed_work_pending(&engine->heartbeat.work)) { in __live_heartbeat_fast()
226 pr_err("%s: heartbeat did not start\n", in __live_heartbeat_fast()
233 rq = READ_ONCE(engine->heartbeat.systole); in __live_heartbeat_fast()
240 while (rq == READ_ONCE(engine->heartbeat in __live_heartbeat_fast()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/
H A Dadf_heartbeat.c34 u64 polling_time = curr_time - accel_dev->heartbeat->last_hb_check_time; in adf_hb_check_polling_freq()
36 if (polling_time < accel_dev->heartbeat->hb_timer) { in adf_hb_check_polling_freq()
39 accel_dev->heartbeat->hb_timer); in adf_hb_check_polling_freq()
43 accel_dev->heartbeat->last_hb_check_time = curr_time; in adf_hb_check_polling_freq()
48 * validate_hb_ctrs_cnt() - checks if the number of heartbeat counters should
67 struct hb_cnt_pair *hb_stats = accel_dev->heartbeat->dma.virt_addr; in validate_hb_ctrs_cnt()
85 struct hb_cnt_pair *hb_stats = accel_dev->heartbeat->dma.virt_addr; in adf_heartbeat_check_ctrs()
94 accel_dev->heartbeat->ctrs_cnt_checked = false; in adf_heartbeat_check_ctrs()
134 accel_dev->heartbeat->hb_timer = timer_ms; in get_timer_ticks()
179 if (!accel_dev->heartbeat in adf_hb_get_status()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/
H A Dintel_engine_heartbeat.c30 rq = engine->heartbeat.systole; in next_heartbeat()
37 * heartbeat periods (or to override the pre-emption timeout as well, in next_heartbeat()
62 mod_delayed_work(system_highpri_wq, &engine->heartbeat.work, delay + 1); in next_heartbeat()
83 if (!engine->heartbeat.systole && intel_engine_has_heartbeat(engine)) in idle_pulse()
84 engine->heartbeat.systole = i915_request_get(rq); in idle_pulse()
99 struct drm_printer p = drm_debug_printer("heartbeat"); in show_heartbeat()
103 "%s heartbeat not ticking\n", in show_heartbeat()
107 "%s heartbeat {seqno:%llx:%lld, prio:%d} not ticking\n", in show_heartbeat()
131 "stopped heartbeat on %s", in reset_engine()
135 static void heartbeat(struc function
[all...]
H A Dselftest_engine_heartbeat.c127 pr_err("%s: no heartbeat pulse?\n", engine->name); in __live_idle_pulse()
141 pr_err("%s: heartbeat pulse did not flush idle tasks\n", in __live_idle_pulse()
181 /* Check that heartbeat pulses flush the idle barriers */ in live_idle_pulse()
227 GEM_BUG_ON(engine->heartbeat.systole); in __live_heartbeat_fast()
231 flush_delayed_work(&engine->heartbeat.work); in __live_heartbeat_fast()
232 if (!delayed_work_pending(&engine->heartbeat.work)) { in __live_heartbeat_fast()
233 pr_err("%s: heartbeat %d did not start\n", in __live_heartbeat_fast()
240 rq = READ_ONCE(engine->heartbeat.systole); in __live_heartbeat_fast()
247 while (rq == READ_ONCE(engine->heartbeat.systole)) in __live_heartbeat_fast()
292 /* Check that the heartbeat tick in live_heartbeat_fast()
[all...]
/kernel/linux/linux-5.10/drivers/misc/ibmasm/
H A Dheartbeat.c27 * Before responding to a heartbeat the driver checks if a panic has happened,
28 * if yes it suspends heartbeat, causing the service processor to reboot as
53 sp->heartbeat = ibmasm_new_command(sp, HEARTBEAT_BUFFER_SIZE); in ibmasm_heartbeat_init()
54 if (sp->heartbeat == NULL) in ibmasm_heartbeat_init()
65 ibmasm_wait_for_response(sp->heartbeat, IBMASM_CMD_TIMEOUT_NORMAL); in ibmasm_heartbeat_exit()
68 command_put(sp->heartbeat); in ibmasm_heartbeat_exit()
73 struct command *cmd = sp->heartbeat; in ibmasm_receive_heartbeat()
/kernel/linux/linux-6.6/drivers/misc/ibmasm/
H A Dheartbeat.c28 * Before responding to a heartbeat the driver checks if a panic has happened,
29 * if yes it suspends heartbeat, causing the service processor to reboot as
54 sp->heartbeat = ibmasm_new_command(sp, HEARTBEAT_BUFFER_SIZE); in ibmasm_heartbeat_init()
55 if (sp->heartbeat == NULL) in ibmasm_heartbeat_init()
66 ibmasm_wait_for_response(sp->heartbeat, IBMASM_CMD_TIMEOUT_NORMAL); in ibmasm_heartbeat_exit()
69 command_put(sp->heartbeat); in ibmasm_heartbeat_exit()
74 struct command *cmd = sp->heartbeat; in ibmasm_receive_heartbeat()
/kernel/linux/linux-5.10/drivers/watchdog/
H A Drti_wdt.c24 /* Max heartbeat is calculated at 32kHz source clock */
55 static int heartbeat = DEFAULT_HEARTBEAT; variable
130 /* 50% open window => 50% min heartbeat */ in rti_wdt_setup_hw_hb()
131 wdd->min_hw_heartbeat_ms = 500 * heartbeat; in rti_wdt_setup_hw_hb()
135 /* 25% open window => 75% min heartbeat */ in rti_wdt_setup_hw_hb()
136 wdd->min_hw_heartbeat_ms = 750 * heartbeat; in rti_wdt_setup_hw_hb()
140 /* 12.5% open window => 87.5% min heartbeat */ in rti_wdt_setup_hw_hb()
141 wdd->min_hw_heartbeat_ms = 875 * heartbeat; in rti_wdt_setup_hw_hb()
145 /* 6.5% open window => 93.5% min heartbeat */ in rti_wdt_setup_hw_hb()
146 wdd->min_hw_heartbeat_ms = 935 * heartbeat; in rti_wdt_setup_hw_hb()
[all...]
H A Dixp4xx_wdt.c32 static int heartbeat = 60; /* (secs) Default is 1 minute */ variable
47 *IXP4XX_OSWT = WDT_TICK_RATE * heartbeat; in wdt_enable()
137 heartbeat = time; in ixp4xx_wdt_ioctl()
142 ret = put_user(heartbeat, (int *)arg); in ixp4xx_wdt_ioctl()
198 pr_info("timer heartbeat %d sec\n", heartbeat); in ixp4xx_wdt_init()
214 module_param(heartbeat, int, 0);
215 MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds (default 60s)");
H A Dmax63xx_wdt.c33 static unsigned int heartbeat = DEFAULT_HEARTBEAT; variable
214 if (heartbeat < 1 || heartbeat > MAX_HEARTBEAT) in max63xx_wdt_probe()
215 heartbeat = DEFAULT_HEARTBEAT; in max63xx_wdt_probe()
217 wdt->timeout = max63xx_select_timeout(table, heartbeat); in max63xx_wdt_probe()
219 dev_err(dev, "unable to satisfy %ds heartbeat request\n", in max63xx_wdt_probe()
220 heartbeat); in max63xx_wdt_probe()
242 dev_info(dev, "using %ds heartbeat with %ds initial delay\n", in max63xx_wdt_probe()
271 module_param(heartbeat, int, 0);
272 MODULE_PARM_DESC(heartbeat,
[all...]
H A Dnv_tco.c54 #define WATCHDOG_HEARTBEAT 30 /* 30 sec default heartbeat (2<heartbeat<39) */
55 static int heartbeat = WATCHDOG_HEARTBEAT; /* in seconds */ variable
56 module_param(heartbeat, int, 0);
57 MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (2<heartbeat<39, "
128 /* Write new heartbeat to watchdog */ in tco_timer_set_heartbeat()
143 heartbeat = t; in tco_timer_set_heartbeat()
255 return put_user(heartbeat, in nv_tco_ioctl()
[all...]
H A Dm54xx_wdt.c39 static unsigned int heartbeat = 30; /* (secs) Default is 0.5 minute */ variable
57 __raw_writel(MCF_GPT_GCIR_PRE(heartbeat*(MCF_BUSCLK/0xffff)) | in wdt_enable()
156 heartbeat = time; in m54xx_wdt_ioctl()
161 ret = put_user(heartbeat, (int *)arg); in m54xx_wdt_ioctl()
221 module_param(heartbeat, int, 0);
222 MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds (default 30s)");
H A Dat91sam9_wdt.c65 /* Timer heartbeat (500ms) */
70 static int heartbeat; variable
71 module_param(heartbeat, int, 0);
72 MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. "
88 unsigned long heartbeat; /* WDT heartbeat in jiffies */ member
126 mod_timer(&wdt->timer, jiffies + wdt->heartbeat); in at91_ping()
187 "heartbeat is too small for the system to handle it correctly\n"); in at91_wdt_init()
198 wdt->heartbeat = max_heartbeat / 4; in at91_wdt_init()
200 wdt->heartbeat in at91_wdt_init()
[all...]
H A Dpika_wdt.c34 /* Timer heartbeat (500ms) */
39 static int heartbeat = WDT_HEARTBEAT; variable
40 module_param(heartbeat, int, 0);
41 MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. "
102 pikawdt_private.next_heartbeat = jiffies + heartbeat * HZ; in pikawdt_keepalive()
198 heartbeat = new_value; in pikawdt_ioctl()
204 return put_user(heartbeat, p); in pikawdt_ioctl()
282 pr_info("initialized. heartbeat=%d sec (nowayout=%d)\n", in pikawdt_init()
283 heartbeat, nowayout); in pikawdt_init()
H A Dshwdt.c59 * As such, we currently use a configurable heartbeat interval which defaults
61 * writes to the device before the next heartbeat is scheduled. If the daemon
67 #define WATCHDOG_HEARTBEAT 30 /* 30 sec default heartbeat */
68 static int heartbeat = WATCHDOG_HEARTBEAT; /* in seconds */ variable
92 next_heartbeat = jiffies + (heartbeat * HZ); in sh_wdt_start()
152 next_heartbeat = jiffies + (heartbeat * HZ); in sh_wdt_keepalive()
167 heartbeat = t; in sh_wdt_set_heartbeat()
253 rc = sh_wdt_set_heartbeat(&sh_wdt_dev, heartbeat); in sh_wdt_probe()
259 "heartbeat value must be 1<=x<=3600, using %d\n", in sh_wdt_probe()
263 dev_info(&pdev->dev, "configured with heartbeat in sh_wdt_probe()
[all...]
H A Dpcwd_pci.c96 /* Watchdog's Dip Switch heartbeat values */
137 #define WATCHDOG_HEARTBEAT 0 /* default heartbeat =
139 static int heartbeat = WATCHDOG_HEARTBEAT; variable
140 module_param(heartbeat, int, 0);
141 MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. "
142 "(0<heartbeat<65536 or 0=delay-time from dip-switches, default="
327 /* Write new heartbeat to watchdog */ in pcipcwd_set_heartbeat()
330 heartbeat = t; in pcipcwd_set_heartbeat()
332 pr_debug("New heartbeat in pcipcwd_set_heartbeat()
[all...]
/kernel/linux/linux-6.6/drivers/watchdog/
H A Drti_wdt.c26 /* Max heartbeat is calculated at 32kHz source clock */
62 static int heartbeat = DEFAULT_HEARTBEAT; variable
137 /* 50% open window => 50% min heartbeat */ in rti_wdt_setup_hw_hb()
138 wdd->min_hw_heartbeat_ms = 500 * heartbeat; in rti_wdt_setup_hw_hb()
142 /* 25% open window => 75% min heartbeat */ in rti_wdt_setup_hw_hb()
143 wdd->min_hw_heartbeat_ms = 750 * heartbeat; in rti_wdt_setup_hw_hb()
147 /* 12.5% open window => 87.5% min heartbeat */ in rti_wdt_setup_hw_hb()
148 wdd->min_hw_heartbeat_ms = 875 * heartbeat; in rti_wdt_setup_hw_hb()
152 /* 6.5% open window => 93.5% min heartbeat */ in rti_wdt_setup_hw_hb()
153 wdd->min_hw_heartbeat_ms = 935 * heartbeat; in rti_wdt_setup_hw_hb()
[all...]
H A Dmax63xx_wdt.c31 static unsigned int heartbeat = DEFAULT_HEARTBEAT; variable
215 if (heartbeat < 1 || heartbeat > MAX_HEARTBEAT) in max63xx_wdt_probe()
216 heartbeat = DEFAULT_HEARTBEAT; in max63xx_wdt_probe()
218 wdt->timeout = max63xx_select_timeout(table, heartbeat); in max63xx_wdt_probe()
220 dev_err(dev, "unable to satisfy %ds heartbeat request\n", in max63xx_wdt_probe()
221 heartbeat); in max63xx_wdt_probe()
243 dev_info(dev, "using %ds heartbeat with %ds initial delay\n", in max63xx_wdt_probe()
284 module_param(heartbeat, int, 0);
285 MODULE_PARM_DESC(heartbeat,
[all...]
H A Dnv_tco.c54 #define WATCHDOG_HEARTBEAT 30 /* 30 sec default heartbeat (2<heartbeat<39) */
55 static int heartbeat = WATCHDOG_HEARTBEAT; /* in seconds */ variable
56 module_param(heartbeat, int, 0);
57 MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds. (2<heartbeat<39, "
128 /* Write new heartbeat to watchdog */ in tco_timer_set_heartbeat()
143 heartbeat = t; in tco_timer_set_heartbeat()
255 return put_user(heartbeat, in nv_tco_ioctl()
[all...]
H A Dm54xx_wdt.c37 static unsigned int heartbeat = 30; /* (secs) Default is 0.5 minute */ variable
55 __raw_writel(MCF_GPT_GCIR_PRE(heartbeat*(MCF_BUSCLK/0xffff)) | in wdt_enable()
154 heartbeat = time; in m54xx_wdt_ioctl()
159 ret = put_user(heartbeat, (int *)arg); in m54xx_wdt_ioctl()
219 module_param(heartbeat, int, 0);
220 MODULE_PARM_DESC(heartbeat, "Watchdog heartbeat in seconds (default 30s)");
H A Dat91sam9_wdt.c65 /* Timer heartbeat (500ms) */
70 static int heartbeat; variable
71 module_param(heartbeat, int, 0);
72 MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. "
88 unsigned long heartbeat; /* WDT heartbeat in jiffies */ member
126 mod_timer(&wdt->timer, jiffies + wdt->heartbeat); in at91_ping()
187 "heartbeat is too small for the system to handle it correctly\n"); in at91_wdt_init()
198 wdt->heartbeat = max_heartbeat / 4; in at91_wdt_init()
200 wdt->heartbeat in at91_wdt_init()
[all...]
H A Dpika_wdt.c34 /* Timer heartbeat (500ms) */
39 static int heartbeat = WDT_HEARTBEAT; variable
40 module_param(heartbeat, int, 0);
41 MODULE_PARM_DESC(heartbeat, "Watchdog heartbeats in seconds. "
102 pikawdt_private.next_heartbeat = jiffies + heartbeat * HZ; in pikawdt_keepalive()
198 heartbeat = new_value; in pikawdt_ioctl()
204 return put_user(heartbeat, p); in pikawdt_ioctl()
282 pr_info("initialized. heartbeat=%d sec (nowayout=%d)\n", in pikawdt_init()
283 heartbeat, nowayout); in pikawdt_init()
H A Dshwdt.c59 * As such, we currently use a configurable heartbeat interval which defaults
61 * writes to the device before the next heartbeat is scheduled. If the daemon
67 #define WATCHDOG_HEARTBEAT 30 /* 30 sec default heartbeat */
68 static int heartbeat = WATCHDOG_HEARTBEAT; /* in seconds */ variable
92 next_heartbeat = jiffies + (heartbeat * HZ); in sh_wdt_start()
152 next_heartbeat = jiffies + (heartbeat * HZ); in sh_wdt_keepalive()
167 heartbeat = t; in sh_wdt_set_heartbeat()
253 rc = sh_wdt_set_heartbeat(&sh_wdt_dev, heartbeat); in sh_wdt_probe()
259 "heartbeat value must be 1<=x<=3600, using %d\n", in sh_wdt_probe()
263 dev_info(&pdev->dev, "configured with heartbeat in sh_wdt_probe()
[all...]

Completed in 12 milliseconds

1234567