Lines Matching refs:aer_stats
53 struct aer_stats { struct
383 dev->aer_stats = kzalloc(sizeof(struct aer_stats), GFP_KERNEL); in pci_aer_init()
399 kfree(dev->aer_stats); in pci_aer_exit()
400 dev->aer_stats = NULL; in pci_aer_exit()
538 u64 *stats = pdev->aer_stats->stats_array; \
541 for (i = 0; i < ARRAY_SIZE(pdev->aer_stats->stats_array); i++) {\
552 pdev->aer_stats->total_field); \
573 return sysfs_emit(buf, "%llu\n", pdev->aer_stats->field); \
600 if (!pdev->aer_stats) in aer_stats_attrs_are_visible()
624 struct aer_stats *aer_stats = pdev->aer_stats; in pci_dev_aer_stats_incr() local
626 if (!aer_stats) in pci_dev_aer_stats_incr()
631 aer_stats->dev_total_cor_errs++; in pci_dev_aer_stats_incr()
632 counter = &aer_stats->dev_cor_errs[0]; in pci_dev_aer_stats_incr()
636 aer_stats->dev_total_nonfatal_errs++; in pci_dev_aer_stats_incr()
637 counter = &aer_stats->dev_nonfatal_errs[0]; in pci_dev_aer_stats_incr()
641 aer_stats->dev_total_fatal_errs++; in pci_dev_aer_stats_incr()
642 counter = &aer_stats->dev_fatal_errs[0]; in pci_dev_aer_stats_incr()
654 struct aer_stats *aer_stats = pdev->aer_stats; in pci_rootport_aer_stats_incr() local
656 if (!aer_stats) in pci_rootport_aer_stats_incr()
660 aer_stats->rootport_total_cor_errs++; in pci_rootport_aer_stats_incr()
664 aer_stats->rootport_total_fatal_errs++; in pci_rootport_aer_stats_incr()
666 aer_stats->rootport_total_nonfatal_errs++; in pci_rootport_aer_stats_incr()