REG_FIELD_PREP16(9)
π REG_FIELD_PREP16(9) π
Okay bestie, welcome to the REG_FIELD_PREP16(9) page from the Kernel API Manual β we're doing u16 bitfield prep today and it's gonna be cute and correct. β¨
πΈ NAME πΈ
REG_FIELD_PREP16 β prepare a u16 bitfield value π
π οΈ SYNOPSIS π οΈ
REG_FIELD_PREP16 (__mask , __val );
π ARGUMENTS π
__maskβ the shifted mask that defines the field's length and position, iykyk π__valβ the value you're putting in the field π«Ά
π DESCRIPTION π
This is the local copy of FIELD_PREP16, bestie. Its whole vibe is:
- generate an integer constant expression β¨
- force
u8π - stay consistent with
REG_FIELD_GET16,REG_BIT16andREG_GENMASK16π
No cap, that's literally the description. π¦
π RETURN π
__val gets masked and shifted into the field defined by __mask. Slay. π
π SEE ALSO π
Kernel file ./include/drm/intel/reg_bits.h
REG_FIELD_PREP8(9)REG_FIELD_PREP(9)REG_FIELD_GET8(9)REG_FIELD_GET(9)REG_FIELD_GET64(9)REG_FIELD_MAX(9)
This page lives in ./include/drm/intel, and the date stamped on it is October 2026 β mwah, bye bestie! ππ
π¦ 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