Lines Matching refs:snic
91 struct snic *snic = (struct snic *) filp->private_data; in snic_reset_stats_read() local
95 len = sprintf(buf, "%u\n", snic->reset_stats); in snic_reset_stats_read()
120 struct snic *snic = (struct snic *) filp->private_data; in snic_reset_stats_write() local
121 struct snic_stats *stats = &snic->s_stats; in snic_reset_stats_write()
140 snic->reset_stats = val; in snic_reset_stats_write()
142 if (snic->reset_stats) { in snic_reset_stats_write()
147 atomic64_set(&snic->io_cmpl_skip, in snic_reset_stats_write()
162 SNIC_HOST_INFO(snic->shost, "Reset Op: Driver statistics.\n"); in snic_reset_stats_write()
181 struct snic *snic = (struct snic *) sfp->private; in snic_stats_show() local
182 struct snic_stats *stats = &snic->s_stats; in snic_stats_show()
356 void snic_stats_debugfs_init(struct snic *snic) in snic_stats_debugfs_init() argument
360 snprintf(name, sizeof(name), "host%d", snic->shost->host_no); in snic_stats_debugfs_init()
362 snic->stats_host = debugfs_create_dir(name, snic_glob->stats_root); in snic_stats_debugfs_init()
364 snic->stats_file = debugfs_create_file("stats", S_IFREG|S_IRUGO, in snic_stats_debugfs_init()
365 snic->stats_host, snic, in snic_stats_debugfs_init()
368 snic->reset_stats_file = debugfs_create_file("reset_stats", in snic_stats_debugfs_init()
370 snic->stats_host, snic, in snic_stats_debugfs_init()
382 snic_stats_debugfs_remove(struct snic *snic) in snic_stats_debugfs_remove() argument
384 debugfs_remove(snic->stats_file); in snic_stats_debugfs_remove()
385 snic->stats_file = NULL; in snic_stats_debugfs_remove()
387 debugfs_remove(snic->reset_stats_file); in snic_stats_debugfs_remove()
388 snic->reset_stats_file = NULL; in snic_stats_debugfs_remove()
390 debugfs_remove(snic->stats_host); in snic_stats_debugfs_remove()
391 snic->stats_host = NULL; in snic_stats_debugfs_remove()