Lines Matching refs:pvt

308 	struct e752x_pvt *pvt = (struct e752x_pvt *)mci->pvt_info;  in ctl_page_to_phys()  local
312 if (page < pvt->tolm) in ctl_page_to_phys()
315 if ((page >= 0x100000) && (page < pvt->remapbase)) in ctl_page_to_phys()
318 remap = (page - pvt->tolm) + pvt->remapbase; in ctl_page_to_phys()
320 if (remap < pvt->remaplimit) in ctl_page_to_phys()
324 return pvt->tolm - 1; in ctl_page_to_phys()
334 struct e752x_pvt *pvt = (struct e752x_pvt *)mci->pvt_info; in do_process_ce() local
342 if (pvt->mc_symmetric) { in do_process_ce()
347 pvt->map[0], pvt->map[1], pvt->map[2], pvt->map[3], in do_process_ce()
348 pvt->map[4], pvt->map[5], pvt->map[6], in do_process_ce()
349 pvt->map[7]); in do_process_ce()
353 if (pvt->map[i] == row) in do_process_ce()
393 struct e752x_pvt *pvt = (struct e752x_pvt *)mci->pvt_info; in do_process_ue() local
403 row = pvt->mc_symmetric ? in do_process_ue()
422 row = pvt->mc_symmetric ? in do_process_ue()
465 struct e752x_pvt *pvt = (struct e752x_pvt *)mci->pvt_info; in do_process_ded_retry() local
471 row = pvt->mc_symmetric ? ((page >> 1) & 3) : in do_process_ded_retry()
842 struct e752x_pvt *pvt; in e752x_get_error_info() local
845 pvt = (struct e752x_pvt *)mci->pvt_info; in e752x_get_error_info()
846 dev = pvt->dev_d0f1; in e752x_get_error_info()
850 if (pvt->dev_info->err_dev == PCI_DEVICE_ID_INTEL_3100_1_ERR) { in e752x_get_error_info()
892 pci_write_bits16(pvt->dev_d0f1, E752X_DRAM_FERR, in e752x_get_error_info()
902 if (pvt->dev_info->err_dev == PCI_DEVICE_ID_INTEL_3100_1_ERR) { in e752x_get_error_info()
937 pci_write_bits16(pvt->dev_d0f1, E752X_DRAM_NERR, in e752x_get_error_info()
991 struct e752x_pvt *pvt = (struct e752x_pvt *) mci->pvt_info; in set_sdram_scrub_rate() local
992 struct pci_dev *pdev = pvt->dev_d0f0; in set_sdram_scrub_rate()
995 if (pvt->dev_info->ctl_dev == PCI_DEVICE_ID_INTEL_3100_0) in set_sdram_scrub_rate()
1020 struct e752x_pvt *pvt = (struct e752x_pvt *) mci->pvt_info; in get_sdram_scrub_rate() local
1021 struct pci_dev *pdev = pvt->dev_d0f0; in get_sdram_scrub_rate()
1025 if (pvt->dev_info->ctl_dev == PCI_DEVICE_ID_INTEL_3100_0) in get_sdram_scrub_rate()
1057 struct e752x_pvt *pvt = mci->pvt_info; in remap_csrow_index() local
1059 if (!pvt->map_type) in remap_csrow_index()
1139 struct e752x_pvt *pvt) in e752x_init_mem_map_table() argument
1152 pvt->map[index] = 0xff; in e752x_init_mem_map_table()
1153 pvt->map[index + 1] = 0xff; in e752x_init_mem_map_table()
1155 pvt->map[index] = row; in e752x_init_mem_map_table()
1166 pvt->map[index + 1] = (value == last) ? 0xff : row; in e752x_init_mem_map_table()
1175 struct e752x_pvt *pvt) in e752x_get_devs() argument
1177 pvt->dev_d0f1 = pci_get_device(PCI_VENDOR_ID_INTEL, in e752x_get_devs()
1178 pvt->dev_info->err_dev, NULL); in e752x_get_devs()
1180 if (pvt->dev_d0f1 == NULL) { in e752x_get_devs()
1181 pvt->dev_d0f1 = pci_scan_single_device(pdev->bus, in e752x_get_devs()
1183 pci_dev_get(pvt->dev_d0f1); in e752x_get_devs()
1186 if (pvt->dev_d0f1 == NULL) { in e752x_get_devs()
1193 pvt->dev_d0f0 = pci_get_device(PCI_VENDOR_ID_INTEL, in e752x_get_devs()
1197 if (pvt->dev_d0f0 == NULL) in e752x_get_devs()
1203 pci_dev_put(pvt->dev_d0f1); in e752x_get_devs()
1211 static void e752x_init_sysbus_parity_mask(struct e752x_pvt *pvt) in e752x_init_sysbus_parity_mask() argument
1214 struct pci_dev *dev = pvt->dev_d0f1; in e752x_init_sysbus_parity_mask()
1232 static void e752x_init_error_reporting_regs(struct e752x_pvt *pvt) in e752x_init_error_reporting_regs() argument
1236 dev = pvt->dev_d0f1; in e752x_init_error_reporting_regs()
1238 if (pvt->dev_info->err_dev == PCI_DEVICE_ID_INTEL_3100_1_ERR) { in e752x_init_error_reporting_regs()
1246 e752x_init_sysbus_parity_mask(pvt); in e752x_init_error_reporting_regs()
1261 struct e752x_pvt *pvt; in e752x_probe1() local
1293 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, sizeof(*pvt)); in e752x_probe1()
1307 pvt = (struct e752x_pvt *)mci->pvt_info; in e752x_probe1()
1308 pvt->dev_info = &e752x_devs[dev_idx]; in e752x_probe1()
1309 pvt->mc_symmetric = ((ddrcsr & 0x10) != 0); in e752x_probe1()
1311 if (e752x_get_devs(pdev, dev_idx, pvt)) { in e752x_probe1()
1317 mci->ctl_name = pvt->dev_info->ctl_name; in e752x_probe1()
1329 pvt->map_type = ((stat8 & 0x0f) > ((stat8 >> 4) & 0x0f)); in e752x_probe1()
1332 e752x_init_mem_map_table(pdev, pvt); in e752x_probe1()
1342 pvt->tolm = ((u32) pci_data) << 4; in e752x_probe1()
1344 pvt->remapbase = ((u32) pci_data) << 14; in e752x_probe1()
1346 pvt->remaplimit = ((u32) pci_data) << 14; in e752x_probe1()
1349 pvt->tolm, pvt->remapbase, pvt->remaplimit); in e752x_probe1()
1359 e752x_init_error_reporting_regs(pvt); in e752x_probe1()
1377 pci_dev_put(pvt->dev_d0f0); in e752x_probe1()
1378 pci_dev_put(pvt->dev_d0f1); in e752x_probe1()
1399 struct e752x_pvt *pvt; in e752x_remove_one() local
1409 pvt = (struct e752x_pvt *)mci->pvt_info; in e752x_remove_one()
1410 pci_dev_put(pvt->dev_d0f0); in e752x_remove_one()
1411 pci_dev_put(pvt->dev_d0f1); in e752x_remove_one()