Lines Matching refs:amd64_pvt
17 static inline u32 get_umc_reg(struct amd64_pvt *pvt, u32 reg) in get_umc_reg()
102 static void f15h_select_dct(struct amd64_pvt *pvt, u8 dct) in f15h_select_dct()
126 static inline int amd64_read_dct_pci_cfg(struct amd64_pvt *pvt, u8 dct, in amd64_read_dct_pci_cfg()
187 static int __set_scrub_rate(struct amd64_pvt *pvt, u32 new_bw, u32 min_rate) in __set_scrub_rate()
232 struct amd64_pvt *pvt = mci->pvt_info; in set_scrub_rate()
251 struct amd64_pvt *pvt = mci->pvt_info; in get_scrub_rate()
283 static bool base_limit_match(struct amd64_pvt *pvt, u64 sys_addr, u8 nid) in base_limit_match()
308 struct amd64_pvt *pvt; in find_mc_by_sys_addr()
372 static void get_cs_base_and_mask(struct amd64_pvt *pvt, int csrow, u8 dct, in get_cs_base_and_mask()
446 struct amd64_pvt *pvt; in input_addr_to_csrow()
493 struct amd64_pvt *pvt = mci->pvt_info; in get_dram_hole_info()
551 struct amd64_pvt *pvt = mci->pvt_info; \
602 struct amd64_pvt *pvt = mci->pvt_info; in inject_section_show()
617 struct amd64_pvt *pvt = mci->pvt_info; in inject_section_store()
638 struct amd64_pvt *pvt = mci->pvt_info; in inject_word_show()
653 struct amd64_pvt *pvt = mci->pvt_info; in inject_word_store()
675 struct amd64_pvt *pvt = mci->pvt_info; in inject_ecc_vector_show()
689 struct amd64_pvt *pvt = mci->pvt_info; in inject_ecc_vector_store()
715 struct amd64_pvt *pvt = mci->pvt_info; in inject_read_store()
748 struct amd64_pvt *pvt = mci->pvt_info; in inject_write_store()
811 struct amd64_pvt *pvt = mci->pvt_info; in inj_is_visible()
857 struct amd64_pvt *pvt = mci->pvt_info; in sys_addr_to_dram_addr()
912 struct amd64_pvt *pvt; in dram_addr_to_input_addr()
999 static int gpu_get_node_map(struct amd64_pvt *pvt) in gpu_get_node_map()
1062 static unsigned long dct_determine_edac_cap(struct amd64_pvt *pvt) in dct_determine_edac_cap()
1077 static unsigned long umc_determine_edac_cap(struct amd64_pvt *pvt) in umc_determine_edac_cap()
1103 static void dct_debug_display_dimm_sizes(struct amd64_pvt *pvt, u8 ctrl) in dct_debug_display_dimm_sizes()
1159 static void debug_dump_dramcfg_low(struct amd64_pvt *pvt, u32 dclr, int chan) in debug_dump_dramcfg_low()
1200 static int umc_get_cs_mode(int dimm, u8 ctrl, struct amd64_pvt *pvt) in umc_get_cs_mode()
1268 static int umc_addr_mask_to_cs_size(struct amd64_pvt *pvt, u8 umc, in umc_addr_mask_to_cs_size()
1319 static void umc_debug_display_dimm_sizes(struct amd64_pvt *pvt, u8 ctrl) in umc_debug_display_dimm_sizes()
1340 static void umc_dump_misc_regs(struct amd64_pvt *pvt) in umc_dump_misc_regs()
1368 static void dct_dump_misc_regs(struct amd64_pvt *pvt) in dct_dump_misc_regs()
1408 static void dct_prep_chip_selects(struct amd64_pvt *pvt) in dct_prep_chip_selects()
1422 static void umc_prep_chip_selects(struct amd64_pvt *pvt) in umc_prep_chip_selects()
1432 static void umc_read_base_mask(struct amd64_pvt *pvt) in umc_read_base_mask()
1495 static void dct_read_base_mask(struct amd64_pvt *pvt) in dct_read_base_mask()
1538 static void umc_determine_memory_type(struct amd64_pvt *pvt) in umc_determine_memory_type()
1575 static void dct_determine_memory_type(struct amd64_pvt *pvt) in dct_determine_memory_type()
1637 static u64 get_error_address(struct amd64_pvt *pvt, struct mce *m) in get_error_address()
1718 static void read_dram_base_limit_regs(struct amd64_pvt *pvt, unsigned range) in read_dram_base_limit_regs()
1775 struct amd64_pvt *pvt = mci->pvt_info; in k8_map_sysaddr_to_csrow()
1840 static int k8_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, in k8_dbam_to_chip_select()
1944 static int f10_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, in f10_dbam_to_chip_select()
1960 static int f15_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, in f15_dbam_to_chip_select()
1969 static int f15_m60h_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, in f15_m60h_dbam_to_chip_select()
2002 static int f16_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, in f16_dbam_to_chip_select()
2014 static void read_dram_ctl_register(struct amd64_pvt *pvt) in read_dram_ctl_register()
2048 static u8 f15_m30h_determine_channel(struct amd64_pvt *pvt, u64 sys_addr, in f15_m30h_determine_channel()
2079 static u8 f1x_determine_channel(struct amd64_pvt *pvt, u64 sys_addr, in f1x_determine_channel()
2123 static u64 f1x_get_norm_dct_addr(struct amd64_pvt *pvt, u8 range, in f1x_get_norm_dct_addr()
2174 static int f10_process_possible_spare(struct amd64_pvt *pvt, u8 dct, int csrow) in f10_process_possible_spare()
2202 struct amd64_pvt *pvt; in f1x_lookup_addr_in_dct()
2248 static u64 f1x_swap_interleaved_region(struct amd64_pvt *pvt, u64 sys_addr) in f1x_swap_interleaved_region()
2278 static int f1x_match_to_this_node(struct amd64_pvt *pvt, unsigned range, in f1x_match_to_this_node()
2358 static int f15_m30h_match_to_this_node(struct amd64_pvt *pvt, unsigned range, in f15_m30h_match_to_this_node()
2480 static int f1x_translate_sysaddr_to_cs(struct amd64_pvt *pvt, in f1x_translate_sysaddr_to_cs()
2517 struct amd64_pvt *pvt = mci->pvt_info; in f1x_map_sysaddr_to_csrow()
2673 struct amd64_pvt *pvt = mci->pvt_info; in get_channel_from_ecc_syndrome()
2742 struct amd64_pvt *pvt; in decode_bus_error()
2798 struct amd64_pvt *pvt; in decode_umc_error()
2852 reserve_mc_sibling_devs(struct amd64_pvt *pvt, u16 pci_id1, u16 pci_id2) in reserve_mc_sibling_devs()
2881 static void determine_ecc_sym_sz(struct amd64_pvt *pvt) in determine_ecc_sym_sz()
2902 static void umc_read_mc_regs(struct amd64_pvt *pvt) in umc_read_mc_regs()
2935 static void dct_read_mc_regs(struct amd64_pvt *pvt) in dct_read_mc_regs()
3033 static u32 dct_get_csrow_nr_pages(struct amd64_pvt *pvt, u8 dct, int csrow_nr) in dct_get_csrow_nr_pages()
3051 static u32 umc_get_csrow_nr_pages(struct amd64_pvt *pvt, u8 dct, int csrow_nr_orig) in umc_get_csrow_nr_pages()
3070 struct amd64_pvt *pvt = mci->pvt_info; in umc_init_csrows()
3114 struct amd64_pvt *pvt = mci->pvt_info; in dct_init_csrows()
3339 static bool dct_ecc_enabled(struct amd64_pvt *pvt) in dct_ecc_enabled()
3363 static bool umc_ecc_enabled(struct amd64_pvt *pvt) in umc_ecc_enabled()
3398 umc_determine_edac_ctl_cap(struct mem_ctl_info *mci, struct amd64_pvt *pvt) in umc_determine_edac_ctl_cap()
3430 struct amd64_pvt *pvt = mci->pvt_info; in dct_setup_mci_misc_attrs()
3456 struct amd64_pvt *pvt = mci->pvt_info; in umc_setup_mci_misc_attrs()
3472 static int dct_hw_info_get(struct amd64_pvt *pvt) in dct_hw_info_get()
3487 static int umc_hw_info_get(struct amd64_pvt *pvt) in umc_hw_info_get()
3527 static int gpu_addr_mask_to_cs_size(struct amd64_pvt *pvt, u8 umc, in gpu_addr_mask_to_cs_size()
3535 static void gpu_debug_display_dimm_sizes(struct amd64_pvt *pvt, u8 ctrl) in gpu_debug_display_dimm_sizes()
3549 static void gpu_dump_misc_regs(struct amd64_pvt *pvt) in gpu_dump_misc_regs()
3566 static u32 gpu_get_csrow_nr_pages(struct amd64_pvt *pvt, u8 dct, int csrow_nr) in gpu_get_csrow_nr_pages()
3582 struct amd64_pvt *pvt = mci->pvt_info; in gpu_init_csrows()
3607 struct amd64_pvt *pvt = mci->pvt_info; in gpu_setup_mci_misc_attrs()
3622 static bool gpu_ecc_enabled(struct amd64_pvt *pvt) in gpu_ecc_enabled()
3627 static inline u32 gpu_get_umc_base(struct amd64_pvt *pvt, u8 umc, u8 channel) in gpu_get_umc_base()
3652 static void gpu_read_mc_regs(struct amd64_pvt *pvt) in gpu_read_mc_regs()
3674 static void gpu_read_base_mask(struct amd64_pvt *pvt) in gpu_read_base_mask()
3701 static void gpu_prep_chip_selects(struct amd64_pvt *pvt) in gpu_prep_chip_selects()
3711 static int gpu_hw_info_get(struct amd64_pvt *pvt) in gpu_hw_info_get()
3730 static void hw_info_put(struct amd64_pvt *pvt) in hw_info_put()
3763 static int per_family_init(struct amd64_pvt *pvt) in per_family_init()
3948 static unsigned int get_layer_size(struct amd64_pvt *pvt, u8 layer) in get_layer_size()
3960 static int init_one_instance(struct amd64_pvt *pvt) in init_one_instance()
3992 static bool instance_has_memory(struct amd64_pvt *pvt) in instance_has_memory()
4008 struct amd64_pvt *pvt = NULL; in probe_one_instance()
4019 pvt = kzalloc(sizeof(struct amd64_pvt), GFP_KERNEL); in probe_one_instance()
4090 struct amd64_pvt *pvt; in remove_one_instance()