Home
last modified time | relevance | path

Searched refs:hw_base (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/thermal/intel/
H A Dintel_pch_thermal.c84 void __iomem *hw_base; member
125 *temp = GET_WPT_TEMP(WPT_TEMP_TSR & readw(ptd->hw_base + WPT_TEMP)); in pch_thermal_get_temp()
190 ptd->hw_base = pci_ioremap_bar(pdev, 0); in intel_pch_thermal_probe()
191 if (!ptd->hw_base) { in intel_pch_thermal_probe()
198 if (WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL)) { in intel_pch_thermal_probe()
203 tsel = readb(ptd->hw_base + WPT_TSEL); in intel_pch_thermal_probe()
214 writeb(tsel|WPT_TSEL_ETS, ptd->hw_base + WPT_TSEL); in intel_pch_thermal_probe()
215 if (!(WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL))) { in intel_pch_thermal_probe()
222 trip_temp = readw(ptd->hw_base + WPT_CTT); in intel_pch_thermal_probe()
229 trip_temp = readw(ptd->hw_base + WPT_PHL); in intel_pch_thermal_probe()
[all …]
/linux/sound/soc/mediatek/common/
H A Dmtk-afe-platform-driver.c92 unsigned int hw_ptr = 0, hw_base = 0; in mtk_afe_pcm_pointer()
102 ret = regmap_read(regmap, reg_ofs_base, &hw_base); in mtk_afe_pcm_pointer()
103 if (ret || hw_base == 0) { in mtk_afe_pcm_pointer()
109 pcm_ptr_bytes = hw_ptr - hw_base; in mtk_afe_pcm_pointer()
91 unsigned int hw_ptr = 0, hw_base = 0; mtk_afe_pcm_pointer() local
/linux/sound/core/
H A Dpcm_lib.c291 snd_pcm_uframes_t old_hw_ptr, new_hw_ptr, hw_base; in snd_pcm_update_hw_ptr0() local
341 hw_base = runtime->hw_ptr_base; in snd_pcm_update_hw_ptr0()
342 new_hw_ptr = hw_base + pos; in snd_pcm_update_hw_ptr0()
351 hw_base += runtime->buffer_size; in snd_pcm_update_hw_ptr0()
352 if (hw_base >= runtime->boundary) { in snd_pcm_update_hw_ptr0()
353 hw_base = 0; in snd_pcm_update_hw_ptr0()
356 new_hw_ptr = hw_base + pos; in snd_pcm_update_hw_ptr0()
364 hw_base += runtime->buffer_size; in snd_pcm_update_hw_ptr0()
365 if (hw_base >= runtime->boundary) { in snd_pcm_update_hw_ptr0()
366 hw_base = 0; in snd_pcm_update_hw_ptr0()
[all …]
/linux/drivers/media/platform/mediatek/vcodec/encoder/venc/
H A Dvenc_vp8_if.c124 void __iomem *hw_base; member
136 return readl(inst->hw_base + addr); in vp8_enc_read_reg()
326 inst->hw_base = mtk_vcodec_get_reg_addr(inst->ctx->dev->reg_base, VENC_LT_SYS); in vp8_enc_init()
/linux/drivers/net/wireless/intel/iwlegacy/
H A Dcommon.h1190 void __iomem *hw_base; member
1995 writeb(val, il->hw_base + ofs); in _il_write8()
2002 writel(val, il->hw_base + ofs); in _il_wr()
2008 return readl(il->hw_base + ofs); in _il_rd()
H A D3945-mac.c3598 il->hw_base = pci_ioremap_bar(pdev, 0); in il3945_pci_probe()
3599 if (!il->hw_base) { in il3945_pci_probe()
3606 D_INFO("pci_resource_base = %p\n", il->hw_base); in il3945_pci_probe()
3725 iounmap(il->hw_base); in il3945_pci_probe()
3801 iounmap(il->hw_base); in il3945_pci_remove()
H A D4965-mac.c6541 il->hw_base = pci_ioremap_bar(pdev, 0); in il4965_pci_probe()
6542 if (!il->hw_base) { in il4965_pci_probe()
6549 D_INFO("pci_resource_base = %p\n", il->hw_base); in il4965_pci_probe()
6675 iounmap(il->hw_base); in il4965_pci_probe()
6753 iounmap(il->hw_base); in il4965_pci_remove()