Home
last modified time | relevance | path

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

/linux/include/ufs/
H A Dufshcd.h993 u32 ahit; member
1255 return FIELD_GET(UFSHCI_AHIBERN8_TIMER_MASK, hba->ahit); in ufshcd_is_auto_hibern8_enabled()
1433 void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit);
/linux/drivers/ufs/core/
H A Dufs-sysfs.c178 static int ufshcd_ahit_to_us(u32 ahit) in ufshcd_ahit_to_us() argument
180 int timer = FIELD_GET(UFSHCI_AHIBERN8_TIMER_MASK, ahit); in ufshcd_ahit_to_us()
181 int scale = FIELD_GET(UFSHCI_AHIBERN8_SCALE_MASK, ahit); in ufshcd_ahit_to_us()
222 u32 ahit; in auto_hibern8_show() local
229 ret = ufshcd_read_hci_reg(hba, &ahit, REG_AUTO_HIBERNATE_IDLE_TIMER); in auto_hibern8_show()
233 return sysfs_emit(buf, "%d\n", ufshcd_ahit_to_us(ahit)); in auto_hibern8_show()
H A Dufshcd-priv.h63 void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit);
H A Dufshcd.c4469 ufshcd_writel(hba, hba->ahit, REG_AUTO_HIBERNATE_IDLE_TIMER); in ufshcd_configure_auto_hibern8()
4472 void ufshcd_auto_hibern8_update(struct ufs_hba *hba, u32 ahit) in ufshcd_auto_hibern8_update() argument
4474 const u32 cur_ahit = READ_ONCE(hba->ahit); in ufshcd_auto_hibern8_update()
4476 if (!ufshcd_is_auto_hibern8_supported(hba) || cur_ahit == ahit) in ufshcd_auto_hibern8_update()
4479 WRITE_ONCE(hba->ahit, ahit); in ufshcd_auto_hibern8_update()
10566 if (ufshcd_is_auto_hibern8_supported(hba) && !hba->ahit) { in ufshcd_init()
10567 hba->ahit = FIELD_PREP(UFSHCI_AHIBERN8_TIMER_MASK, 150) | in ufshcd_init()
/linux/drivers/ufs/host/
H A Dcdns-pltfrm.c201 hba->ahit = 0; in cdns_ufs_link_startup_notify()
H A Dufs-mediatek.c260 hba->ahit = 0; in ufs_mtk_hce_enable_notify()
1215 if (ufshcd_is_auto_hibern8_supported(hba) && hba->ahit) in ufs_mtk_setup_clk_gating()
1217 hba->ahit); in ufs_mtk_setup_clk_gating()
1231 hba->ahit = FIELD_PREP(UFSHCI_AHIBERN8_TIMER_MASK, 10) | in ufs_mtk_post_link()