Home
last modified time | relevance | path

Searched refs:pvt (Results 1 - 25 of 63) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/hwmon/
H A Dbt1-pvt.c33 #include "bt1-pvt.h"
158 static inline void pvt_set_mode(struct pvt_hwmon *pvt, u32 mode) in pvt_set_mode() argument
164 old = pvt_update(pvt->regs + PVT_CTRL, PVT_CTRL_EN, 0); in pvt_set_mode()
165 pvt_update(pvt->regs + PVT_CTRL, PVT_CTRL_MODE_MASK | PVT_CTRL_EN, in pvt_set_mode()
176 static inline void pvt_set_trim(struct pvt_hwmon *pvt, u32 trim) in pvt_set_trim() argument
182 old = pvt_update(pvt->regs + PVT_CTRL, PVT_CTRL_EN, 0); in pvt_set_trim()
183 pvt_update(pvt->regs + PVT_CTRL, PVT_CTRL_TRIM_MASK | PVT_CTRL_EN, in pvt_set_trim()
187 static inline void pvt_set_tout(struct pvt_hwmon *pvt, u32 tout) in pvt_set_tout() argument
191 old = pvt_update(pvt->regs + PVT_CTRL, PVT_CTRL_EN, 0); in pvt_set_tout()
192 writel(tout, pvt in pvt_set_tout()
231 struct pvt_hwmon *pvt = data; pvt_soft_isr() local
314 pvt_read_data(struct pvt_hwmon *pvt, enum pvt_sensor_type type, long *val) pvt_read_data() argument
334 pvt_read_limit(struct pvt_hwmon *pvt, enum pvt_sensor_type type, bool is_low, long *val) pvt_read_limit() argument
355 pvt_write_limit(struct pvt_hwmon *pvt, enum pvt_sensor_type type, bool is_low, long val) pvt_write_limit() argument
395 pvt_read_alarm(struct pvt_hwmon *pvt, enum pvt_sensor_type type, bool is_low, long *val) pvt_read_alarm() argument
434 struct pvt_hwmon *pvt = data; pvt_hard_isr() local
476 pvt_read_data(struct pvt_hwmon *pvt, enum pvt_sensor_type type, long *val) pvt_read_data() argument
532 pvt_read_limit(struct pvt_hwmon *pvt, enum pvt_sensor_type type, bool is_low, long *val) pvt_read_limit() argument
538 pvt_write_limit(struct pvt_hwmon *pvt, enum pvt_sensor_type type, bool is_low, long val) pvt_write_limit() argument
544 pvt_read_alarm(struct pvt_hwmon *pvt, enum pvt_sensor_type type, bool is_low, long *val) pvt_read_alarm() argument
636 pvt_read_trim(struct pvt_hwmon *pvt, long *val) pvt_read_trim() argument
646 pvt_write_trim(struct pvt_hwmon *pvt, long val) pvt_write_trim() argument
667 pvt_read_timeout(struct pvt_hwmon *pvt, long *val) pvt_read_timeout() argument
683 pvt_write_timeout(struct pvt_hwmon *pvt, long val) pvt_write_timeout() argument
738 struct pvt_hwmon *pvt = dev_get_drvdata(dev); pvt_hwmon_read() local
822 struct pvt_hwmon *pvt = dev_get_drvdata(dev); pvt_hwmon_write() local
873 struct pvt_hwmon *pvt = data; pvt_clear_data() local
887 struct pvt_hwmon *pvt; pvt_create_data() local
915 pvt_request_regs(struct pvt_hwmon *pvt) pvt_request_regs() argument
937 struct pvt_hwmon *pvt = data; pvt_disable_clks() local
942 pvt_request_clks(struct pvt_hwmon *pvt) pvt_request_clks() argument
970 pvt_check_pwr(struct pvt_hwmon *pvt) pvt_check_pwr() argument
1005 pvt_init_iface(struct pvt_hwmon *pvt) pvt_init_iface() argument
1063 pvt_request_irq(struct pvt_hwmon *pvt) pvt_request_irq() argument
1089 pvt_create_hwmon(struct pvt_hwmon *pvt) pvt_create_hwmon() argument
1105 struct pvt_hwmon *pvt = data; pvt_disable_iface() local
1114 pvt_enable_iface(struct pvt_hwmon *pvt) pvt_enable_iface() argument
1140 pvt_enable_iface(struct pvt_hwmon *pvt) pvt_enable_iface() argument
1149 struct pvt_hwmon *pvt; pvt_probe() local
[all...]
H A Dmr75203.c144 struct pvt_device *pvt = dev_get_drvdata(dev); in pvt_read_temp() local
145 struct regmap *t_map = pvt->t_map; in pvt_read_temp()
171 *val = tmp - PVT_G_CONST - pvt->ip_freq; in pvt_read_temp()
181 struct pvt_device *pvt = dev_get_drvdata(dev); in pvt_read_in() local
182 struct regmap *v_map = pvt->v_map; in pvt_read_in()
187 if (channel >= pvt->v_num * pvt->c_num) in pvt_read_in()
190 vm_idx = pvt->vm_idx[channel / pvt->c_num]; in pvt_read_in()
191 ch_idx = channel % pvt in pvt_read_in()
266 pvt_init(struct pvt_device *pvt) pvt_init() argument
458 pvt_get_regmap(struct platform_device *pdev, char *reg_name, struct pvt_device *pvt) pvt_get_regmap() argument
492 struct pvt_device *pvt = data; pvt_clk_disable() local
497 pvt_clk_enable(struct device *dev, struct pvt_device *pvt) pvt_clk_enable() argument
510 struct pvt_device *pvt = data; pvt_reset_control_assert() local
515 pvt_reset_control_deassert(struct device *dev, struct pvt_device *pvt) pvt_reset_control_deassert() argument
533 struct pvt_device *pvt; mr75203_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/hwmon/
H A Dbt1-pvt.c34 #include "bt1-pvt.h"
134 static inline void pvt_set_mode(struct pvt_hwmon *pvt, u32 mode) in pvt_set_mode() argument
140 old = pvt_update(pvt->regs + PVT_CTRL, PVT_CTRL_EN, 0); in pvt_set_mode()
141 pvt_update(pvt->regs + PVT_CTRL, PVT_CTRL_MODE_MASK | PVT_CTRL_EN, in pvt_set_mode()
152 static inline void pvt_set_trim(struct pvt_hwmon *pvt, u32 trim) in pvt_set_trim() argument
158 old = pvt_update(pvt->regs + PVT_CTRL, PVT_CTRL_EN, 0); in pvt_set_trim()
159 pvt_update(pvt->regs + PVT_CTRL, PVT_CTRL_TRIM_MASK | PVT_CTRL_EN, in pvt_set_trim()
163 static inline void pvt_set_tout(struct pvt_hwmon *pvt, u32 tout) in pvt_set_tout() argument
167 old = pvt_update(pvt->regs + PVT_CTRL, PVT_CTRL_EN, 0); in pvt_set_tout()
168 writel(tout, pvt in pvt_set_tout()
207 struct pvt_hwmon *pvt = data; pvt_soft_isr() local
290 pvt_read_data(struct pvt_hwmon *pvt, enum pvt_sensor_type type, long *val) pvt_read_data() argument
310 pvt_read_limit(struct pvt_hwmon *pvt, enum pvt_sensor_type type, bool is_low, long *val) pvt_read_limit() argument
331 pvt_write_limit(struct pvt_hwmon *pvt, enum pvt_sensor_type type, bool is_low, long val) pvt_write_limit() argument
371 pvt_read_alarm(struct pvt_hwmon *pvt, enum pvt_sensor_type type, bool is_low, long *val) pvt_read_alarm() argument
410 struct pvt_hwmon *pvt = data; pvt_hard_isr() local
452 pvt_read_data(struct pvt_hwmon *pvt, enum pvt_sensor_type type, long *val) pvt_read_data() argument
508 pvt_read_limit(struct pvt_hwmon *pvt, enum pvt_sensor_type type, bool is_low, long *val) pvt_read_limit() argument
514 pvt_write_limit(struct pvt_hwmon *pvt, enum pvt_sensor_type type, bool is_low, long val) pvt_write_limit() argument
520 pvt_read_alarm(struct pvt_hwmon *pvt, enum pvt_sensor_type type, bool is_low, long *val) pvt_read_alarm() argument
612 pvt_read_trim(struct pvt_hwmon *pvt, long *val) pvt_read_trim() argument
622 pvt_write_trim(struct pvt_hwmon *pvt, long val) pvt_write_trim() argument
643 pvt_read_timeout(struct pvt_hwmon *pvt, long *val) pvt_read_timeout() argument
659 pvt_write_timeout(struct pvt_hwmon *pvt, long val) pvt_write_timeout() argument
714 struct pvt_hwmon *pvt = dev_get_drvdata(dev); pvt_hwmon_read() local
798 struct pvt_hwmon *pvt = dev_get_drvdata(dev); pvt_hwmon_write() local
849 struct pvt_hwmon *pvt = data; pvt_clear_data() local
863 struct pvt_hwmon *pvt; pvt_create_data() local
891 pvt_request_regs(struct pvt_hwmon *pvt) pvt_request_regs() argument
904 struct pvt_hwmon *pvt = data; pvt_disable_clks() local
909 pvt_request_clks(struct pvt_hwmon *pvt) pvt_request_clks() argument
937 pvt_check_pwr(struct pvt_hwmon *pvt) pvt_check_pwr() argument
972 pvt_init_iface(struct pvt_hwmon *pvt) pvt_init_iface() argument
1030 pvt_request_irq(struct pvt_hwmon *pvt) pvt_request_irq() argument
1056 pvt_create_hwmon(struct pvt_hwmon *pvt) pvt_create_hwmon() argument
1072 struct pvt_hwmon *pvt = data; pvt_disable_iface() local
1081 pvt_enable_iface(struct pvt_hwmon *pvt) pvt_enable_iface() argument
1107 pvt_enable_iface(struct pvt_hwmon *pvt) pvt_enable_iface() argument
1116 struct pvt_hwmon *pvt; pvt_probe() local
[all...]
H A Dmr75203.c188 struct pvt_device *pvt = file->private_data; in pvt_ts_coeff_j_read() local
192 len = scnprintf(buf, sizeof(buf), "%d\n", pvt->ts_coeff.j); in pvt_ts_coeff_j_read()
201 struct pvt_device *pvt = file->private_data; in pvt_ts_coeff_j_write() local
204 ret = kstrtos32_from_user(user_buf, count, 0, &pvt->ts_coeff.j); in pvt_ts_coeff_j_write()
221 struct pvt_device *pvt = (struct pvt_device *)data; in devm_pvt_ts_dbgfs_remove() local
223 debugfs_remove_recursive(pvt->dbgfs_dir); in devm_pvt_ts_dbgfs_remove()
224 pvt->dbgfs_dir = NULL; in devm_pvt_ts_dbgfs_remove()
227 static int pvt_ts_dbgfs_create(struct pvt_device *pvt, struct device *dev) in pvt_ts_dbgfs_create() argument
229 pvt->dbgfs_dir = debugfs_create_dir(dev_name(dev), NULL); in pvt_ts_dbgfs_create()
231 debugfs_create_u32("ts_coeff_h", 0644, pvt in pvt_ts_dbgfs_create()
261 pvt_calc_temp(struct pvt_device *pvt, u32 nbs) pvt_calc_temp() argument
279 struct pvt_device *pvt = dev_get_drvdata(dev); pvt_read_temp() local
313 struct pvt_device *pvt = dev_get_drvdata(dev); pvt_read_in() local
390 pvt_init(struct pvt_device *pvt) pvt_init() argument
582 pvt_get_regmap(struct platform_device *pdev, char *reg_name, struct pvt_device *pvt) pvt_get_regmap() argument
616 struct pvt_device *pvt = data; pvt_reset_control_assert() local
621 pvt_reset_control_deassert(struct device *dev, struct pvt_device *pvt) pvt_reset_control_deassert() argument
632 pvt_get_active_channel(struct device *dev, struct pvt_device *pvt, u32 vm_num, u32 ch_num, u8 *vm_idx) pvt_get_active_channel() argument
686 pvt_get_pre_scaler(struct device *dev, struct pvt_device *pvt) pvt_get_pre_scaler() argument
723 pvt_set_temp_coeff(struct device *dev, struct pvt_device *pvt) pvt_set_temp_coeff() argument
774 struct pvt_device *pvt; mr75203_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/edac/
H A Damd64_edac.c16 static inline u32 get_umc_reg(struct amd64_pvt *pvt, u32 reg) in get_umc_reg() argument
18 if (!pvt->flags.zn_regs_v2) in get_umc_reg()
102 static void f15h_select_dct(struct amd64_pvt *pvt, u8 dct) in f15h_select_dct() argument
106 amd64_read_pci_cfg(pvt->F1, DCT_CFG_SEL, &reg); in f15h_select_dct()
107 reg &= (pvt->model == 0x30) ? ~3 : ~1; in f15h_select_dct()
109 amd64_write_pci_cfg(pvt->F1, DCT_CFG_SEL, reg); 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() argument
129 switch (pvt->fam) { in amd64_read_dct_pci_cfg()
142 if (dct_ganging_enabled(pvt)) in amd64_read_dct_pci_cfg()
154 dct = (dct && pvt in amd64_read_dct_pci_cfg()
187 __set_scrub_rate(struct amd64_pvt *pvt, u32 new_bw, u32 min_rate) __set_scrub_rate() argument
232 struct amd64_pvt *pvt = mci->pvt_info; set_scrub_rate() local
251 struct amd64_pvt *pvt = mci->pvt_info; get_scrub_rate() local
283 base_limit_match(struct amd64_pvt *pvt, u64 sys_addr, u8 nid) base_limit_match() argument
308 struct amd64_pvt *pvt; find_mc_by_sys_addr() local
372 get_cs_base_and_mask(struct amd64_pvt *pvt, int csrow, u8 dct, u64 *base, u64 *mask) get_cs_base_and_mask() argument
446 struct amd64_pvt *pvt; input_addr_to_csrow() local
493 struct amd64_pvt *pvt = mci->pvt_info; get_dram_hole_info() local
602 struct amd64_pvt *pvt = mci->pvt_info; inject_section_show() local
617 struct amd64_pvt *pvt = mci->pvt_info; inject_section_store() local
638 struct amd64_pvt *pvt = mci->pvt_info; inject_word_show() local
653 struct amd64_pvt *pvt = mci->pvt_info; inject_word_store() local
675 struct amd64_pvt *pvt = mci->pvt_info; inject_ecc_vector_show() local
689 struct amd64_pvt *pvt = mci->pvt_info; inject_ecc_vector_store() local
715 struct amd64_pvt *pvt = mci->pvt_info; inject_read_store() local
748 struct amd64_pvt *pvt = mci->pvt_info; inject_write_store() local
811 struct amd64_pvt *pvt = mci->pvt_info; inj_is_visible() local
857 struct amd64_pvt *pvt = mci->pvt_info; sys_addr_to_dram_addr() local
912 struct amd64_pvt *pvt; dram_addr_to_input_addr() local
1327 dct_determine_edac_cap(struct amd64_pvt *pvt) dct_determine_edac_cap() argument
1342 umc_determine_edac_cap(struct amd64_pvt *pvt) umc_determine_edac_cap() argument
1368 dct_debug_display_dimm_sizes(struct amd64_pvt *pvt, u8 ctrl) dct_debug_display_dimm_sizes() argument
1424 debug_dump_dramcfg_low(struct amd64_pvt *pvt, u32 dclr, int chan) debug_dump_dramcfg_low() argument
1465 umc_get_cs_mode(int dimm, u8 ctrl, struct amd64_pvt *pvt) umc_get_cs_mode() argument
1533 umc_addr_mask_to_cs_size(struct amd64_pvt *pvt, u8 umc, unsigned int cs_mode, int csrow_nr) umc_addr_mask_to_cs_size() argument
1584 umc_debug_display_dimm_sizes(struct amd64_pvt *pvt, u8 ctrl) umc_debug_display_dimm_sizes() argument
1605 umc_dump_misc_regs(struct amd64_pvt *pvt) umc_dump_misc_regs() argument
1648 dct_dump_misc_regs(struct amd64_pvt *pvt) dct_dump_misc_regs() argument
1688 dct_prep_chip_selects(struct amd64_pvt *pvt) dct_prep_chip_selects() argument
1702 umc_prep_chip_selects(struct amd64_pvt *pvt) umc_prep_chip_selects() argument
1712 umc_read_base_mask(struct amd64_pvt *pvt) umc_read_base_mask() argument
1766 dct_read_base_mask(struct amd64_pvt *pvt) dct_read_base_mask() argument
1809 umc_determine_memory_type(struct amd64_pvt *pvt) umc_determine_memory_type() argument
1846 dct_determine_memory_type(struct amd64_pvt *pvt) dct_determine_memory_type() argument
1908 get_error_address(struct amd64_pvt *pvt, struct mce *m) get_error_address() argument
1989 read_dram_base_limit_regs(struct amd64_pvt *pvt, unsigned range) read_dram_base_limit_regs() argument
2046 struct amd64_pvt *pvt = mci->pvt_info; k8_map_sysaddr_to_csrow() local
2111 k8_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, unsigned cs_mode, int cs_mask_nr) k8_dbam_to_chip_select() argument
2215 f10_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, unsigned cs_mode, int cs_mask_nr) f10_dbam_to_chip_select() argument
2231 f15_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, unsigned cs_mode, int cs_mask_nr) f15_dbam_to_chip_select() argument
2240 f15_m60h_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, unsigned cs_mode, int cs_mask_nr) f15_m60h_dbam_to_chip_select() argument
2273 f16_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, unsigned cs_mode, int cs_mask_nr) f16_dbam_to_chip_select() argument
2285 read_dram_ctl_register(struct amd64_pvt *pvt) read_dram_ctl_register() argument
2319 f15_m30h_determine_channel(struct amd64_pvt *pvt, u64 sys_addr, u8 intlv_en, int num_dcts_intlv, u32 dct_sel) f15_m30h_determine_channel() argument
2350 f1x_determine_channel(struct amd64_pvt *pvt, u64 sys_addr, bool hi_range_sel, u8 intlv_en) f1x_determine_channel() argument
2394 f1x_get_norm_dct_addr(struct amd64_pvt *pvt, u8 range, u64 sys_addr, bool hi_rng, u32 dct_sel_base_addr) f1x_get_norm_dct_addr() argument
2445 f10_process_possible_spare(struct amd64_pvt *pvt, u8 dct, int csrow) f10_process_possible_spare() argument
2473 struct amd64_pvt *pvt; f1x_lookup_addr_in_dct() local
2519 f1x_swap_interleaved_region(struct amd64_pvt *pvt, u64 sys_addr) f1x_swap_interleaved_region() argument
2549 f1x_match_to_this_node(struct amd64_pvt *pvt, unsigned range, u64 sys_addr, int *chan_sel) f1x_match_to_this_node() argument
2629 f15_m30h_match_to_this_node(struct amd64_pvt *pvt, unsigned range, u64 sys_addr, int *chan_sel) f15_m30h_match_to_this_node() argument
2751 f1x_translate_sysaddr_to_cs(struct amd64_pvt *pvt, u64 sys_addr, int *chan_sel) f1x_translate_sysaddr_to_cs() argument
2788 struct amd64_pvt *pvt = mci->pvt_info; f1x_map_sysaddr_to_csrow() local
2944 struct amd64_pvt *pvt = mci->pvt_info; get_channel_from_ecc_syndrome() local
3013 struct amd64_pvt *pvt; decode_bus_error() local
3068 struct amd64_pvt *pvt; decode_umc_error() local
3117 reserve_mc_sibling_devs(struct amd64_pvt *pvt, u16 pci_id1, u16 pci_id2) reserve_mc_sibling_devs() argument
3146 determine_ecc_sym_sz(struct amd64_pvt *pvt) determine_ecc_sym_sz() argument
3167 umc_read_mc_regs(struct amd64_pvt *pvt) umc_read_mc_regs() argument
3191 dct_read_mc_regs(struct amd64_pvt *pvt) dct_read_mc_regs() argument
3289 dct_get_csrow_nr_pages(struct amd64_pvt *pvt, u8 dct, int csrow_nr) dct_get_csrow_nr_pages() argument
3307 umc_get_csrow_nr_pages(struct amd64_pvt *pvt, u8 dct, int csrow_nr_orig) umc_get_csrow_nr_pages() argument
3326 struct amd64_pvt *pvt = mci->pvt_info; umc_init_csrows() local
3370 struct amd64_pvt *pvt = mci->pvt_info; dct_init_csrows() local
3595 dct_ecc_enabled(struct amd64_pvt *pvt) dct_ecc_enabled() argument
3619 umc_ecc_enabled(struct amd64_pvt *pvt) umc_ecc_enabled() argument
3654 umc_determine_edac_ctl_cap(struct mem_ctl_info *mci, struct amd64_pvt *pvt) umc_determine_edac_ctl_cap() argument
3686 struct amd64_pvt *pvt = mci->pvt_info; dct_setup_mci_misc_attrs() local
3712 struct amd64_pvt *pvt = mci->pvt_info; umc_setup_mci_misc_attrs() local
3728 dct_hw_info_get(struct amd64_pvt *pvt) dct_hw_info_get() argument
3743 umc_hw_info_get(struct amd64_pvt *pvt) umc_hw_info_get() argument
3783 gpu_addr_mask_to_cs_size(struct amd64_pvt *pvt, u8 umc, unsigned int cs_mode, int csrow_nr) gpu_addr_mask_to_cs_size() argument
3791 gpu_debug_display_dimm_sizes(struct amd64_pvt *pvt, u8 ctrl) gpu_debug_display_dimm_sizes() argument
3805 gpu_dump_misc_regs(struct amd64_pvt *pvt) gpu_dump_misc_regs() argument
3822 gpu_get_csrow_nr_pages(struct amd64_pvt *pvt, u8 dct, int csrow_nr) gpu_get_csrow_nr_pages() argument
3838 struct amd64_pvt *pvt = mci->pvt_info; gpu_init_csrows() local
3863 struct amd64_pvt *pvt = mci->pvt_info; gpu_setup_mci_misc_attrs() local
3878 gpu_ecc_enabled(struct amd64_pvt *pvt) gpu_ecc_enabled() argument
3905 gpu_read_mc_regs(struct amd64_pvt *pvt) gpu_read_mc_regs() argument
3922 gpu_read_base_mask(struct amd64_pvt *pvt) gpu_read_base_mask() argument
3949 gpu_prep_chip_selects(struct amd64_pvt *pvt) gpu_prep_chip_selects() argument
3959 gpu_hw_info_get(struct amd64_pvt *pvt) gpu_hw_info_get() argument
3978 hw_info_put(struct amd64_pvt *pvt) hw_info_put() argument
4011 per_family_init(struct amd64_pvt *pvt) per_family_init() argument
4183 init_one_instance(struct amd64_pvt *pvt) init_one_instance() argument
4221 instance_has_memory(struct amd64_pvt *pvt) instance_has_memory() argument
4237 struct amd64_pvt *pvt = NULL; probe_one_instance() local
4319 struct amd64_pvt *pvt; remove_one_instance() local
[all...]
H A Di5400_edac.c439 struct i5400_pvt *pvt; in i5400_get_error_info() local
442 pvt = mci->pvt_info; in i5400_get_error_info()
445 pci_read_config_dword(pvt->branchmap_werrors, FERR_FAT_FBD, &value); in i5400_get_error_info()
458 pci_read_config_dword(pvt->branchmap_werrors, in i5400_get_error_info()
460 pci_read_config_word(pvt->branchmap_werrors, in i5400_get_error_info()
462 pci_read_config_dword(pvt->branchmap_werrors, in i5400_get_error_info()
466 pci_write_config_dword(pvt->branchmap_werrors, in i5400_get_error_info()
476 pci_read_config_dword(pvt->branchmap_werrors, FERR_NF_FBD, &value); in i5400_get_error_info()
484 pci_read_config_dword(pvt->branchmap_werrors, in i5400_get_error_info()
486 pci_read_config_word(pvt in i5400_get_error_info()
701 struct i5400_pvt *pvt; i5400_put_devices() local
720 struct i5400_pvt *pvt; i5400_get_devices() local
838 determine_amb_present_reg(struct i5400_pvt *pvt, int channel) determine_amb_present_reg() argument
862 determine_mtr(struct i5400_pvt *pvt, int dimm, int channel) determine_mtr() argument
919 handle_channel(struct i5400_pvt *pvt, int dimm, int channel, struct i5400_dimm_info *dinfo) handle_channel() argument
957 calculate_dimm_size(struct i5400_pvt *pvt) calculate_dimm_size() argument
1054 struct i5400_pvt *pvt; i5400_get_mc_regs() local
1167 struct i5400_pvt *pvt; i5400_init_dimms() local
1230 struct i5400_pvt *pvt; i5400_enable_error_reporting() local
1256 struct i5400_pvt *pvt; i5400_probe1() local
[all...]
H A Di7300_edac.c353 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 in i7300_process_fbd_error()
521 struct i7300_pvt *pvt = mci->pvt_info; i7300_clear_error() local
558 struct i7300_pvt *pvt = mci->pvt_info; i7300_enable_error_reporting() local
585 decode_mtr(struct i7300_pvt *pvt, int slot, int ch, int branch, struct i7300_dimm_info *dinfo, struct dimm_info *dimm) decode_mtr() argument
682 print_dimm_size(struct i7300_pvt *pvt) print_dimm_size() argument
747 struct i7300_pvt *pvt; i7300_init_csrows() local
840 struct i7300_pvt *pvt; i7300_get_mc_regs() local
911 struct i7300_pvt *pvt; i7300_put_devices() local
936 struct i7300_pvt *pvt; i7300_get_devices() local
1025 struct i7300_pvt *pvt; i7300_init_one() local
[all...]
H A Di7core_edac.c396 #define CH_ACTIVE(pvt, ch) ((pvt)->info.mc_control & (1 << (8 + ch)))
397 #define ECCx8(pvt) ((pvt)->info.mc_control & (1 << 1))
400 #define ECC_ENABLED(pvt) ((pvt)->info.mc_status & (1 << 4))
401 #define CH_DISABLED(pvt, ch) ((pvt)->info.mc_status & (1 << ch))
489 struct i7core_pvt *pvt = mci->pvt_info; in get_dimm_config() local
497 pdev = pvt in get_dimm_config()
662 struct i7core_pvt *pvt = mci->pvt_info; disable_inject() local
687 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_section_store() local
707 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_section_show() local
724 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_type_store() local
744 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_type_show() local
764 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_eccmask_store() local
784 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_eccmask_show() local
915 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_enable_store() local
1019 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_enable_show() local
1159 struct i7core_pvt *pvt = mci->pvt_info; i7core_create_sysfs_devices() local
1214 struct i7core_pvt *pvt = mci->pvt_info; i7core_delete_sysfs_devices() local
1455 struct i7core_pvt *pvt = mci->pvt_info; mci_bind_devs() local
1538 struct i7core_pvt *pvt = mci->pvt_info; i7core_rdimm_update_ce_count() local
1584 struct i7core_pvt *pvt = mci->pvt_info; i7core_rdimm_check_mc_ecc_err() local
1629 struct i7core_pvt *pvt = mci->pvt_info; i7core_udimm_check_mc_ecc_err() local
1697 struct i7core_pvt *pvt = mci->pvt_info; i7core_mce_output_error() local
1793 struct i7core_pvt *pvt = mci->pvt_info; i7core_check_error() local
1959 struct i7core_pvt *pvt = mci->pvt_info; set_sdram_scrub_rate() local
2021 struct i7core_pvt *pvt = mci->pvt_info; get_sdram_scrub_rate() local
2050 struct i7core_pvt *pvt = mci->pvt_info; enable_sdram_scrub_setting() local
2065 struct i7core_pvt *pvt = mci->pvt_info; disable_sdram_scrub_setting() local
2075 i7core_pci_ctl_create(struct i7core_pvt *pvt) i7core_pci_ctl_create() argument
2085 i7core_pci_ctl_release(struct i7core_pvt *pvt) i7core_pci_ctl_release() argument
2099 struct i7core_pvt *pvt; i7core_unregister_mci() local
2132 struct i7core_pvt *pvt; i7core_register_mci() local
[all...]
H A Dsb_edac.c318 u64 (*get_tolm)(struct sbridge_pvt *pvt);
319 u64 (*get_tohm)(struct sbridge_pvt *pvt);
328 u8 (*get_node_id)(struct sbridge_pvt *pvt);
330 enum mem_type (*get_memory_type)(struct sbridge_pvt *pvt);
331 enum dev_type (*get_width)(struct sbridge_pvt *pvt, u32 mtr);
800 static u64 sbridge_get_tolm(struct sbridge_pvt *pvt) in sbridge_get_tolm() argument
805 pci_read_config_dword(pvt->pci_sad1, TOLM, &reg); in sbridge_get_tolm()
809 static u64 sbridge_get_tohm(struct sbridge_pvt *pvt) in sbridge_get_tohm() argument
813 pci_read_config_dword(pvt->pci_sad1, TOHM, &reg); in sbridge_get_tohm()
817 static u64 ibridge_get_tolm(struct sbridge_pvt *pvt) in ibridge_get_tolm() argument
826 ibridge_get_tohm(struct sbridge_pvt *pvt) ibridge_get_tohm() argument
883 get_memory_type(struct sbridge_pvt *pvt) get_memory_type() argument
902 haswell_get_memory_type(struct sbridge_pvt *pvt) haswell_get_memory_type() argument
934 knl_get_width(struct sbridge_pvt *pvt, u32 mtr) knl_get_width() argument
940 sbridge_get_width(struct sbridge_pvt *pvt, u32 mtr) sbridge_get_width() argument
965 ibridge_get_width(struct sbridge_pvt *pvt, u32 mtr) ibridge_get_width() argument
974 broadwell_get_width(struct sbridge_pvt *pvt, u32 mtr) broadwell_get_width() argument
980 knl_get_memory_type(struct sbridge_pvt *pvt) knl_get_memory_type() argument
986 get_node_id(struct sbridge_pvt *pvt) get_node_id() argument
993 haswell_get_node_id(struct sbridge_pvt *pvt) haswell_get_node_id() argument
1001 knl_get_node_id(struct sbridge_pvt *pvt) knl_get_node_id() argument
1043 haswell_get_tolm(struct sbridge_pvt *pvt) haswell_get_tolm() argument
1051 haswell_get_tohm(struct sbridge_pvt *pvt) haswell_get_tohm() argument
1064 knl_get_tolm(struct sbridge_pvt *pvt) knl_get_tolm() argument
1072 knl_get_tohm(struct sbridge_pvt *pvt) knl_get_tohm() argument
1152 knl_get_tad(const struct sbridge_pvt *pvt, const int entry, const int mc, u64 *offset, u64 *limit, int *ways) knl_get_tad() argument
1346 knl_get_dimm_capacity(struct sbridge_pvt *pvt, u64 *mc_sizes) knl_get_dimm_capacity() argument
1571 struct sbridge_pvt *pvt = mci->pvt_info; get_source_id() local
1590 struct sbridge_pvt *pvt = mci->pvt_info; __populate_dimms() local
1689 struct sbridge_pvt *pvt = mci->pvt_info; get_dimm_config() local
1767 struct sbridge_pvt *pvt = mci->pvt_info; get_memory_layout() local
1982 struct sbridge_pvt *pvt; sb_decode_ddr4() local
2039 struct sbridge_pvt *pvt = mci->pvt_info; get_memory_error_data() local
2375 struct sbridge_pvt *pvt; get_memory_error_data_from_mce() local
2618 struct sbridge_pvt *pvt = mci->pvt_info; sbridge_mci_bind_devs() local
2692 struct sbridge_pvt *pvt = mci->pvt_info; ibridge_mci_bind_devs() local
2778 struct sbridge_pvt *pvt = mci->pvt_info; haswell_mci_bind_devs() local
2863 struct sbridge_pvt *pvt = mci->pvt_info; broadwell_mci_bind_devs() local
2944 struct sbridge_pvt *pvt = mci->pvt_info; knl_mci_bind_devs() local
3080 struct sbridge_pvt *pvt = mci->pvt_info; sbridge_mce_output_error() local
3351 struct sbridge_pvt *pvt; sbridge_register_mci() local
[all...]
H A Ddmc520_edac.c178 static u32 dmc520_read_reg(struct dmc520_edac *pvt, u32 offset) in dmc520_read_reg() argument
180 return readl(pvt->reg_base + offset); in dmc520_read_reg()
183 static void dmc520_write_reg(struct dmc520_edac *pvt, u32 val, u32 offset) in dmc520_write_reg() argument
185 writel(val, pvt->reg_base + offset); in dmc520_write_reg()
200 static u32 dmc520_get_dram_ecc_error_count(struct dmc520_edac *pvt, in dmc520_get_dram_ecc_error_count() argument
212 err_low = dmc520_read_reg(pvt, reg_offset_low); in dmc520_get_dram_ecc_error_count()
213 err_high = dmc520_read_reg(pvt, reg_offset_high); in dmc520_get_dram_ecc_error_count()
215 dmc520_write_reg(pvt, 0, reg_offset_low); in dmc520_get_dram_ecc_error_count()
216 dmc520_write_reg(pvt, 0, reg_offset_high); in dmc520_get_dram_ecc_error_count()
224 static void dmc520_get_dram_ecc_error_info(struct dmc520_edac *pvt, in dmc520_get_dram_ecc_error_info() argument
260 dmc520_get_scrub_type(struct dmc520_edac *pvt) dmc520_get_scrub_type() argument
276 dmc520_get_memory_width(struct dmc520_edac *pvt) dmc520_get_memory_width() argument
292 dmc520_get_mtype(struct dmc520_edac *pvt) dmc520_get_mtype() argument
314 dmc520_get_dtype(struct dmc520_edac *pvt) dmc520_get_dtype() argument
350 dmc520_get_rank_size(struct dmc520_edac *pvt) dmc520_get_rank_size() argument
368 struct dmc520_edac *pvt = mci->pvt_info; dmc520_handle_dram_ecc_errors() local
395 struct dmc520_edac *pvt = mci->pvt_info; dmc520_edac_dram_ecc_isr() local
410 struct dmc520_edac *pvt = mci->pvt_info; dmc520_edac_dram_all_isr() local
430 struct dmc520_edac *pvt = mci->pvt_info; dmc520_isr() local
445 struct dmc520_edac *pvt = mci->pvt_info; dmc520_init_csrow() local
479 struct dmc520_edac *pvt = NULL; dmc520_edac_probe() local
609 struct dmc520_edac *pvt; dmc520_edac_remove() local
[all...]
H A Damd64_edac.h135 #define dram_rw(pvt, i) ((u8)(pvt->ranges[i].base.lo & 0x3))
136 #define dram_intlv_sel(pvt, i) ((u8)((pvt->ranges[i].lim.lo >> 8) & 0x7))
137 #define dram_dst_node(pvt, i) ((u8)(pvt->ranges[i].lim.lo & 0x7))
140 #define dhar_mem_hoist_valid(pvt) ((pvt)->dhar & BIT(1))
141 #define dhar_base(pvt) ((pvt)
414 get_dram_base(struct amd64_pvt *pvt, u8 i) get_dram_base() argument
424 get_dram_limit(struct amd64_pvt *pvt, u8 i) get_dram_limit() argument
439 dct_sel_interleave_addr(struct amd64_pvt *pvt) dct_sel_interleave_addr() argument
501 dram_intlv_en(struct amd64_pvt *pvt, unsigned int i) dram_intlv_en() argument
511 dhar_valid(struct amd64_pvt *pvt) dhar_valid() argument
521 dct_sel_baseaddr(struct amd64_pvt *pvt) dct_sel_baseaddr() argument
[all...]
H A Di5000_edac.c388 struct i5000_pvt *pvt; in i5000_get_error_info() local
391 pvt = mci->pvt_info; in i5000_get_error_info()
394 pci_read_config_dword(pvt->branchmap_werrors, FERR_FAT_FBD, &value); in i5000_get_error_info()
406 pci_read_config_dword(pvt->branchmap_werrors, in i5000_get_error_info()
408 pci_read_config_word(pvt->branchmap_werrors, in i5000_get_error_info()
410 pci_read_config_dword(pvt->branchmap_werrors, in i5000_get_error_info()
414 pci_write_config_dword(pvt->branchmap_werrors, in i5000_get_error_info()
424 pci_read_config_dword(pvt->branchmap_werrors, FERR_NF_FBD, &value); in i5000_get_error_info()
432 pci_read_config_dword(pvt->branchmap_werrors, in i5000_get_error_info()
434 pci_read_config_word(pvt in i5000_get_error_info()
782 struct i5000_pvt *pvt; i5000_get_devices() local
901 struct i5000_pvt *pvt; i5000_put_devices() local
927 determine_amb_present_reg(struct i5000_pvt *pvt, int channel) determine_amb_present_reg() argument
951 determine_mtr(struct i5000_pvt *pvt, int slot, int channel) determine_mtr() argument
992 handle_channel(struct i5000_pvt *pvt, int slot, int channel, struct i5000_dimm_info *dinfo) handle_channel() argument
1034 calculate_dimm_size(struct i5000_pvt *pvt) calculate_dimm_size() argument
1133 struct i5000_pvt *pvt; i5000_get_mc_regs() local
1249 struct i5000_pvt *pvt; i5000_init_csrows() local
1309 struct i5000_pvt *pvt; i5000_enable_error_reporting() local
1358 struct i5000_pvt *pvt; i5000_probe1() local
[all...]
H A De752x_edac.c308 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 in do_process_ce()
393 struct e752x_pvt *pvt = (struct e752x_pvt *)mci->pvt_info; do_process_ue() local
465 struct e752x_pvt *pvt = (struct e752x_pvt *)mci->pvt_info; do_process_ded_retry() local
842 struct e752x_pvt *pvt; e752x_get_error_info() local
991 struct e752x_pvt *pvt = (struct e752x_pvt *) mci->pvt_info; set_sdram_scrub_rate() local
1020 struct e752x_pvt *pvt = (struct e752x_pvt *) mci->pvt_info; get_sdram_scrub_rate() local
1057 struct e752x_pvt *pvt = mci->pvt_info; remap_csrow_index() local
1138 e752x_init_mem_map_table(struct pci_dev *pdev, struct e752x_pvt *pvt) e752x_init_mem_map_table() argument
1174 e752x_get_devs(struct pci_dev *pdev, int dev_idx, struct e752x_pvt *pvt) e752x_get_devs() argument
1211 e752x_init_sysbus_parity_mask(struct e752x_pvt *pvt) e752x_init_sysbus_parity_mask() argument
1232 e752x_init_error_reporting_regs(struct e752x_pvt *pvt) e752x_init_error_reporting_regs() argument
1261 struct e752x_pvt *pvt; e752x_probe1() local
1399 struct e752x_pvt *pvt; e752x_remove_one() local
[all...]
H A De7xxx_edac.c186 struct e7xxx_pvt *pvt = (struct e7xxx_pvt *)mci->pvt_info; in ctl_page_to_phys() local
190 if ((page < pvt->tolm) || in ctl_page_to_phys()
191 ((page >= 0x100000) && (page < pvt->remapbase))) in ctl_page_to_phys()
194 remap = (page - pvt->tolm) + pvt->remapbase; in ctl_page_to_phys()
196 if (remap < pvt->remaplimit) in ctl_page_to_phys()
200 return pvt->tolm - 1; in ctl_page_to_phys()
259 struct e7xxx_pvt *pvt; in e7xxx_get_error_info() local
261 pvt = (struct e7xxx_pvt *)mci->pvt_info; in e7xxx_get_error_info()
262 pci_read_config_byte(pvt in e7xxx_get_error_info()
425 struct e7xxx_pvt *pvt = NULL; e7xxx_probe1() local
540 struct e7xxx_pvt *pvt; e7xxx_remove_one() local
[all...]
/kernel/linux/linux-5.10/drivers/edac/
H A Damd64_edac.c89 static void f15h_select_dct(struct amd64_pvt *pvt, u8 dct) in f15h_select_dct() argument
93 amd64_read_pci_cfg(pvt->F1, DCT_CFG_SEL, &reg); in f15h_select_dct()
94 reg &= (pvt->model == 0x30) ? ~3 : ~1; in f15h_select_dct()
96 amd64_write_pci_cfg(pvt->F1, DCT_CFG_SEL, reg); in f15h_select_dct()
113 static inline int amd64_read_dct_pci_cfg(struct amd64_pvt *pvt, u8 dct, in amd64_read_dct_pci_cfg() argument
116 switch (pvt->fam) { in amd64_read_dct_pci_cfg()
129 if (dct_ganging_enabled(pvt)) in amd64_read_dct_pci_cfg()
141 dct = (dct && pvt->model == 0x30) ? 3 : dct; in amd64_read_dct_pci_cfg()
142 f15h_select_dct(pvt, dct); in amd64_read_dct_pci_cfg()
153 return amd64_read_pci_cfg(pvt in amd64_read_dct_pci_cfg()
170 __f17h_set_scrubval(struct amd64_pvt *pvt, u32 scrubval) __f17h_set_scrubval() argument
189 __set_scrub_rate(struct amd64_pvt *pvt, u32 new_bw, u32 min_rate) __set_scrub_rate() argument
236 struct amd64_pvt *pvt = mci->pvt_info; set_scrub_rate() local
255 struct amd64_pvt *pvt = mci->pvt_info; get_scrub_rate() local
296 base_limit_match(struct amd64_pvt *pvt, u64 sys_addr, u8 nid) base_limit_match() argument
321 struct amd64_pvt *pvt; find_mc_by_sys_addr() local
385 get_cs_base_and_mask(struct amd64_pvt *pvt, int csrow, u8 dct, u64 *base, u64 *mask) get_cs_base_and_mask() argument
459 struct amd64_pvt *pvt; input_addr_to_csrow() local
506 struct amd64_pvt *pvt = mci->pvt_info; amd64_get_dram_hole_info() local
590 struct amd64_pvt *pvt = mci->pvt_info; sys_addr_to_dram_addr() local
646 struct amd64_pvt *pvt; dram_addr_to_input_addr() local
718 determine_edac_cap(struct amd64_pvt *pvt) determine_edac_cap() argument
753 debug_dump_dramcfg_low(struct amd64_pvt *pvt, u32 dclr, int chan) debug_dump_dramcfg_low() argument
794 f17_get_cs_mode(int dimm, u8 ctrl, struct amd64_pvt *pvt) f17_get_cs_mode() argument
826 debug_display_dimm_sizes_df(struct amd64_pvt *pvt, u8 ctrl) debug_display_dimm_sizes_df() argument
847 __dump_misc_regs_df(struct amd64_pvt *pvt) __dump_misc_regs_df() argument
892 __dump_misc_regs(struct amd64_pvt *pvt) __dump_misc_regs() argument
926 dump_misc_regs(struct amd64_pvt *pvt) dump_misc_regs() argument
941 prep_chip_selects(struct amd64_pvt *pvt) prep_chip_selects() argument
963 read_umc_base_mask(struct amd64_pvt *pvt) read_umc_base_mask() argument
1017 read_dct_base_mask(struct amd64_pvt *pvt) read_dct_base_mask() argument
1065 determine_memory_type(struct amd64_pvt *pvt) determine_memory_type() argument
1135 k8_early_channel_count(struct amd64_pvt *pvt) k8_early_channel_count() argument
1153 get_error_address(struct amd64_pvt *pvt, struct mce *m) get_error_address() argument
1234 read_dram_base_limit_regs(struct amd64_pvt *pvt, unsigned range) read_dram_base_limit_regs() argument
1291 struct amd64_pvt *pvt = mci->pvt_info; k8_map_sysaddr_to_csrow() local
1356 k8_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, unsigned cs_mode, int cs_mask_nr) k8_dbam_to_chip_select() argument
1411 f1x_early_channel_count(struct amd64_pvt *pvt) f1x_early_channel_count() argument
1453 f17_early_channel_count(struct amd64_pvt *pvt) f17_early_channel_count() argument
1523 f10_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, unsigned cs_mode, int cs_mask_nr) f10_dbam_to_chip_select() argument
1539 f15_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, unsigned cs_mode, int cs_mask_nr) f15_dbam_to_chip_select() argument
1548 f15_m60h_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, unsigned cs_mode, int cs_mask_nr) f15_m60h_dbam_to_chip_select() argument
1581 f16_dbam_to_chip_select(struct amd64_pvt *pvt, u8 dct, unsigned cs_mode, int cs_mask_nr) f16_dbam_to_chip_select() argument
1593 f17_addr_mask_to_cs_size(struct amd64_pvt *pvt, u8 umc, unsigned int cs_mode, int csrow_nr) f17_addr_mask_to_cs_size() argument
1654 read_dram_ctl_register(struct amd64_pvt *pvt) read_dram_ctl_register() argument
1688 f15_m30h_determine_channel(struct amd64_pvt *pvt, u64 sys_addr, u8 intlv_en, int num_dcts_intlv, u32 dct_sel) f15_m30h_determine_channel() argument
1719 f1x_determine_channel(struct amd64_pvt *pvt, u64 sys_addr, bool hi_range_sel, u8 intlv_en) f1x_determine_channel() argument
1763 f1x_get_norm_dct_addr(struct amd64_pvt *pvt, u8 range, u64 sys_addr, bool hi_rng, u32 dct_sel_base_addr) f1x_get_norm_dct_addr() argument
1814 f10_process_possible_spare(struct amd64_pvt *pvt, u8 dct, int csrow) f10_process_possible_spare() argument
1842 struct amd64_pvt *pvt; f1x_lookup_addr_in_dct() local
1888 f1x_swap_interleaved_region(struct amd64_pvt *pvt, u64 sys_addr) f1x_swap_interleaved_region() argument
1918 f1x_match_to_this_node(struct amd64_pvt *pvt, unsigned range, u64 sys_addr, int *chan_sel) f1x_match_to_this_node() argument
1998 f15_m30h_match_to_this_node(struct amd64_pvt *pvt, unsigned range, u64 sys_addr, int *chan_sel) f15_m30h_match_to_this_node() argument
2120 f1x_translate_sysaddr_to_cs(struct amd64_pvt *pvt, u64 sys_addr, int *chan_sel) f1x_translate_sysaddr_to_cs() argument
2157 struct amd64_pvt *pvt = mci->pvt_info; f1x_map_sysaddr_to_csrow() local
2180 debug_display_dimm_sizes(struct amd64_pvt *pvt, u8 ctrl) debug_display_dimm_sizes() argument
2521 struct amd64_pvt *pvt = mci->pvt_info; get_channel_from_ecc_syndrome() local
2590 struct amd64_pvt *pvt; decode_bus_error() local
2641 struct amd64_pvt *pvt; decode_umc_error() local
2691 reserve_mc_sibling_devs(struct amd64_pvt *pvt, u16 pci_id1, u16 pci_id2) reserve_mc_sibling_devs() argument
2746 free_mc_sibling_devs(struct amd64_pvt *pvt) free_mc_sibling_devs() argument
2757 determine_ecc_sym_sz(struct amd64_pvt *pvt) determine_ecc_sym_sz() argument
2793 __read_mc_regs_df(struct amd64_pvt *pvt) __read_mc_regs_df() argument
2817 read_mc_regs(struct amd64_pvt *pvt) read_mc_regs() argument
2928 get_csrow_nr_pages(struct amd64_pvt *pvt, u8 dct, int csrow_nr_orig) get_csrow_nr_pages() argument
2953 struct amd64_pvt *pvt = mci->pvt_info; init_csrows_df() local
3001 struct amd64_pvt *pvt = mci->pvt_info; init_csrows() local
3232 ecc_enabled(struct amd64_pvt *pvt) ecc_enabled() argument
3285 f17h_determine_edac_ctl_cap(struct mem_ctl_info *mci, struct amd64_pvt *pvt) f17h_determine_edac_ctl_cap() argument
3317 struct amd64_pvt *pvt = mci->pvt_info; setup_mci_misc_attrs() local
3346 per_family_init(struct amd64_pvt *pvt) per_family_init() argument
3454 hw_info_get(struct amd64_pvt *pvt) hw_info_get() argument
3480 hw_info_put(struct amd64_pvt *pvt) hw_info_put() argument
3488 init_one_instance(struct amd64_pvt *pvt) init_one_instance() argument
3539 instance_has_memory(struct amd64_pvt *pvt) instance_has_memory() argument
3555 struct amd64_pvt *pvt = NULL; probe_one_instance() local
3635 struct amd64_pvt *pvt; remove_one_instance() local
[all...]
H A Di5400_edac.c438 struct i5400_pvt *pvt; in i5400_get_error_info() local
441 pvt = mci->pvt_info; in i5400_get_error_info()
444 pci_read_config_dword(pvt->branchmap_werrors, FERR_FAT_FBD, &value); in i5400_get_error_info()
457 pci_read_config_dword(pvt->branchmap_werrors, in i5400_get_error_info()
459 pci_read_config_word(pvt->branchmap_werrors, in i5400_get_error_info()
461 pci_read_config_dword(pvt->branchmap_werrors, in i5400_get_error_info()
465 pci_write_config_dword(pvt->branchmap_werrors, in i5400_get_error_info()
475 pci_read_config_dword(pvt->branchmap_werrors, FERR_NF_FBD, &value); in i5400_get_error_info()
483 pci_read_config_dword(pvt->branchmap_werrors, in i5400_get_error_info()
485 pci_read_config_word(pvt in i5400_get_error_info()
700 struct i5400_pvt *pvt; i5400_put_devices() local
719 struct i5400_pvt *pvt; i5400_get_devices() local
837 determine_amb_present_reg(struct i5400_pvt *pvt, int channel) determine_amb_present_reg() argument
861 determine_mtr(struct i5400_pvt *pvt, int dimm, int channel) determine_mtr() argument
918 handle_channel(struct i5400_pvt *pvt, int dimm, int channel, struct i5400_dimm_info *dinfo) handle_channel() argument
956 calculate_dimm_size(struct i5400_pvt *pvt) calculate_dimm_size() argument
1053 struct i5400_pvt *pvt; i5400_get_mc_regs() local
1166 struct i5400_pvt *pvt; i5400_init_dimms() local
1229 struct i5400_pvt *pvt; i5400_enable_error_reporting() local
1255 struct i5400_pvt *pvt; i5400_probe1() local
[all...]
H A Di7300_edac.c353 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 in i7300_process_fbd_error()
521 struct i7300_pvt *pvt = mci->pvt_info; i7300_clear_error() local
558 struct i7300_pvt *pvt = mci->pvt_info; i7300_enable_error_reporting() local
585 decode_mtr(struct i7300_pvt *pvt, int slot, int ch, int branch, struct i7300_dimm_info *dinfo, struct dimm_info *dimm) decode_mtr() argument
682 print_dimm_size(struct i7300_pvt *pvt) print_dimm_size() argument
747 struct i7300_pvt *pvt; i7300_init_csrows() local
840 struct i7300_pvt *pvt; i7300_get_mc_regs() local
911 struct i7300_pvt *pvt; i7300_put_devices() local
936 struct i7300_pvt *pvt; i7300_get_devices() local
1025 struct i7300_pvt *pvt; i7300_init_one() local
[all...]
H A Di7core_edac.c396 #define CH_ACTIVE(pvt, ch) ((pvt)->info.mc_control & (1 << (8 + ch)))
397 #define ECCx8(pvt) ((pvt)->info.mc_control & (1 << 1))
400 #define ECC_ENABLED(pvt) ((pvt)->info.mc_status & (1 << 4))
401 #define CH_DISABLED(pvt, ch) ((pvt)->info.mc_status & (1 << ch))
489 struct i7core_pvt *pvt = mci->pvt_info; in get_dimm_config() local
497 pdev = pvt in get_dimm_config()
662 struct i7core_pvt *pvt = mci->pvt_info; disable_inject() local
687 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_section_store() local
707 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_section_show() local
724 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_type_store() local
744 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_type_show() local
764 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_eccmask_store() local
784 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_eccmask_show() local
915 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_enable_store() local
1019 struct i7core_pvt *pvt = mci->pvt_info; i7core_inject_enable_show() local
1159 struct i7core_pvt *pvt = mci->pvt_info; i7core_create_sysfs_devices() local
1214 struct i7core_pvt *pvt = mci->pvt_info; i7core_delete_sysfs_devices() local
1455 struct i7core_pvt *pvt = mci->pvt_info; mci_bind_devs() local
1538 struct i7core_pvt *pvt = mci->pvt_info; i7core_rdimm_update_ce_count() local
1584 struct i7core_pvt *pvt = mci->pvt_info; i7core_rdimm_check_mc_ecc_err() local
1629 struct i7core_pvt *pvt = mci->pvt_info; i7core_udimm_check_mc_ecc_err() local
1697 struct i7core_pvt *pvt = mci->pvt_info; i7core_mce_output_error() local
1793 struct i7core_pvt *pvt = mci->pvt_info; i7core_check_error() local
1959 struct i7core_pvt *pvt = mci->pvt_info; set_sdram_scrub_rate() local
2021 struct i7core_pvt *pvt = mci->pvt_info; get_sdram_scrub_rate() local
2050 struct i7core_pvt *pvt = mci->pvt_info; enable_sdram_scrub_setting() local
2065 struct i7core_pvt *pvt = mci->pvt_info; disable_sdram_scrub_setting() local
2075 i7core_pci_ctl_create(struct i7core_pvt *pvt) i7core_pci_ctl_create() argument
2085 i7core_pci_ctl_release(struct i7core_pvt *pvt) i7core_pci_ctl_release() argument
2099 struct i7core_pvt *pvt; i7core_unregister_mci() local
2132 struct i7core_pvt *pvt; i7core_register_mci() local
[all...]
H A Ddmc520_edac.c178 static u32 dmc520_read_reg(struct dmc520_edac *pvt, u32 offset) in dmc520_read_reg() argument
180 return readl(pvt->reg_base + offset); in dmc520_read_reg()
183 static void dmc520_write_reg(struct dmc520_edac *pvt, u32 val, u32 offset) in dmc520_write_reg() argument
185 writel(val, pvt->reg_base + offset); in dmc520_write_reg()
200 static u32 dmc520_get_dram_ecc_error_count(struct dmc520_edac *pvt, in dmc520_get_dram_ecc_error_count() argument
212 err_low = dmc520_read_reg(pvt, reg_offset_low); in dmc520_get_dram_ecc_error_count()
213 err_high = dmc520_read_reg(pvt, reg_offset_high); in dmc520_get_dram_ecc_error_count()
215 dmc520_write_reg(pvt, 0, reg_offset_low); in dmc520_get_dram_ecc_error_count()
216 dmc520_write_reg(pvt, 0, reg_offset_high); in dmc520_get_dram_ecc_error_count()
224 static void dmc520_get_dram_ecc_error_info(struct dmc520_edac *pvt, in dmc520_get_dram_ecc_error_info() argument
260 dmc520_get_scrub_type(struct dmc520_edac *pvt) dmc520_get_scrub_type() argument
276 dmc520_get_memory_width(struct dmc520_edac *pvt) dmc520_get_memory_width() argument
292 dmc520_get_mtype(struct dmc520_edac *pvt) dmc520_get_mtype() argument
314 dmc520_get_dtype(struct dmc520_edac *pvt) dmc520_get_dtype() argument
350 dmc520_get_rank_size(struct dmc520_edac *pvt) dmc520_get_rank_size() argument
368 struct dmc520_edac *pvt = mci->pvt_info; dmc520_handle_dram_ecc_errors() local
395 struct dmc520_edac *pvt = mci->pvt_info; dmc520_edac_dram_ecc_isr() local
410 struct dmc520_edac *pvt = mci->pvt_info; dmc520_edac_dram_all_isr() local
430 struct dmc520_edac *pvt = mci->pvt_info; dmc520_isr() local
445 struct dmc520_edac *pvt = mci->pvt_info; dmc520_init_csrow() local
479 struct dmc520_edac *pvt = NULL; dmc520_edac_probe() local
609 struct dmc520_edac *pvt; dmc520_edac_remove() local
[all...]
H A Dsb_edac.c318 u64 (*get_tolm)(struct sbridge_pvt *pvt);
319 u64 (*get_tohm)(struct sbridge_pvt *pvt);
328 u8 (*get_node_id)(struct sbridge_pvt *pvt);
330 enum mem_type (*get_memory_type)(struct sbridge_pvt *pvt);
331 enum dev_type (*get_width)(struct sbridge_pvt *pvt, u32 mtr);
794 static u64 sbridge_get_tolm(struct sbridge_pvt *pvt) in sbridge_get_tolm() argument
799 pci_read_config_dword(pvt->pci_sad1, TOLM, &reg); in sbridge_get_tolm()
803 static u64 sbridge_get_tohm(struct sbridge_pvt *pvt) in sbridge_get_tohm() argument
807 pci_read_config_dword(pvt->pci_sad1, TOHM, &reg); in sbridge_get_tohm()
811 static u64 ibridge_get_tolm(struct sbridge_pvt *pvt) in ibridge_get_tolm() argument
820 ibridge_get_tohm(struct sbridge_pvt *pvt) ibridge_get_tohm() argument
877 get_memory_type(struct sbridge_pvt *pvt) get_memory_type() argument
896 haswell_get_memory_type(struct sbridge_pvt *pvt) haswell_get_memory_type() argument
928 knl_get_width(struct sbridge_pvt *pvt, u32 mtr) knl_get_width() argument
934 sbridge_get_width(struct sbridge_pvt *pvt, u32 mtr) sbridge_get_width() argument
959 ibridge_get_width(struct sbridge_pvt *pvt, u32 mtr) ibridge_get_width() argument
968 broadwell_get_width(struct sbridge_pvt *pvt, u32 mtr) broadwell_get_width() argument
974 knl_get_memory_type(struct sbridge_pvt *pvt) knl_get_memory_type() argument
980 get_node_id(struct sbridge_pvt *pvt) get_node_id() argument
987 haswell_get_node_id(struct sbridge_pvt *pvt) haswell_get_node_id() argument
995 knl_get_node_id(struct sbridge_pvt *pvt) knl_get_node_id() argument
1037 haswell_get_tolm(struct sbridge_pvt *pvt) haswell_get_tolm() argument
1045 haswell_get_tohm(struct sbridge_pvt *pvt) haswell_get_tohm() argument
1058 knl_get_tolm(struct sbridge_pvt *pvt) knl_get_tolm() argument
1066 knl_get_tohm(struct sbridge_pvt *pvt) knl_get_tohm() argument
1146 knl_get_tad(const struct sbridge_pvt *pvt, const int entry, const int mc, u64 *offset, u64 *limit, int *ways) knl_get_tad() argument
1340 knl_get_dimm_capacity(struct sbridge_pvt *pvt, u64 *mc_sizes) knl_get_dimm_capacity() argument
1565 struct sbridge_pvt *pvt = mci->pvt_info; get_source_id() local
1584 struct sbridge_pvt *pvt = mci->pvt_info; __populate_dimms() local
1676 struct sbridge_pvt *pvt = mci->pvt_info; get_dimm_config() local
1754 struct sbridge_pvt *pvt = mci->pvt_info; get_memory_layout() local
1933 struct sbridge_pvt *pvt = mci->pvt_info; get_memory_error_data() local
2246 struct sbridge_pvt *pvt; get_memory_error_data_from_mce() local
2489 struct sbridge_pvt *pvt = mci->pvt_info; sbridge_mci_bind_devs() local
2563 struct sbridge_pvt *pvt = mci->pvt_info; ibridge_mci_bind_devs() local
2649 struct sbridge_pvt *pvt = mci->pvt_info; haswell_mci_bind_devs() local
2734 struct sbridge_pvt *pvt = mci->pvt_info; broadwell_mci_bind_devs() local
2815 struct sbridge_pvt *pvt = mci->pvt_info; knl_mci_bind_devs() local
2951 struct sbridge_pvt *pvt = mci->pvt_info; sbridge_mce_output_error() local
3223 struct sbridge_pvt *pvt; sbridge_register_mci() local
[all...]
H A Damd64_edac.h147 #define dram_rw(pvt, i) ((u8)(pvt->ranges[i].base.lo & 0x3))
148 #define dram_intlv_sel(pvt, i) ((u8)((pvt->ranges[i].lim.lo >> 8) & 0x7))
149 #define dram_dst_node(pvt, i) ((u8)(pvt->ranges[i].lim.lo & 0x7))
152 #define dhar_mem_hoist_valid(pvt) ((pvt)->dhar & BIT(1))
153 #define dhar_base(pvt) ((pvt)
419 get_dram_base(struct amd64_pvt *pvt, u8 i) get_dram_base() argument
429 get_dram_limit(struct amd64_pvt *pvt, u8 i) get_dram_limit() argument
444 dct_sel_interleave_addr(struct amd64_pvt *pvt) dct_sel_interleave_addr() argument
521 dram_intlv_en(struct amd64_pvt *pvt, unsigned int i) dram_intlv_en() argument
531 dhar_valid(struct amd64_pvt *pvt) dhar_valid() argument
541 dct_sel_baseaddr(struct amd64_pvt *pvt) dct_sel_baseaddr() argument
[all...]
H A Di5000_edac.c388 struct i5000_pvt *pvt; in i5000_get_error_info() local
391 pvt = mci->pvt_info; in i5000_get_error_info()
394 pci_read_config_dword(pvt->branchmap_werrors, FERR_FAT_FBD, &value); in i5000_get_error_info()
406 pci_read_config_dword(pvt->branchmap_werrors, in i5000_get_error_info()
408 pci_read_config_word(pvt->branchmap_werrors, in i5000_get_error_info()
410 pci_read_config_dword(pvt->branchmap_werrors, in i5000_get_error_info()
414 pci_write_config_dword(pvt->branchmap_werrors, in i5000_get_error_info()
424 pci_read_config_dword(pvt->branchmap_werrors, FERR_NF_FBD, &value); in i5000_get_error_info()
432 pci_read_config_dword(pvt->branchmap_werrors, in i5000_get_error_info()
434 pci_read_config_word(pvt in i5000_get_error_info()
782 struct i5000_pvt *pvt; i5000_get_devices() local
901 struct i5000_pvt *pvt; i5000_put_devices() local
927 determine_amb_present_reg(struct i5000_pvt *pvt, int channel) determine_amb_present_reg() argument
951 determine_mtr(struct i5000_pvt *pvt, int slot, int channel) determine_mtr() argument
992 handle_channel(struct i5000_pvt *pvt, int slot, int channel, struct i5000_dimm_info *dinfo) handle_channel() argument
1034 calculate_dimm_size(struct i5000_pvt *pvt) calculate_dimm_size() argument
1133 struct i5000_pvt *pvt; i5000_get_mc_regs() local
1249 struct i5000_pvt *pvt; i5000_init_csrows() local
1309 struct i5000_pvt *pvt; i5000_enable_error_reporting() local
1358 struct i5000_pvt *pvt; i5000_probe1() local
[all...]
H A Damd64_edac_inj.c9 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_section_show() local
10 return sprintf(buf, "0x%x\n", pvt->injection.section); in amd64_inject_section_show()
24 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_section_store() local
37 pvt->injection.section = (u32) value; in amd64_inject_section_store()
46 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_word_show() local
47 return sprintf(buf, "0x%x\n", pvt->injection.word); in amd64_inject_word_show()
61 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_word_store() local
74 pvt->injection.word = (u32) value; in amd64_inject_word_store()
83 struct amd64_pvt *pvt = mci->pvt_info; in amd64_inject_ecc_vector_show() local
84 return sprintf(buf, "0x%x\n", pvt in amd64_inject_ecc_vector_show()
97 struct amd64_pvt *pvt = mci->pvt_info; amd64_inject_ecc_vector_store() local
123 struct amd64_pvt *pvt = mci->pvt_info; amd64_inject_read_store() local
156 struct amd64_pvt *pvt = mci->pvt_info; amd64_inject_write_store() local
225 struct amd64_pvt *pvt = mci->pvt_info; amd64_edac_inj_is_visible() local
[all...]
H A De752x_edac.c308 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 in do_process_ce()
393 struct e752x_pvt *pvt = (struct e752x_pvt *)mci->pvt_info; do_process_ue() local
465 struct e752x_pvt *pvt = (struct e752x_pvt *)mci->pvt_info; do_process_ded_retry() local
842 struct e752x_pvt *pvt; e752x_get_error_info() local
992 struct e752x_pvt *pvt = (struct e752x_pvt *) mci->pvt_info; set_sdram_scrub_rate() local
1021 struct e752x_pvt *pvt = (struct e752x_pvt *) mci->pvt_info; get_sdram_scrub_rate() local
1058 struct e752x_pvt *pvt = mci->pvt_info; remap_csrow_index() local
1139 e752x_init_mem_map_table(struct pci_dev *pdev, struct e752x_pvt *pvt) e752x_init_mem_map_table() argument
1175 e752x_get_devs(struct pci_dev *pdev, int dev_idx, struct e752x_pvt *pvt) e752x_get_devs() argument
1212 e752x_init_sysbus_parity_mask(struct e752x_pvt *pvt) e752x_init_sysbus_parity_mask() argument
1233 e752x_init_error_reporting_regs(struct e752x_pvt *pvt) e752x_init_error_reporting_regs() argument
1262 struct e752x_pvt *pvt; e752x_probe1() local
1400 struct e752x_pvt *pvt; e752x_remove_one() local
[all...]
H A De7xxx_edac.c186 struct e7xxx_pvt *pvt = (struct e7xxx_pvt *)mci->pvt_info; in ctl_page_to_phys() local
190 if ((page < pvt->tolm) || in ctl_page_to_phys()
191 ((page >= 0x100000) && (page < pvt->remapbase))) in ctl_page_to_phys()
194 remap = (page - pvt->tolm) + pvt->remapbase; in ctl_page_to_phys()
196 if (remap < pvt->remaplimit) in ctl_page_to_phys()
200 return pvt->tolm - 1; in ctl_page_to_phys()
259 struct e7xxx_pvt *pvt; in e7xxx_get_error_info() local
261 pvt = (struct e7xxx_pvt *)mci->pvt_info; in e7xxx_get_error_info()
262 pci_read_config_byte(pvt in e7xxx_get_error_info()
426 struct e7xxx_pvt *pvt = NULL; e7xxx_probe1() local
541 struct e7xxx_pvt *pvt; e7xxx_remove_one() local
[all...]

Completed in 33 milliseconds

123