#include <linux/mutex.h>
#include <linux/slab.h>
#include <linux/seq_file.h>
#include "adf_accel_devices.h"
#include "adf_transport_internal.h"
#include "adf_transport_access_macros.h"
static DEFINE_MUTEX(ring_read_lock);
static DEFINE_MUTEX(bank_read_lock);
static void *adf_ring_start(struct seq_file *sfile, loff_t *pos)
{ … }
static void *adf_ring_next(struct seq_file *sfile, void *v, loff_t *pos)
{ … }
static int adf_ring_show(struct seq_file *sfile, void *v)
{ … }
static void adf_ring_stop(struct seq_file *sfile, void *v)
{ … }
static const struct seq_operations adf_ring_debug_sops = …;
DEFINE_SEQ_ATTRIBUTE(…);
int adf_ring_debugfs_add(struct adf_etr_ring_data *ring, const char *name)
{ … }
void adf_ring_debugfs_rm(struct adf_etr_ring_data *ring)
{ … }
static void *adf_bank_start(struct seq_file *sfile, loff_t *pos)
{ … }
static void *adf_bank_next(struct seq_file *sfile, void *v, loff_t *pos)
{ … }
static int adf_bank_show(struct seq_file *sfile, void *v)
{ … }
static void adf_bank_stop(struct seq_file *sfile, void *v)
{ … }
static const struct seq_operations adf_bank_debug_sops = …;
DEFINE_SEQ_ATTRIBUTE(…);
int adf_bank_debugfs_add(struct adf_etr_bank_data *bank)
{ … }
void adf_bank_debugfs_rm(struct adf_etr_bank_data *bank)
{ … }