Lines Matching refs:hw_base
84 void __iomem *hw_base; member
124 *temp = GET_WPT_TEMP(WPT_TEMP_TSR & readw(ptd->hw_base + WPT_TEMP)); in pch_thermal_get_temp()
187 ptd->hw_base = pci_ioremap_bar(pdev, 0); in intel_pch_thermal_probe()
188 if (!ptd->hw_base) { in intel_pch_thermal_probe()
195 if (WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL)) { in intel_pch_thermal_probe()
200 tsel = readb(ptd->hw_base + WPT_TSEL); in intel_pch_thermal_probe()
211 writeb(tsel|WPT_TSEL_ETS, ptd->hw_base + WPT_TSEL); in intel_pch_thermal_probe()
212 if (!(WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL))) { in intel_pch_thermal_probe()
219 trip_temp = readw(ptd->hw_base + WPT_CTT); in intel_pch_thermal_probe()
226 trip_temp = readw(ptd->hw_base + WPT_PHL); in intel_pch_thermal_probe()
254 iounmap(ptd->hw_base); in intel_pch_thermal_probe()
268 iounmap(ptd->hw_base); in intel_pch_thermal_remove()
283 tsel = readb(ptd->hw_base + WPT_TSEL); in intel_pch_thermal_suspend_noirq()
284 writeb(tsel & 0xFE, ptd->hw_base + WPT_TSEL); in intel_pch_thermal_suspend_noirq()
293 pch_thr_temp = GET_PCH_TEMP(WPT_TEMP_TSR & readw(ptd->hw_base + WPT_TSPM)); in intel_pch_thermal_suspend_noirq()
296 pch_cur_temp = GET_PCH_TEMP(WPT_TEMP_TSR & readw(ptd->hw_base + WPT_TEMP)); in intel_pch_thermal_suspend_noirq()
321 pch_cur_temp = GET_PCH_TEMP(WPT_TEMP_TSR & readw(ptd->hw_base + WPT_TEMP)); in intel_pch_thermal_suspend_noirq()
350 tsel = readb(ptd->hw_base + WPT_TSEL); in intel_pch_thermal_resume()
352 writeb(tsel | WPT_TSEL_ETS, ptd->hw_base + WPT_TSEL); in intel_pch_thermal_resume()