adapt_cap_to_t_adapt(9)
π adapt_cap_to_t_adapt(9) β Kernel API Manual, but make it make sense
okay so bestie, welcome to the <pink>adapt_cap_to_t_adapt(9)</pink> page from the Kernel API Manual β¨ this one's a lil function that takes your adapt capability and hands you back a TAdapt value. that's the whole vibe. let's get into it π«Ά
β¨ NAME β¨
adapt_cap_to_t_adapt β literally just calculate TAdapt from adapt capability π no cap, that's the entire job description.
πΈ SYNOPSIS πΈ
u64 adapt_cap_to_t_adapt (u32 adapt_cap );
she takes one thing, she gives back a u64. icon behaviour π
π ARGUMENTS π
adapt_capβ the Adapt capability. that's it, that's the input. she'su32, she's the main character, she goes in and the math happens π¦
π₯ DESCRIPTION π₯
okay so here's where it gets juicy. the function does a lil branching situation, and it's FOR NRZ specifically (that's the mode we're talking about here, bestie, don't @ me):
IF (ADAPT_range = FINE) βTADAPT = 650 x (ADAPT_length + 1)ELSE (IFADAPT_range = COARSE) βTADAPT = 650 x 2^ADAPT_length
so likeβ¦ FINE range? you get the + 1 treatment. COARSE range? nah, you get the whole 2^ADAPT_length exponent glow-up. two different paths, both valid, both slaying in their own way π
and then β the moment we've all been waiting for β she returns the calculated TAdapt value in terms of Unit Intervals (UI) β¨ periodt. that's the unit. UI. write it down π
π¦ SEE ALSO π¦
bestie this list is long, but every single one of these is part of the same friend group, so likeβ¦ iykyk. all of these live in the kernel file ./drivers/ufs/core/ufs-txeq.c π:
ufshcd_configure_precoding(9)ufshcd_apply_tx_eq_settings(9)ufshcd_evaluate_tx_eqtr_fom(9)ufshcd_get_rx_fom(9)tx_eqtr_iter_try_update(9)tx_eqtr_iter_update(9)ufshcd_tx_eqtr_iter_init(9)adapt_cap_to_t_adapt_l0l3(9)adapt_cap_to_t_adapt_l0l1l2l3(9)ufshcd_setup_tx_eqtr_adapt_length(9)ufshcd_compose_tx_eqtr_setting(9)ufshcd_apply_tx_eqtr_settings(9)ufshcd_update_tx_eq_params(9)__ufshcd_tx_eqtr(9)ufshcd_tx_eqtr_prepare(9)ufshcd_tx_eqtr(9)ufshcd_config_tx_eq_settings(9)ufshcd_apply_valid_tx_eq_settings(9)ufshcd_retrain_tx_eq(9)ufshcd_extract_tx_eq_settings_attrs(9)ufshcd_update_tx_eq_settings_attrs(9)
like, go read those too. she's not doing this alone, she's got a whole squad π
and that's the page!! mwah π this one came out of ./drivers/ufs/core and it's dated October 2026 β so yeah, mark your calendar bestie, this manual page is from the future and it's still serving β bye!! π§
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms