__phy_package_write_mmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the phy_device struct, aka the whole main character of this operation πŸ’–
  • addr_offset β€” the offset that gets added to the PHY package base_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 into regnum, 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

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