#define dev_fmt(fmt) …
#include <linux/dev_printk.h>
#include <linux/pci.h>
#include <linux/sysfs.h>
#include <linux/types.h>
#include "adf_common_drv.h"
#include "adf_rl.h"
#include "adf_sysfs_rl.h"
#define GET_RL_STRUCT(accel_dev) …
enum rl_ops { … };
enum rl_params { … };
static const char *const rl_services[] = …;
static const char *const rl_operations[] = …;
static int set_param_u(struct device *dev, enum rl_params param, u64 set)
{ … }
static int set_param_s(struct device *dev, enum rl_params param, int set)
{ … }
static int get_param_u(struct device *dev, enum rl_params param, u64 *get)
{ … }
static int get_param_s(struct device *dev, enum rl_params param)
{ … }
static ssize_t rp_show(struct device *dev, struct device_attribute *attr,
char *buf)
{ … }
static ssize_t rp_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_RW(rp);
static ssize_t id_show(struct device *dev, struct device_attribute *attr,
char *buf)
{ … }
static ssize_t id_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_RW(id);
static ssize_t cir_show(struct device *dev, struct device_attribute *attr,
char *buf)
{ … }
static ssize_t cir_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_RW(cir);
static ssize_t pir_show(struct device *dev, struct device_attribute *attr,
char *buf)
{ … }
static ssize_t pir_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_RW(pir);
static ssize_t srv_show(struct device *dev, struct device_attribute *attr,
char *buf)
{ … }
static ssize_t srv_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_RW(srv);
static ssize_t cap_rem_show(struct device *dev, struct device_attribute *attr,
char *buf)
{ … }
static ssize_t cap_rem_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_RW(cap_rem);
static ssize_t sla_op_store(struct device *dev, struct device_attribute *attr,
const char *buf, size_t count)
{ … }
static DEVICE_ATTR_WO(sla_op);
static struct attribute *qat_rl_attrs[] = …;
static struct attribute_group qat_rl_group = …;
int adf_sysfs_rl_add(struct adf_accel_dev *accel_dev)
{ … }
void adf_sysfs_rl_rm(struct adf_accel_dev *accel_dev)
{ … }