linux/drivers/crypto/intel/qat/qat_common/adf_cnv_dbgfs.c

// SPDX-License-Identifier: GPL-2.0-only
/* Copyright(c) 2023 Intel Corporation */

#include <linux/bitfield.h>
#include <linux/debugfs.h>
#include <linux/kernel.h>

#include "adf_accel_devices.h"
#include "adf_admin.h"
#include "adf_common_drv.h"
#include "adf_cnv_dbgfs.h"
#include "qat_compression.h"

#define CNV_DEBUGFS_FILENAME
#define CNV_MIN_PADDING

#define CNV_ERR_INFO_MASK
#define CNV_ERR_TYPE_MASK
#define CNV_SLICE_ERR_SIGN_BIT_INDEX
#define CNV_DELTA_ERR_SIGN_BIT_INDEX

enum cnv_error_type {};

#define CNV_ERROR_TYPE_GET(latest_err)

#define CNV_GET_DELTA_ERR_INFO(latest_error)

#define CNV_GET_SLICE_ERR_INFO(latest_error)

#define CNV_GET_DEFAULT_ERR_INFO(latest_error)

enum cnv_fields {};

static const char * const cnv_field_names[CNV_FIELDS_COUNT] =;

static const char * const cnv_error_names[CNV_ERR_TYPES_COUNT] =;

struct ae_cnv_errors {};

struct cnv_err_stats {};

static s16 get_err_info(u8 error_type, u16 latest)
{}

static void *qat_cnv_errors_seq_start(struct seq_file *sfile, loff_t *pos)
{}

static void *qat_cnv_errors_seq_next(struct seq_file *sfile, void *v,
				     loff_t *pos)
{}

static void qat_cnv_errors_seq_stop(struct seq_file *sfile, void *v)
{}

static int qat_cnv_errors_seq_show(struct seq_file *sfile, void *v)
{}

static const struct seq_operations qat_cnv_errors_sops =;

/**
 * cnv_err_stats_alloc() - Get CNV stats for the provided device.
 * @accel_dev: Pointer to a QAT acceleration device
 *
 * Allocates and populates table of CNV errors statistics for each non-admin AE
 * available through the supplied acceleration device. The caller becomes the
 * owner of such memory and is responsible for the deallocation through a call
 * to kfree().
 *
 * Returns: a pointer to a dynamically allocated struct cnv_err_stats on success
 * or a negative value on error.
 */
static struct cnv_err_stats *cnv_err_stats_alloc(struct adf_accel_dev *accel_dev)
{}

static int qat_cnv_errors_file_open(struct inode *inode, struct file *file)
{}

static int qat_cnv_errors_file_release(struct inode *inode, struct file *file)
{}

static const struct file_operations qat_cnv_fops =;

static ssize_t no_comp_file_read(struct file *f, char __user *buf, size_t count,
				 loff_t *pos)
{}

static const struct file_operations qat_cnv_no_comp_fops =;

void adf_cnv_dbgfs_add(struct adf_accel_dev *accel_dev)
{}

void adf_cnv_dbgfs_rm(struct adf_accel_dev *accel_dev)
{}