Lines Matching refs:snic
111 struct snic *snic = (struct snic *) filp->private_data; in snic_reset_stats_read() local
115 len = sprintf(buf, "%u\n", snic->reset_stats); in snic_reset_stats_read()
140 struct snic *snic = (struct snic *) filp->private_data; in snic_reset_stats_write() local
141 struct snic_stats *stats = &snic->s_stats; in snic_reset_stats_write()
160 snic->reset_stats = val; in snic_reset_stats_write()
162 if (snic->reset_stats) { in snic_reset_stats_write()
167 atomic64_set(&snic->io_cmpl_skip, in snic_reset_stats_write()
182 SNIC_HOST_INFO(snic->shost, "Reset Op: Driver statistics.\n"); in snic_reset_stats_write()
201 struct snic *snic = (struct snic *) sfp->private; in snic_stats_show() local
202 struct snic_stats *stats = &snic->s_stats; in snic_stats_show()
383 snic_stats_debugfs_init(struct snic *snic) in snic_stats_debugfs_init() argument
389 snprintf(name, sizeof(name), "host%d", snic->shost->host_no); in snic_stats_debugfs_init()
402 snic->stats_host = de; in snic_stats_debugfs_init()
406 snic->stats_host, in snic_stats_debugfs_init()
407 snic, in snic_stats_debugfs_init()
414 snic->stats_file = de; in snic_stats_debugfs_init()
418 snic->stats_host, in snic_stats_debugfs_init()
419 snic, in snic_stats_debugfs_init()
427 snic->reset_stats_file = de; in snic_stats_debugfs_init()
441 snic_stats_debugfs_remove(struct snic *snic) in snic_stats_debugfs_remove() argument
443 debugfs_remove(snic->stats_file); in snic_stats_debugfs_remove()
444 snic->stats_file = NULL; in snic_stats_debugfs_remove()
446 debugfs_remove(snic->reset_stats_file); in snic_stats_debugfs_remove()
447 snic->reset_stats_file = NULL; in snic_stats_debugfs_remove()
449 debugfs_remove(snic->stats_host); in snic_stats_debugfs_remove()
450 snic->stats_host = NULL; in snic_stats_debugfs_remove()