Lines Matching full:heartbeat
3 * Simple heartbeat STM source driver
6 * Heartbeat STM source will send repetitive messages over STM devices to a
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
61 heartbeat->active = 0; in stm_heartbeat_unlink()
62 hrtimer_cancel(&heartbeat->hrtimer); in stm_heartbeat_unlink()
74 kasprintf(GFP_KERNEL, "heartbeat.%d", i); in stm_heartbeat_init()