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()
992 struct e752x_pvt *pvt = (struct e752x_pvt *) mci->pvt_info; in set_sdram_scrub_rate() local
993 struct pci_dev *pdev = pvt->dev_d0f0; in set_sdram_scrub_rate()
996 if (pvt->dev_info->ctl_dev == PCI_DEVICE_ID_INTEL_3100_0) in set_sdram_scrub_rate()
1021 struct e752x_pvt *pvt = (struct e752x_pvt *) mci->pvt_info; in get_sdram_scrub_rate() local
1022 struct pci_dev *pdev = pvt->dev_d0f0; in get_sdram_scrub_rate()
1026 if (pvt->dev_info->ctl_dev == PCI_DEVICE_ID_INTEL_3100_0) in get_sdram_scrub_rate()
1058 struct e752x_pvt *pvt = mci->pvt_info; in remap_csrow_index() local
1060 if (!pvt->map_type) in remap_csrow_index()
1140 struct e752x_pvt *pvt) in e752x_init_mem_map_table() argument
1153 pvt->map[index] = 0xff; in e752x_init_mem_map_table()
1154 pvt->map[index + 1] = 0xff; in e752x_init_mem_map_table()
1156 pvt->map[index] = row; in e752x_init_mem_map_table()
1167 pvt->map[index + 1] = (value == last) ? 0xff : row; in e752x_init_mem_map_table()
1176 struct e752x_pvt *pvt) in e752x_get_devs() argument
1178 pvt->dev_d0f1 = pci_get_device(PCI_VENDOR_ID_INTEL, in e752x_get_devs()
1179 pvt->dev_info->err_dev, NULL); in e752x_get_devs()
1181 if (pvt->dev_d0f1 == NULL) { in e752x_get_devs()
1182 pvt->dev_d0f1 = pci_scan_single_device(pdev->bus, in e752x_get_devs()
1184 pci_dev_get(pvt->dev_d0f1); in e752x_get_devs()
1187 if (pvt->dev_d0f1 == NULL) { in e752x_get_devs()
1194 pvt->dev_d0f0 = pci_get_device(PCI_VENDOR_ID_INTEL, in e752x_get_devs()
1198 if (pvt->dev_d0f0 == NULL) in e752x_get_devs()
1204 pci_dev_put(pvt->dev_d0f1); in e752x_get_devs()
1212 static void e752x_init_sysbus_parity_mask(struct e752x_pvt *pvt) in e752x_init_sysbus_parity_mask() argument
1215 struct pci_dev *dev = pvt->dev_d0f1; in e752x_init_sysbus_parity_mask()
1233 static void e752x_init_error_reporting_regs(struct e752x_pvt *pvt) in e752x_init_error_reporting_regs() argument
1237 dev = pvt->dev_d0f1; in e752x_init_error_reporting_regs()
1239 if (pvt->dev_info->err_dev == PCI_DEVICE_ID_INTEL_3100_1_ERR) { in e752x_init_error_reporting_regs()
1247 e752x_init_sysbus_parity_mask(pvt); in e752x_init_error_reporting_regs()
1262 struct e752x_pvt *pvt; in e752x_probe1() local
1294 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, sizeof(*pvt)); in e752x_probe1()
1308 pvt = (struct e752x_pvt *)mci->pvt_info; in e752x_probe1()
1309 pvt->dev_info = &e752x_devs[dev_idx]; in e752x_probe1()
1310 pvt->mc_symmetric = ((ddrcsr & 0x10) != 0); in e752x_probe1()
1312 if (e752x_get_devs(pdev, dev_idx, pvt)) { in e752x_probe1()
1318 mci->ctl_name = pvt->dev_info->ctl_name; in e752x_probe1()
1330 pvt->map_type = ((stat8 & 0x0f) > ((stat8 >> 4) & 0x0f)); in e752x_probe1()
1333 e752x_init_mem_map_table(pdev, pvt); in e752x_probe1()
1343 pvt->tolm = ((u32) pci_data) << 4; in e752x_probe1()
1345 pvt->remapbase = ((u32) pci_data) << 14; in e752x_probe1()
1347 pvt->remaplimit = ((u32) pci_data) << 14; in e752x_probe1()
1350 pvt->tolm, pvt->remapbase, pvt->remaplimit); in e752x_probe1()
1360 e752x_init_error_reporting_regs(pvt); in e752x_probe1()
1378 pci_dev_put(pvt->dev_d0f0); in e752x_probe1()
1379 pci_dev_put(pvt->dev_d0f1); in e752x_probe1()
1400 struct e752x_pvt *pvt; in e752x_remove_one() local
1410 pvt = (struct e752x_pvt *)mci->pvt_info; in e752x_remove_one()
1411 pci_dev_put(pvt->dev_d0f0); in e752x_remove_one()
1412 pci_dev_put(pvt->dev_d0f1); in e752x_remove_one()