ufshcd_confi..._eq_settings(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ufshcd_confi..._eq_settings(9) πŸ’…

okay so this is a page from the Kernel API Manual bestie, and the function name is lowkey so long that the header had to abbreviate it 😭 β€” it's giving "we ran out of room on the title line" energy. but we move! let's get into it ✨


🌸 NAME 🌸

ufshcd_config_tx_eq_settings β€” Configure TX Equalization settings πŸŽ€

that's it, that's the vibe. it configures TX EQ settings. slay.


✨ SYNOPSIS ✨

int ufshcd_config_tx_eq_settings (struct ufs_hba *hba , struct
       ufs_pa_layer_attr *pwr_mode , bool force_tx_eqtr );

look at that signature, it's honestly iconic πŸ”₯ three args, one int return, no cap.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hba β€” per adapter instance. like, the one adapter you're working on, your main character ✨
  • pwr_mode β€” target power mode containing gear and rate information. it literally carries the gear + rate info, iykyk πŸ‘‘
  • force_tx_eqtr β€” execute the TX EQTR procedure. it's a bool, so it's giving "yes do the thing / no don't" 🌈

πŸ’– DESCRIPTION πŸ’–

This function finds and sets the TX Equalization settings for the given target power mode. literally that's the whole job and it ate πŸ’…

Returns 0 on success, error code otherwise. so like, check your return value bestie, fr fr πŸ™ˆ


🌟 SEE ALSO 🌟

Kernel file ./drivers/ufs/core/ufs-txeq.c β€” go read it, it's the source of truth 🫢

and then the whole friend group, in order:

that's the whole crew and yes they all have (9) after them, we don't abbreviate in this house πŸ’€

ok real talk though β€” no warnings, no bugs, no deprecated nonsense on this one. it's a clean little function. just don't forget to actually check that return code, bestie 😭

kisses and see-you-laters, this page lives in ./drivers/ufs/core, dated October 2026, and it's still filed under ufshcd_confi..._eq_settings(9) because apparently we're still abbreviating it πŸ’œβœ¨

πŸ“¦ where this page comes from