XE_RTP_ACTIO...ELD_SET_FUNC(9)
π XE_RTP_ACTION_FIELD_SET_FUNC π
okay bestie, welcome to the Kernel API Manual β¨ β this one's a macro page, and honestly she's lowkey iconic once you get what she does. Sit down, hydrate, let's go π«Ά
π NAME π
XE_RTP_ACTION_FIELD_SET_FUNC β sets a bit range to the value that a function hands back. Literally it's giving "field set, but the value comes from a function" π
β¨ SYNOPSIS β¨
XE_RTP_ACTION_FIELD_SET_FUNC (reg_ , mask_bits_ , func_ , ... );
periodt, that's the whole call signature πΈ
π¦ ARGUMENTS π¦
reg_β the register. the actual register, no cap πmask_bits_β the mask of the bits you're changing inside that register, and together those bits form a field πfunc_β the function that returns the value you want to set in the field thatmask_bits_denotes. she's the main character here π...β extra fields you wanna override in thestruct xe_rtp_actionentry. sprinkle as needed π
π DESCRIPTION π
so this macro works exactly like XE_RTP_ACTION_FIELD_SET β same energy β except the field value gets evaluated at the time the RTP table is processed β
and like, the important bit: func_ will only be called a single time, when the RTP table is being processed π once. that's it. after processing, the value in the reg_sr entry is fixed and will not be re-evaluated. so don't be out here expecting her to refresh herself, because she will not π§
fr fr: one call, one time, then the value is locked in forever. plan accordingly bestie π
πΈ SEE ALSO πΈ
everything else in the family, all linked up π and also the kernel file ./drivers/gpu/drm/xe/xe_rtp.h β that's where she lives π‘
XE_RTP_RULE_PLATFORM(9)XE_RTP_RULE_SUBPLATFORM(9)XE_RTP_RULE_PLATFORM_STEP(9)XE_RTP_RULE_GRAPHICS_STEP(9)XE_RTP_RULE_MEDIA_STEP(9)XE_RTP_RULE_ENGINE_CLASS(9)XE_RTP_RULE_FUNC(9)XE_RTP_RULE_GRAPHICS_VERSION(9)XE_RTP_RULE_GRAPHICS_VERSION_RANGE(9)XE_RTP_RULE_GRAPHICS_VERSION_ANY_GT(9)XE_RTP_RULE_MEDIA_VERSION(9)XE_RTP_RULE_MEDIA_VERSION_RANGE(9)XE_RTP_RULE_MEDIA_VERSION_ANY_GT(9)XE_RTP_RULE_IS_INTEGRATED(9)XE_RTP_RULE_IS_DISCRETE(9)XE_RTP_RULE_OR(9)XE_RTP_ACTION_WR(9)XE_RTP_ACTION_SET(9)XE_RTP_ACTION_CLR(9)XE_RTP_ACTION_FIELD_SET(9)XE_RTP_ACTION_WHITELIST(9)XE_RTP_NAME(9)XE_RTP_ENTRY_FLAG(9)XE_RTP_ACTION_FLAG(9)XE_RTP_RULES(9)XE_RTP_ACTIONS(9)xe_rtp_match_always(9)xe_rtp_match_even_instance(9)xe_rtp_match_has_flat_ccs(9)xe_rtp_match_has_msix(9)
and that's the whole page, bestie π she's short but she ate. mwah π
π β¨ π π¦ πΈ π π«Ά
sign-off szn π§π: this lil masterpiece comes from ./drivers/gpu/drm/xe, dated October 2026, and honestly? slay. hope this helped, ily, go read the rest of the RTP docs πβ
π¦ 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