ufshcd_extr...ttings_attrs(9)
π ufshcd_extract_tx_eq_settings_attrs(9) β like, the actual page
okay so this is from the Kernel API Manual bestie, and it's a kernel function page, so buckle up π
β¨ NAME β¨
ufshcd_extract_tx_eq_settings_attrs β my girl pulls the TX Equalization settings out of the UFS attributes, no cap π
π¦ SYNOPSIS π¦
void ufshcd_extract_tx_eq_settings_attrs (struct ufs_hba *hba , u8 gear );
πΈ ARGUMENTS πΈ
hbaβ the per adapter instance, aka your main character struct π«Άgearβ the target gear π
π DESCRIPTION π
Okay so picture this: we already did an EQTR procedure at some point, right, and it figured out the optimal TX Equalization parameters β PreShoot, DeEmphasis, and the PreCoding enable. Those little guys got stashed away in the UFS attributes, and this function is the one that goes and gets them back out. π
The function reads:
qTxEQGnSettings(64-bit): the main attribute, containing the PreShoot and DeEmphasis values for both host and device TX lanes π₯wTxEQGnSettingsExt(16-bit): the extended attribute, containing the PreCoding enable flags and a validity indicator β
literally just goes in, grabs both, done. iconic behavior tbh β¨
π§ SEE ALSO π§
Kernel file ./drivers/ufs/core/ufs-txeq.c β and bestie, the whole friend group:
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(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_update_tx_eq_settings_attrs(9)
bestie reminder: this is the extract function. it reads the stored settings, it does not apply them. go read ufshcd_apply_tx_eq_settings(9) if that's what you're after, iykyk π
mwah π that's the whole page!! this came out of ./drivers/ufs/core, dated October 2026, under the Kernel API Manual banner β go off, ufs-txeq.c, you ate πβ¨
π¦ 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