Home
last modified time | relevance | path

Searched refs:ahit (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/include/ufs/
Dufshcd.h863 u32 ahit; member
1024 return FIELD_GET(UFSHCI_AHIBERN8_TIMER_MASK, hba->ahit); in ufshcd_is_auto_hibern8_enabled()
1181 void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit);
/linux-6.1.9/drivers/ufs/core/
Dufs-sysfs.c131 static int ufshcd_ahit_to_us(u32 ahit) in ufshcd_ahit_to_us() argument
133 int timer = FIELD_GET(UFSHCI_AHIBERN8_TIMER_MASK, ahit); in ufshcd_ahit_to_us()
134 int scale = FIELD_GET(UFSHCI_AHIBERN8_SCALE_MASK, ahit); in ufshcd_ahit_to_us()
157 u32 ahit; in auto_hibern8_show() local
172 ahit = ufshcd_readl(hba, REG_AUTO_HIBERNATE_IDLE_TIMER); in auto_hibern8_show()
176 ret = sysfs_emit(buf, "%d\n", ufshcd_ahit_to_us(ahit)); in auto_hibern8_show()
Dufshcd-priv.h63 void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit);
Dufshcd.c4234 void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit) in ufshcd_auto_hibern8_update() argument
4243 if (hba->ahit != ahit) { in ufshcd_auto_hibern8_update()
4244 hba->ahit = ahit; in ufshcd_auto_hibern8_update()
4265 ufshcd_writel(hba, hba->ahit, REG_AUTO_HIBERNATE_IDLE_TIMER); in ufshcd_auto_hibern8_enable()
9863 if (ufshcd_is_auto_hibern8_supported(hba) && !hba->ahit) { in ufshcd_init()
9864 hba->ahit = FIELD_PREP(UFSHCI_AHIBERN8_TIMER_MASK, 150) | in ufshcd_init()
/linux-6.1.9/drivers/ufs/host/
Dufs-mediatek.c222 hba->ahit = 0; in ufs_mtk_hce_enable_notify()
1091 if (ufshcd_is_auto_hibern8_supported(hba) && hba->ahit) in ufs_mtk_setup_clk_gating()
1093 hba->ahit); in ufs_mtk_setup_clk_gating()
1107 hba->ahit = FIELD_PREP(UFSHCI_AHIBERN8_TIMER_MASK, 10) | in ufs_mtk_post_link()
Dcdns-pltfrm.c206 hba->ahit = 0; in cdns_ufs_link_startup_notify()