#include <rdma/ib_addr.h>
#include <rdma/ib_pma.h>
#include "ocrdma_stats.h"
static struct dentry *ocrdma_dbgfs_dir;
static noinline_for_stack int ocrdma_add_stat(char *start, char *pcur,
char *name, u64 count)
{ … }
bool ocrdma_alloc_stats_resources(struct ocrdma_dev *dev)
{ … }
void ocrdma_release_stats_resources(struct ocrdma_dev *dev)
{ … }
static noinline_for_stack char *ocrdma_resource_stats(struct ocrdma_dev *dev)
{ … }
static noinline_for_stack char *ocrdma_rx_stats(struct ocrdma_dev *dev)
{ … }
static u64 ocrdma_sysfs_rcv_pkts(struct ocrdma_dev *dev)
{ … }
static u64 ocrdma_sysfs_rcv_data(struct ocrdma_dev *dev)
{ … }
static noinline_for_stack char *ocrdma_tx_stats(struct ocrdma_dev *dev)
{ … }
static u64 ocrdma_sysfs_xmit_pkts(struct ocrdma_dev *dev)
{ … }
static u64 ocrdma_sysfs_xmit_data(struct ocrdma_dev *dev)
{ … }
static noinline_for_stack char *ocrdma_wqe_stats(struct ocrdma_dev *dev)
{ … }
static noinline_for_stack char *ocrdma_db_errstats(struct ocrdma_dev *dev)
{ … }
static noinline_for_stack char *ocrdma_rxqp_errstats(struct ocrdma_dev *dev)
{ … }
static noinline_for_stack char *ocrdma_txqp_errstats(struct ocrdma_dev *dev)
{ … }
static noinline_for_stack char *ocrdma_tx_dbg_stats(struct ocrdma_dev *dev)
{ … }
static noinline_for_stack char *ocrdma_rx_dbg_stats(struct ocrdma_dev *dev)
{ … }
static noinline_for_stack char *ocrdma_driver_dbg_stats(struct ocrdma_dev *dev)
{ … }
static void ocrdma_update_stats(struct ocrdma_dev *dev)
{ … }
static ssize_t ocrdma_dbgfs_ops_write(struct file *filp,
const char __user *buffer,
size_t count, loff_t *ppos)
{ … }
void ocrdma_pma_counters(struct ocrdma_dev *dev, struct ib_mad *out_mad)
{ … }
static ssize_t ocrdma_dbgfs_ops_read(struct file *filp, char __user *buffer,
size_t usr_buf_len, loff_t *ppos)
{ … }
static const struct file_operations ocrdma_dbg_ops = …;
void ocrdma_add_port_stats(struct ocrdma_dev *dev)
{ … }
void ocrdma_rem_port_stats(struct ocrdma_dev *dev)
{ … }
void ocrdma_init_debugfs(void)
{ … }
void ocrdma_rem_debugfs(void)
{ … }