Lines Matching full:hb
143 struct bcm_vk_hb_ctrl *hb = container_of(to_delayed_work(work), struct bcm_vk_hb_ctrl, in bcm_vk_hb_poll() local
145 struct bcm_vk *vk = container_of(hb, struct bcm_vk, hb_ctrl); in bcm_vk_hb_poll()
151 if (uptime_s == hb->last_uptime) in bcm_vk_hb_poll()
152 hb->lost_cnt++; in bcm_vk_hb_poll()
154 hb->lost_cnt = 0; in bcm_vk_hb_poll()
157 hb->last_uptime, uptime_s, hb->lost_cnt); in bcm_vk_hb_poll()
164 hb->last_uptime = uptime_s; in bcm_vk_hb_poll()
167 hb->lost_cnt = 0; in bcm_vk_hb_poll()
171 if (hb->lost_cnt > BCM_VK_HB_LOST_MAX) { in bcm_vk_hb_poll()
180 schedule_delayed_work(&hb->work, BCM_VK_HB_TIMER_VALUE); in bcm_vk_hb_poll()
185 struct bcm_vk_hb_ctrl *hb = &vk->hb_ctrl; in bcm_vk_hb_init() local
187 INIT_DELAYED_WORK(&hb->work, bcm_vk_hb_poll); in bcm_vk_hb_init()
188 schedule_delayed_work(&hb->work, BCM_VK_HB_TIMER_VALUE); in bcm_vk_hb_init()
193 struct bcm_vk_hb_ctrl *hb = &vk->hb_ctrl; in bcm_vk_hb_deinit() local
195 cancel_delayed_work_sync(&hb->work); in bcm_vk_hb_deinit()