Lines Matching refs:snic
8 #include "snic.h"
11 * snic_debugfs_init - Initialize debugfs for snic debug logging
21 snic_glob->trc_root = debugfs_create_dir("snic", NULL);
32 * elements that are specific to snic
77 struct snic *snic = (struct snic *) filp->private_data;
81 len = sprintf(buf, "%u\n", snic->reset_stats);
95 * resets cumulative stats of snic.
106 struct snic *snic = (struct snic *) filp->private_data;
107 struct snic_stats *stats = &snic->s_stats;
126 snic->reset_stats = val;
128 if (snic->reset_stats) {
133 atomic64_set(&snic->io_cmpl_skip,
148 SNIC_HOST_INFO(snic->shost, "Reset Op: Driver statistics.\n");
167 struct snic *snic = (struct snic *) sfp->private;
168 struct snic_stats *stats = &snic->s_stats;
335 * per snic
338 * When debugfs is cofigured this routine sets up the stats file per snic
340 * to log per snic stats
342 void snic_stats_debugfs_init(struct snic *snic)
346 snprintf(name, sizeof(name), "host%d", snic->shost->host_no);
348 snic->stats_host = debugfs_create_dir(name, snic_glob->stats_root);
350 snic->stats_file = debugfs_create_file("stats", S_IFREG|S_IRUGO,
351 snic->stats_host, snic,
354 snic->reset_stats_file = debugfs_create_file("reset_stats",
356 snic->stats_host, snic,
365 * elements that are specific to to snic stats
368 snic_stats_debugfs_remove(struct snic *snic)
370 debugfs_remove(snic->stats_file);
371 snic->stats_file = NULL;
373 debugfs_remove(snic->reset_stats_file);
374 snic->reset_stats_file = NULL;
376 debugfs_remove(snic->stats_host);
377 snic->stats_host = NULL;