ice_clear_phy_tstamp_e82x(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_clear_phy_tstamp_e82x β€” Kernel API Manual, section 9 πŸŽ€

okay so bestie, this one lives in section 9 of the Kernel API Manual, and it's literally called ice_clear_phy_tstamp_e82x. Yes the name is a mouthful, yes it slays anyway. Let's get into it πŸ’–


✨ NAME ✨

ice_clear_phy_tstamp_e82x β€” clear a timestamp from the quad block 🧚


🌸 SYNOPSIS 🌸

int ice_clear_phy_tstamp_e82x (struct ice_hw *hw , u8 quad , u8 idx );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • hw β€” pointer to the HW struct, the main character of literally every ice function tbh
  • quad β€” the quad to read from
  • idx β€” the timestamp index to reset, your little target 🎯

πŸ’œ DESCRIPTION πŸ’œ

So what we're doing here is reading the timestamp out of the quad, and the whole point of that read is to clear its timestamp status bit β€” the one living in the PHY quad block that's shared between the internal PHYs of the E822 devices. Shared. Like a group chat. One read and the status bit is gone πŸ’€

Now, huge note: unlike E810, software cannot directly write to the quad memory bank registers. No cap, it's just not a thing you get to do. E822 relies on the ice_get_phy_tx_tstamp_ready function to figure out which timestamps are actually valid. Reading a timestamp auto-clears the valid bit β€” the read is the clear, it's giving two-for-one ✨

And if you want to directly clear the contents of the timestamp block entirely β€” like, discarding all the timestamp data at once, no survivors β€” software should instead use ice_ptp_reset_ts_memory_quad_e82x. Different function, different vibe, don't mix them up πŸ™ˆ
Also, this function should only be called on an idx whose bit is set according to ice_get_phy_tx_tstamp_ready. Check first, then call. That's the rule, periodt πŸ‘‘

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/net/ethernet/intel/ice/ice_ptp_hw.c β€” that's where the whole squad lives 🏠

okay the friend group is massive, buckle up:


and that's the whole page bestie, you ate that πŸ’…

mwah, this gem dropped from ./drivers/net/ethernet/intel/ice back in October 2026 β€” go read the source, it's iconic πŸ«ΆπŸ’–

πŸ“¦ where this page comes from