Lines Matching refs:pvt

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