Lines Matching refs:pvt
353 struct i7300_pvt *pvt;
359 pvt = mci->pvt_info;
362 pci_read_config_dword(pvt->pci_dev_16_2_fsb_err_regs,
372 pci_write_config_dword(pvt->pci_dev_16_2_fsb_err_regs,
378 pci_read_config_dword(pvt->pci_dev_16_2_fsb_err_regs,
388 pci_write_config_dword(pvt->pci_dev_16_2_fsb_err_regs,
408 struct i7300_pvt *pvt;
418 pvt = mci->pvt_info;
421 pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
430 pci_read_config_word(pvt->pci_dev_16_1_fsb_addr_map,
435 pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
442 pci_write_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
445 snprintf(pvt->tmp_prt_buffer, PAGE_SIZE,
452 pvt->tmp_prt_buffer);
457 pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
466 pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
469 pci_read_config_word(pvt->pci_dev_16_1_fsb_addr_map,
474 pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
480 pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
488 pci_write_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
492 snprintf(pvt->tmp_prt_buffer, PAGE_SIZE,
500 pvt->tmp_prt_buffer);
521 struct i7300_pvt *pvt = mci->pvt_info;
529 pci_read_config_dword(pvt->pci_dev_16_2_fsb_err_regs,
531 pci_write_config_dword(pvt->pci_dev_16_2_fsb_err_regs,
534 pci_read_config_dword(pvt->pci_dev_16_2_fsb_err_regs,
536 pci_write_config_dword(pvt->pci_dev_16_2_fsb_err_regs,
540 pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
542 pci_write_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
545 pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
547 pci_write_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
558 struct i7300_pvt *pvt = mci->pvt_info;
562 pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
568 pci_write_config_dword(pvt->pci_dev_16_1_fsb_addr_map,
578 * @pvt: pointer to the private data struct used by i7300 driver
585 static int decode_mtr(struct i7300_pvt *pvt,
594 mtr = pvt->mtr[slot][branch];
652 if (IS_SINGLE_MODE(pvt->mc_settings_a)) {
666 IS_SCRBALGO_ENHANCED(pvt->mc_settings) ?
678 * @pvt: pointer to the private data struct used by i7300 driver
682 static void print_dimm_size(struct i7300_pvt *pvt)
691 p = pvt->tmp_prt_buffer;
701 edac_dbg(2, "%s\n", pvt->tmp_prt_buffer);
702 p = pvt->tmp_prt_buffer;
708 edac_dbg(2, "%s\n", pvt->tmp_prt_buffer);
709 p = pvt->tmp_prt_buffer;
718 dinfo = &pvt->dimm_info[slot][channel];
724 edac_dbg(2, "%s\n", pvt->tmp_prt_buffer);
725 p = pvt->tmp_prt_buffer;
733 edac_dbg(2, "%s\n", pvt->tmp_prt_buffer);
734 p = pvt->tmp_prt_buffer;
747 struct i7300_pvt *pvt;
754 pvt = mci->pvt_info;
758 if (IS_SINGLE_MODE(pvt->mc_settings_a)) {
770 pci_read_config_word(pvt->pci_dev_2x_0_fbd_branch[branch],
772 &pvt->ambpresent[channel]);
774 channel, pvt->ambpresent[channel]);
780 pci_read_config_word(pvt->pci_dev_2x_0_fbd_branch[branch],
782 &pvt->ambpresent[channel]);
784 channel, pvt->ambpresent[channel]);
791 pci_read_config_word(pvt->pci_dev_2x_0_fbd_branch[branch],
793 &pvt->mtr[slot][branch]);
799 dinfo = &pvt->dimm_info[slot][channel];
801 mtr = decode_mtr(pvt, slot, ch, branch,
840 struct i7300_pvt *pvt;
844 pvt = mci->pvt_info;
846 pci_read_config_dword(pvt->pci_dev_16_0_fsb_ctlr, AMBASE,
847 (u32 *) &pvt->ambase);
849 edac_dbg(2, "AMBASE= 0x%lx\n", (long unsigned int)pvt->ambase);
852 pci_read_config_word(pvt->pci_dev_16_1_fsb_addr_map, TOLM, &pvt->tolm);
853 pvt->tolm >>= 12;
855 pvt->tolm, pvt->tolm);
857 actual_tolm = (u32) ((1000l * pvt->tolm) >> (30 - 28));
859 actual_tolm/1000, actual_tolm % 1000, pvt->tolm << 28);
862 pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map, MC_SETTINGS,
863 &pvt->mc_settings);
864 pci_read_config_dword(pvt->pci_dev_16_1_fsb_addr_map, MC_SETTINGS_A,
865 &pvt->mc_settings_a);
867 if (IS_SINGLE_MODE(pvt->mc_settings_a))
871 IS_MIRRORED(pvt->mc_settings) ? "" : "non-");
874 IS_ECC_ENABLED(pvt->mc_settings) ? "enabled" : "disabled");
876 IS_RETRY_ENABLED(pvt->mc_settings) ? "enabled" : "disabled");
879 pci_read_config_word(pvt->pci_dev_16_1_fsb_addr_map, MIR0,
880 &pvt->mir[0]);
881 pci_read_config_word(pvt->pci_dev_16_1_fsb_addr_map, MIR1,
882 &pvt->mir[1]);
883 pci_read_config_word(pvt->pci_dev_16_1_fsb_addr_map, MIR2,
884 &pvt->mir[2]);
888 decode_mir(i, pvt->mir);
896 print_dimm_size(pvt);
911 struct i7300_pvt *pvt;
914 pvt = mci->pvt_info;
918 pci_dev_put(pvt->pci_dev_2x_0_fbd_branch[branch]);
919 pci_dev_put(pvt->pci_dev_16_2_fsb_err_regs);
920 pci_dev_put(pvt->pci_dev_16_1_fsb_addr_map);
936 struct i7300_pvt *pvt;
939 pvt = mci->pvt_info;
949 if (!pvt->pci_dev_16_1_fsb_addr_map)
950 pvt->pci_dev_16_1_fsb_addr_map =
954 if (!pvt->pci_dev_16_2_fsb_err_regs)
955 pvt->pci_dev_16_2_fsb_err_regs =
961 if (!pvt->pci_dev_16_1_fsb_addr_map ||
962 !pvt->pci_dev_16_2_fsb_err_regs) {
973 pci_name(pvt->pci_dev_16_0_fsb_ctlr),
974 pvt->pci_dev_16_0_fsb_ctlr->vendor,
975 pvt->pci_dev_16_0_fsb_ctlr->device);
977 pci_name(pvt->pci_dev_16_1_fsb_addr_map),
978 pvt->pci_dev_16_1_fsb_addr_map->vendor,
979 pvt->pci_dev_16_1_fsb_addr_map->device);
981 pci_name(pvt->pci_dev_16_2_fsb_err_regs),
982 pvt->pci_dev_16_2_fsb_err_regs->vendor,
983 pvt->pci_dev_16_2_fsb_err_regs->device);
985 pvt->pci_dev_2x_0_fbd_branch[0] = pci_get_device(PCI_VENDOR_ID_INTEL,
988 if (!pvt->pci_dev_2x_0_fbd_branch[0]) {
996 pvt->pci_dev_2x_0_fbd_branch[1] = pci_get_device(PCI_VENDOR_ID_INTEL,
999 if (!pvt->pci_dev_2x_0_fbd_branch[1]) {
1025 struct i7300_pvt *pvt;
1051 mci = edac_mc_alloc(0, ARRAY_SIZE(layers), layers, sizeof(*pvt));
1059 pvt = mci->pvt_info;
1060 pvt->pci_dev_16_0_fsb_ctlr = pdev; /* Record this device in our private */
1062 pvt->tmp_prt_buffer = kmalloc(PAGE_SIZE, GFP_KERNEL);
1063 if (!pvt->tmp_prt_buffer) {
1124 kfree(pvt->tmp_prt_buffer);