Searched refs:scrubval (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.15/drivers/edac/ |
D | amd64_edac.c | 32 u32 scrubval; /* bit pattern for scrub rate */ member 170 static inline void __f17h_set_scrubval(struct amd64_pvt *pvt, u32 scrubval) in __f17h_set_scrubval() argument 177 if (scrubval >= 0x5 && scrubval <= 0x14) { in __f17h_set_scrubval() 178 scrubval -= 0x5; in __f17h_set_scrubval() 179 pci_write_bits32(pvt->F6, F17H_SCR_LIMIT_ADDR, scrubval, 0xF); in __f17h_set_scrubval() 191 u32 scrubval; in __set_scrub_rate() local 208 if (scrubrates[i].scrubval < min_rate) in __set_scrub_rate() 215 scrubval = scrubrates[i].scrubval; in __set_scrub_rate() 218 __f17h_set_scrubval(pvt, scrubval); in __set_scrub_rate() 221 pci_write_bits32(pvt->F2, F15H_M60H_SCRCTRL, scrubval, 0x001F); in __set_scrub_rate() [all …]
|
D | e752x_edac.c | 280 u16 scrubval; /* register value for scrub rate */ member 1011 pci_write_config_word(pdev, E752X_MCHSCRB, scrubrates[i].scrubval); in set_sdram_scrub_rate() 1022 u16 scrubval; in get_sdram_scrub_rate() local 1031 pci_read_config_word(pdev, E752X_MCHSCRB, &scrubval); in get_sdram_scrub_rate() 1032 scrubval = scrubval & 0x0f; in get_sdram_scrub_rate() 1035 if (scrubrates[i].scrubval == scrubval) in get_sdram_scrub_rate() 1040 "Invalid sdram scrub control value: 0x%x\n", scrubval); in get_sdram_scrub_rate()
|
D | i7core_edac.c | 2026 u32 scrubval; in get_sdram_scrub_rate() local 2034 pci_read_config_dword(pdev, MC_SCRUB_CONTROL, &scrubval); in get_sdram_scrub_rate() 2037 scrubval &= SCRUBINTERVAL_MASK; in get_sdram_scrub_rate() 2038 if (!scrubval) in get_sdram_scrub_rate() 2044 do_div(scrub_rate, scrubval); in get_sdram_scrub_rate()
|