Lines Matching full:aer
417 "Clear port and device AER state on driver attach");
4346 int aer; in pci_add_child_clear_aer() local
4359 if (pci_find_extcap(dev, PCIZ_AER, &aer) == 0) { in pci_add_child_clear_aer()
4360 r = pci_read_config(dev, aer + PCIR_AER_UC_STATUS, 4); in pci_add_child_clear_aer()
4361 pci_write_config(dev, aer + PCIR_AER_UC_STATUS, r, 4); in pci_add_child_clear_aer()
4364 "clearing AER UC 0x%08x -> 0x%08x\n", in pci_add_child_clear_aer()
4365 r, pci_read_config(dev, aer + PCIR_AER_UC_STATUS, in pci_add_child_clear_aer()
4369 r = pci_read_config(dev, aer + PCIR_AER_UC_MASK, 4); in pci_add_child_clear_aer()
4387 pci_write_config(dev, aer + PCIR_AER_UC_MASK, r, 4); in pci_add_child_clear_aer()
4389 r = pci_read_config(dev, aer + PCIR_AER_COR_STATUS, 4); in pci_add_child_clear_aer()
4390 pci_write_config(dev, aer + PCIR_AER_COR_STATUS, r, 4); in pci_add_child_clear_aer()
4393 "clearing AER COR 0x%08x -> 0x%08x\n", in pci_add_child_clear_aer()
4394 r, pci_read_config(dev, aer + PCIR_AER_COR_STATUS, in pci_add_child_clear_aer()
4398 r = pci_read_config(dev, aer + PCIR_AER_COR_MASK, 4); in pci_add_child_clear_aer()
4407 pci_write_config(dev, aer + PCIR_AER_COR_MASK, r, 4); in pci_add_child_clear_aer()
6558 int aer; in pcie_apei_error() local
6588 if (pci_find_extcap(dev, PCIZ_AER, &aer) == 0) { in pcie_apei_error()
6589 r = pci_read_config(dev, aer + PCIR_AER_UC_STATUS, 4); in pcie_apei_error()
6591 pci_write_config(dev, aer + PCIR_AER_UC_STATUS, r, 4); in pcie_apei_error()
6592 device_printf(dev, "Clearing UC AER errors 0x%08x\n", r); in pcie_apei_error()
6595 r = pci_read_config(dev, aer + PCIR_AER_COR_STATUS, 4); in pcie_apei_error()
6597 pci_write_config(dev, aer + PCIR_AER_COR_STATUS, r, 4); in pcie_apei_error()
6598 device_printf(dev, "Clearing COR AER errors 0x%08x\n", r); in pcie_apei_error()
6831 int aer, i; in pci_print_faulted_dev() local
6860 if (pci_find_extcap(dev, PCIZ_AER, &aer) == 0) { in pci_print_faulted_dev()
6861 r1 = pci_read_config(dev, aer + PCIR_AER_UC_STATUS, 4); in pci_print_faulted_dev()
6862 r2 = pci_read_config(dev, aer + PCIR_AER_COR_STATUS, 4); in pci_print_faulted_dev()
6865 printf(" AER UC 0x%08x Mask 0x%08x Svr 0x%08x\n" in pci_print_faulted_dev()
6867 r1, pci_read_config(dev, aer + in pci_print_faulted_dev()
6869 pci_read_config(dev, aer + in pci_print_faulted_dev()
6871 r2, pci_read_config(dev, aer + in pci_print_faulted_dev()
6873 pci_read_config(dev, aer + in pci_print_faulted_dev()
6876 r1 = pci_read_config(dev, aer + in pci_print_faulted_dev()
6896 int aer; in db_clear_pcie_errors() local
6905 if (pci_find_extcap(dev, PCIZ_AER, &aer) != 0) in db_clear_pcie_errors()
6907 r = pci_read_config(dev, aer + PCIR_AER_UC_STATUS, 4); in db_clear_pcie_errors()
6909 pci_write_config(dev, aer + PCIR_AER_UC_STATUS, r, 4); in db_clear_pcie_errors()
6910 r = pci_read_config(dev, aer + PCIR_AER_COR_STATUS, 4); in db_clear_pcie_errors()
6912 pci_write_config(dev, aer + PCIR_AER_COR_STATUS, r, 4); in db_clear_pcie_errors()