__ufshcd_tx_eqtr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __ufshcd_tx_eqtr(9) ✨

okay bestie, welcome to the Kernel API Manual πŸ’… today's main character is __ufshcd_tx_eqtr(9), and she is literally the whole TX Equalization Training procedure. buckle up πŸŽ€


🌸 NAME 🌸

__ufshcd_tx_eqtr β€” TX Equalization Training (EQTR) procedure πŸ‘‘


πŸ¦‹ SYNOPSIS πŸ¦‹

int __ufshcd_tx_eqtr (struct ufs_hba *hba , struct ufshcd_tx_eq_params
*params , struct ufs_pa_layer_attr *pwr_mode );

no cap, that's the whole signature ⭐


πŸ’– ARGUMENTS πŸ’–

  • hba β€” the per adapter instance, aka the device's little home base 🏠
  • params β€” the TX EQ parameters data structure (all the settings live here fr) πŸ“
  • pwr_mode β€” the target power mode, which is what's carrying the gear and rate information πŸš€

πŸ”₯ DESCRIPTION πŸ”₯

so this function implements the complete TX EQTR procedure as defined in the UFSHCI v5.0 specification ✨ and the way she does it? she iterates through all the possible combinations of PreShoot and DeEmphasis settings 🌈 to find the optimal TX Equalization settings for all active lanes πŸ’…

it's giving exhaustive-search-but-make-it-fashion πŸ‘‘

returns 0 on success, negative error code otherwise 😭 (iykyk)

ngl bestie, remember: success is 0, anything negative means something went sideways β€” don't @ me, that's just the return value πŸ™ˆ

🧚 SEE ALSO 🧚

like, that's the whole friend group right there 🫢 go say hi πŸ’œ


and that's the page, bestie πŸ₯Ή source lives in ./drivers/ufs/core, dated October 2026 β€” mwah, slay, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from