Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/thermal/intel/
Dintel_pch_thermal.c61 void __iomem *hw_base; member
124 if (WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL)) { in pch_wpt_init()
129 tsel = readb(ptd->hw_base + WPT_TSEL); in pch_wpt_init()
139 writeb(tsel|WPT_TSEL_ETS, ptd->hw_base + WPT_TSEL); in pch_wpt_init()
140 if (!(WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL))) { in pch_wpt_init()
147 trip_temp = readw(ptd->hw_base + WPT_CTT); in pch_wpt_init()
157 trip_temp = readw(ptd->hw_base + WPT_PHL); in pch_wpt_init()
175 wpt_temp = WPT_TEMP_TSR & readw(ptd->hw_base + WPT_TEMP); in pch_wpt_get_temp()
190 tsel = readb(ptd->hw_base + WPT_TSEL); in pch_wpt_suspend()
192 writeb(tsel & 0xFE, ptd->hw_base + WPT_TSEL); in pch_wpt_suspend()
[all …]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/sound/core/
Dpcm_lib.c262 snd_pcm_uframes_t old_hw_ptr, new_hw_ptr, hw_base; in snd_pcm_update_hw_ptr0() local
312 hw_base = runtime->hw_ptr_base; in snd_pcm_update_hw_ptr0()
313 new_hw_ptr = hw_base + pos; in snd_pcm_update_hw_ptr0()
322 hw_base += runtime->buffer_size; in snd_pcm_update_hw_ptr0()
323 if (hw_base >= runtime->boundary) { in snd_pcm_update_hw_ptr0()
324 hw_base = 0; in snd_pcm_update_hw_ptr0()
327 new_hw_ptr = hw_base + pos; in snd_pcm_update_hw_ptr0()
335 hw_base += runtime->buffer_size; in snd_pcm_update_hw_ptr0()
336 if (hw_base >= runtime->boundary) { in snd_pcm_update_hw_ptr0()
337 hw_base = 0; in snd_pcm_update_hw_ptr0()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/venc/
Dvenc_vp8_if.c125 void __iomem *hw_base; member
137 return readl(inst->hw_base + addr); in vp8_enc_read_reg()
340 inst->hw_base = mtk_vcodec_get_reg_addr(inst->ctx, VENC_LT_SYS); in vp8_enc_init()
Dvenc_h264_if.c146 void __iomem *hw_base; member
160 return readl(inst->hw_base + addr); in h264_read_reg()
513 inst->hw_base = mtk_vcodec_get_reg_addr(inst->ctx, VENC_SYS); in h264_enc_init()
/kernel/linux/linux-5.10/drivers/atm/
Dfirestream.h463 unsigned long hw_base; /* mem base address */ member
Dfirestream.c1675 dev->hw_base = pci_resource_start(pci_dev, 0); in fs_init()
1677 dev->base = ioremap(dev->hw_base, 0x1000); in fs_init()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlegacy/
Dcommon.h1178 void __iomem *hw_base; member
1983 writeb(val, il->hw_base + ofs); in _il_write8()
1990 writel(val, il->hw_base + ofs); in _il_wr()
1996 return readl(il->hw_base + ofs); in _il_rd()
D3945-mac.c3637 il->hw_base = pci_ioremap_bar(pdev, 0); in il3945_pci_probe()
3638 if (!il->hw_base) { in il3945_pci_probe()
3645 D_INFO("pci_resource_base = %p\n", il->hw_base); in il3945_pci_probe()
3760 iounmap(il->hw_base); in il3945_pci_probe()
3837 iounmap(il->hw_base); in il3945_pci_remove()
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()
6671 iounmap(il->hw_base); in il4965_pci_probe()
6750 iounmap(il->hw_base); in il4965_pci_remove()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/pcie/
Dinternal.h423 void __iomem *hw_base; member
Dtrans.c1866 writeb(val, IWL_TRANS_GET_PCIE_TRANS(trans)->hw_base + ofs); in iwl_trans_pcie_write8()
1871 writel(val, IWL_TRANS_GET_PCIE_TRANS(trans)->hw_base + ofs); in iwl_trans_pcie_write32()
1876 return readl(IWL_TRANS_GET_PCIE_TRANS(trans)->hw_base + ofs); in iwl_trans_pcie_read32()
3566 trans_pcie->hw_base = pcim_iomap_table(pdev)[0]; in iwl_trans_pcie_alloc()
3567 if (!trans_pcie->hw_base) { in iwl_trans_pcie_alloc()
/kernel/linux/linux-5.10/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 readw(ipw->hw_base + ofs); in _ipw_read16()
396 return readl(ipw->hw_base + ofs); in _ipw_read32()
555 memcpy_toio((priv->hw_base + addr), buf, num); in ipw_write_direct()
11652 priv->hw_base = base; in ipw_pci_probe()
11748 iounmap(priv->hw_base); in ipw_pci_probe()
11830 iounmap(priv->hw_base); in ipw_pci_remove()
Dipw2200.h1179 void __iomem *hw_base; member