#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/list.h>
#include <linux/seq_file.h>
#include "adf_accel_devices.h"
#include "adf_cfg.h"
#include "adf_common_drv.h"
static DEFINE_MUTEX(qat_cfg_read_lock);
static void *qat_dev_cfg_start(struct seq_file *sfile, loff_t *pos)
{ … }
static int qat_dev_cfg_show(struct seq_file *sfile, void *v)
{ … }
static void *qat_dev_cfg_next(struct seq_file *sfile, void *v, loff_t *pos)
{ … }
static void qat_dev_cfg_stop(struct seq_file *sfile, void *v)
{ … }
static const struct seq_operations qat_dev_cfg_sops = …;
DEFINE_SEQ_ATTRIBUTE(…);
int adf_cfg_dev_add(struct adf_accel_dev *accel_dev)
{ … }
EXPORT_SYMBOL_GPL(…);
void adf_cfg_dev_dbgfs_add(struct adf_accel_dev *accel_dev)
{ … }
void adf_cfg_dev_dbgfs_rm(struct adf_accel_dev *accel_dev)
{ … }
static void adf_cfg_section_del_all(struct list_head *head);
void adf_cfg_del_all(struct adf_accel_dev *accel_dev)
{ … }
void adf_cfg_dev_remove(struct adf_accel_dev *accel_dev)
{ … }
EXPORT_SYMBOL_GPL(…);
static void adf_cfg_keyval_add(struct adf_cfg_key_val *new,
struct adf_cfg_section *sec)
{ … }
static void adf_cfg_keyval_remove(const char *key, struct adf_cfg_section *sec)
{ … }
static void adf_cfg_keyval_del_all(struct list_head *head)
{ … }
static void adf_cfg_section_del_all(struct list_head *head)
{ … }
static struct adf_cfg_key_val *adf_cfg_key_value_find(struct adf_cfg_section *s,
const char *key)
{ … }
static struct adf_cfg_section *adf_cfg_sec_find(struct adf_accel_dev *accel_dev,
const char *sec_name)
{ … }
static int adf_cfg_key_val_get(struct adf_accel_dev *accel_dev,
const char *sec_name,
const char *key_name,
char *val)
{ … }
int adf_cfg_add_key_value_param(struct adf_accel_dev *accel_dev,
const char *section_name,
const char *key, const void *val,
enum adf_cfg_val_type type)
{ … }
EXPORT_SYMBOL_GPL(…);
int adf_cfg_section_add(struct adf_accel_dev *accel_dev, const char *name)
{ … }
EXPORT_SYMBOL_GPL(…);
int adf_cfg_get_param_value(struct adf_accel_dev *accel_dev,
const char *section, const char *name,
char *value)
{ … }
EXPORT_SYMBOL_GPL(…);