#define dev_fmt(fmt) …
#include <asm/errno.h>
#include <linux/atomic.h>
#include <linux/device.h>
#include <linux/dev_printk.h>
#include <linux/dma-mapping.h>
#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/workqueue.h>
#include "adf_admin.h"
#include "adf_accel_devices.h"
#include "adf_common_drv.h"
#include "adf_telemetry.h"
#define TL_IS_ZERO(input) …
static bool is_tl_supported(struct adf_accel_dev *accel_dev)
{ … }
static int validate_tl_data(struct adf_tl_hw_data *tl_data)
{ … }
static int validate_tl_slice_counters(struct icp_qat_fw_init_admin_slice_cnt *slice_count,
u8 max_slices_per_type)
{ … }
static int adf_tl_alloc_mem(struct adf_accel_dev *accel_dev)
{ … }
static void adf_tl_free_mem(struct adf_accel_dev *accel_dev)
{ … }
static unsigned long get_next_timeout(void)
{ … }
static void snapshot_regs(struct adf_telemetry *telemetry, size_t size)
{ … }
static void tl_work_handler(struct work_struct *work)
{ … }
int adf_tl_halt(struct adf_accel_dev *accel_dev)
{ … }
int adf_tl_run(struct adf_accel_dev *accel_dev, int state)
{ … }
int adf_tl_init(struct adf_accel_dev *accel_dev)
{ … }
int adf_tl_start(struct adf_accel_dev *accel_dev)
{ … }
void adf_tl_stop(struct adf_accel_dev *accel_dev)
{ … }
void adf_tl_shutdown(struct adf_accel_dev *accel_dev)
{ … }