#include <linux/dev_printk.h>
#include <linux/dma-mapping.h>
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/kstrtox.h>
#include <linux/overflow.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <asm/errno.h>
#include "adf_accel_devices.h"
#include "adf_admin.h"
#include "adf_cfg.h"
#include "adf_cfg_strings.h"
#include "adf_clock.h"
#include "adf_common_drv.h"
#include "adf_heartbeat.h"
#include "adf_transport_internal.h"
#include "icp_qat_fw_init_admin.h"
#define ADF_HB_EMPTY_SIG …
static int adf_hb_check_polling_freq(struct adf_accel_dev *accel_dev)
{ … }
static bool validate_hb_ctrs_cnt(struct adf_accel_dev *accel_dev)
{ … }
void adf_heartbeat_check_ctrs(struct adf_accel_dev *accel_dev)
{ … }
EXPORT_SYMBOL_GPL(…);
static int get_timer_ticks(struct adf_accel_dev *accel_dev, unsigned int *value)
{ … }
static int check_ae(struct hb_cnt_pair *curr, struct hb_cnt_pair *prev,
u16 *count, const size_t hb_ctrs)
{ … }
static int adf_hb_get_status(struct adf_accel_dev *accel_dev)
{ … }
static void adf_heartbeat_reset(struct adf_accel_dev *accel_dev)
{ … }
void adf_heartbeat_status(struct adf_accel_dev *accel_dev,
enum adf_device_heartbeat_status *hb_status)
{ … }
int adf_heartbeat_ms_to_ticks(struct adf_accel_dev *accel_dev, unsigned int time_ms,
u32 *value)
{ … }
int adf_heartbeat_save_cfg_param(struct adf_accel_dev *accel_dev,
unsigned int timer_ms)
{ … }
EXPORT_SYMBOL_GPL(…);
int adf_heartbeat_init(struct adf_accel_dev *accel_dev)
{ … }
int adf_heartbeat_start(struct adf_accel_dev *accel_dev)
{ … }
void adf_heartbeat_shutdown(struct adf_accel_dev *accel_dev)
{ … }