stmmac_mdio_format_addr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… stmmac_mdio_format_addr(9)

okay so bestie, this is a page straight out of the Kernel API Manual β€” like, kernel-doc but make it cute ✨ it's stmmac_mdio_format_addr, and it does exactly one lil job, but it does it flawlessly. no cap.


🌸 NAME 🌸

stmmac_mdio_format_addr β€” format the address register. that's it. that's the whole vibe. she formats, she slays, she goes home πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

u32 stmmac_mdio_format_addr (struct stmmac_priv *priv , unsigned int pa
, unsigned int gr );

so you hand her three things and she hands you back a u32. main character energy fr fr πŸ‘‘


πŸ’– ARGUMENTS πŸ’–

  • priv β€” a struct stmmac_priv pointer. the whole private context situation, she needs it, don't ask questions 🫢
  • pa β€” the 5-bit MDIO package address. yes, 5-bit. she's precise like that ✨
  • gr β€” the 5-bit MDIO register address when you're in C22 mode, or the MDIO device address when you're in C45 mode. lowkey context-dependent, iykyk πŸ’…
side note bestie: those 5-bit limits are literally in the original, so don't be out here passing her a 9-bit situation and expecting a happy ending 😭

⭐ RETURN ⭐

the formatted address register. that's what comes back. a u32 of pure formatted-address goodness 🌈


πŸ‘‘ SEE ALSO πŸ‘‘

like a whole friend group of MDIO functions and she's the one who formats the address for all of them. obsessed 🧚


okay bye bestie, this page came from ./drivers/net/ethernet/stmicro/... (the stmmac_mdio.c file up there, you already know), October 2026 edition, served fresh in the Kernel API Manual πŸ“πŸ’€βœ¨ periodt.

πŸ“¦ where this page comes from