__phy_package_write_mmd(9)
π NAME π
__phy_package_write_mmd β bestie, this is the "write an MMD register, but relative to the PHY package base addr" girlie β¨
π¦ SYNOPSIS π¦
int __phy_package_write_mmd (struct phy_device *phydev , unsigned int
addr_offset , int devad , u32 regnum , u16 val );
π ARGUMENTS π
phydevβ thephy_devicestruct, aka the whole main character of this operation πaddr_offsetβ the offset that gets added to the PHY packagebase_addr, lowkey the glue holding this together π«Άdevadβ the MMD you're writing to, pick your fave πregnumβ the register on that MMD you're writing to, like the exact door number πͺvalβ the value you're writing intoregnum, the actual gift inside the box π
πΈ DESCRIPTION πΈ
okay so this is a convenience helper for writing a register of an MMD on a given PHY using the PHY package base address. The base address is literally added to the addr_offset value β no cap, that's the whole trick β¨
Same calling rules as for __phy_write β fr fr, don't reinvent the rules, just follow hers π
π NOTE π
It's assumed that the entire PHY package is either C22 or C45. Not a mix, not a vibe mash-up β pick one, periodt π«π
π₯ SEE ALSO π₯
Kernel file ./drivers/net/phy/phy_package.c
struct phy_package_shared(9)phy_package_lock(9)phy_package_unlock(9)__phy_package_read_mmd(9)phy_package_join(9)of_phy_package_join(9)phy_package_leave(9)devm_phy_package_join(9)devm_of_phy_package_join(9)
go read the whole friend group, they all slay in their own way π§π
k bye bestie, this page lives in ./drivers/net/phy, stamped October 2026, and it's literally called __phy_package_write_mmd(9) β iykyk πβ¨
π¦ 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