Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/thermal/intel/
Dintel_pch_thermal.c84 void __iomem *hw_base; member
124 *temp = GET_WPT_TEMP(WPT_TEMP_TSR & readw(ptd->hw_base + WPT_TEMP)); in pch_thermal_get_temp()
188 ptd->hw_base = pci_ioremap_bar(pdev, 0); in intel_pch_thermal_probe()
189 if (!ptd->hw_base) { in intel_pch_thermal_probe()
196 if (WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL)) { in intel_pch_thermal_probe()
201 tsel = readb(ptd->hw_base + WPT_TSEL); in intel_pch_thermal_probe()
212 writeb(tsel|WPT_TSEL_ETS, ptd->hw_base + WPT_TSEL); in intel_pch_thermal_probe()
213 if (!(WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL))) { in intel_pch_thermal_probe()
220 trip_temp = readw(ptd->hw_base + WPT_CTT); in intel_pch_thermal_probe()
227 trip_temp = readw(ptd->hw_base + WPT_PHL); in intel_pch_thermal_probe()
[all …]
/linux-6.6.21/sound/soc/mediatek/common/
Dmtk-afe-platform-driver.c91 unsigned int hw_ptr = 0, hw_base = 0; in mtk_afe_pcm_pointer() local
101 ret = regmap_read(regmap, reg_ofs_base, &hw_base); in mtk_afe_pcm_pointer()
102 if (ret || hw_base == 0) { in mtk_afe_pcm_pointer()
108 pcm_ptr_bytes = hw_ptr - hw_base; in mtk_afe_pcm_pointer()
/linux-6.6.21/sound/core/
Dpcm_lib.c288 snd_pcm_uframes_t old_hw_ptr, new_hw_ptr, hw_base; in snd_pcm_update_hw_ptr0() local
338 hw_base = runtime->hw_ptr_base; in snd_pcm_update_hw_ptr0()
339 new_hw_ptr = hw_base + pos; in snd_pcm_update_hw_ptr0()
348 hw_base += runtime->buffer_size; in snd_pcm_update_hw_ptr0()
349 if (hw_base >= runtime->boundary) { in snd_pcm_update_hw_ptr0()
350 hw_base = 0; in snd_pcm_update_hw_ptr0()
353 new_hw_ptr = hw_base + pos; in snd_pcm_update_hw_ptr0()
361 hw_base += runtime->buffer_size; in snd_pcm_update_hw_ptr0()
362 if (hw_base >= runtime->boundary) { in snd_pcm_update_hw_ptr0()
363 hw_base = 0; in snd_pcm_update_hw_ptr0()
[all …]
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/encoder/venc/
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()
Dvenc_h264_if.c213 void __iomem *hw_base; member
228 return readl(inst->hw_base + addr); in h264_read_reg()
597 inst->hw_base = mtk_vcodec_get_reg_addr(inst->ctx->dev->reg_base, VENC_SYS); in h264_enc_init()
/linux-6.6.21/drivers/net/wireless/intel/iwlegacy/
Dcommon.h1178 void __iomem *hw_base; member
1984 writeb(val, il->hw_base + ofs); in _il_write8()
1991 writel(val, il->hw_base + ofs); in _il_wr()
1997 return readl(il->hw_base + ofs); in _il_rd()
D3945-mac.c3632 il->hw_base = pci_ioremap_bar(pdev, 0); in il3945_pci_probe()
3633 if (!il->hw_base) { in il3945_pci_probe()
3640 D_INFO("pci_resource_base = %p\n", il->hw_base); in il3945_pci_probe()
3759 iounmap(il->hw_base); in il3945_pci_probe()
3835 iounmap(il->hw_base); in il3945_pci_remove()
D4965-mac.c6540 il->hw_base = pci_ioremap_bar(pdev, 0); in il4965_pci_probe()
6541 if (!il->hw_base) { in il4965_pci_probe()
6548 D_INFO("pci_resource_base = %p\n", il->hw_base); in il4965_pci_probe()
6674 iounmap(il->hw_base); in il4965_pci_probe()
6752 iounmap(il->hw_base); in il4965_pci_remove()
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/pcie/
Dtrans.c1911 writeb(val, IWL_TRANS_GET_PCIE_TRANS(trans)->hw_base + ofs); in iwl_trans_pcie_write8()
1916 writel(val, IWL_TRANS_GET_PCIE_TRANS(trans)->hw_base + ofs); in iwl_trans_pcie_write32()
1921 return readl(IWL_TRANS_GET_PCIE_TRANS(trans)->hw_base + ofs); in iwl_trans_pcie_read32()
3674 trans_pcie->hw_base = table[0]; in iwl_trans_pcie_alloc()
3675 if (!trans_pcie->hw_base) { in iwl_trans_pcie_alloc()
Dinternal.h393 u8 __iomem *hw_base; member
/linux-6.6.21/drivers/net/wireless/intel/ipw2x00/
Dipw2200.c329 writeb(val, ipw->hw_base + ofs); in _ipw_write8()
343 writew(val, ipw->hw_base + ofs); in _ipw_write16()
357 writel(val, ipw->hw_base + ofs); in _ipw_write32()
370 return readb(ipw->hw_base + ofs); in _ipw_read8()
383 return readl(ipw->hw_base + ofs); in _ipw_read32()
542 memcpy_toio((priv->hw_base + addr), buf, num); in ipw_write_direct()
11611 priv->hw_base = base; in ipw_pci_probe()
11707 iounmap(priv->hw_base); in ipw_pci_probe()
11789 iounmap(priv->hw_base); in ipw_pci_remove()
Dipw2200.h1178 void __iomem *hw_base; member