// SPDX-License-Identifier: GPL-2.0-only /* Copyright(c) 2023 Intel Corporation */ #include <linux/random.h> #include "adf_admin.h" #include "adf_common_drv.h" #include "adf_heartbeat.h" #define MAX_HB_TICKS … static int adf_hb_set_timer_to_max(struct adf_accel_dev *accel_dev) { … } static void adf_set_hb_counters_fail(struct adf_accel_dev *accel_dev, u32 ae, u32 thr) { … } int adf_heartbeat_inject_error(struct adf_accel_dev *accel_dev) { … }