Lines Matching refs:aer_stats
53 struct aer_stats { struct
378 dev->aer_stats = kzalloc(sizeof(struct aer_stats), GFP_KERNEL); in pci_aer_init()
394 kfree(dev->aer_stats); in pci_aer_exit()
395 dev->aer_stats = NULL; in pci_aer_exit()
533 u64 *stats = pdev->aer_stats->stats_array; \
547 pdev->aer_stats->total_field); \
568 return sysfs_emit(buf, "%llu\n", pdev->aer_stats->field); \
595 if (!pdev->aer_stats) in aer_stats_attrs_are_visible()
619 struct aer_stats *aer_stats = pdev->aer_stats; in pci_dev_aer_stats_incr() local
621 if (!aer_stats) in pci_dev_aer_stats_incr()
626 aer_stats->dev_total_cor_errs++; in pci_dev_aer_stats_incr()
627 counter = &aer_stats->dev_cor_errs[0]; in pci_dev_aer_stats_incr()
631 aer_stats->dev_total_nonfatal_errs++; in pci_dev_aer_stats_incr()
632 counter = &aer_stats->dev_nonfatal_errs[0]; in pci_dev_aer_stats_incr()
636 aer_stats->dev_total_fatal_errs++; in pci_dev_aer_stats_incr()
637 counter = &aer_stats->dev_fatal_errs[0]; in pci_dev_aer_stats_incr()
649 struct aer_stats *aer_stats = pdev->aer_stats; in pci_rootport_aer_stats_incr() local
651 if (!aer_stats) in pci_rootport_aer_stats_incr()
655 aer_stats->rootport_total_cor_errs++; in pci_rootport_aer_stats_incr()
659 aer_stats->rootport_total_fatal_errs++; in pci_rootport_aer_stats_incr()
661 aer_stats->rootport_total_nonfatal_errs++; in pci_rootport_aer_stats_incr()