xvip_clr_or_set(9)
π xvip_clr_or_set(9) β Kernel API Manual π
πΈ NAME πΈ
xvip_clr_or_set β Clear or set the register with a bitmask. that's the whole vibe bestie, no cap β¨
β¨ SYNOPSIS β¨
void xvip_clr_or_set (struct xvip_device *xvip , u32 addr , u32 mask ,
bool set );
okay so the function is void, and it takes those four things. signature stays exactly like that, lowercase void and all π
π ARGUMENTS π
xvipβ Xilinx Video IP device. the main character struct, literally π«Άaddrβ address of register. where the drama happens πmaskβ bitmask to be set or cleared. the bits we're messing with π§setβ boolean flag indicating whether to set or clear. the true/false plot twist π
π¦ DESCRIPTION π¦
Clear or set the register at address addr with a bitmask mask, depending on the boolean flag set. When the flag set is true, the bitmask is set in the register; otherwise, the bitmask is cleared from the register when the flag set is false. that's it, that's the whole bit-flipping moment π
Fox example β yes, "Fox" with an x, keeping it exactly as the page says, iykyk π¦ β this function can be used to set a control with a boolean value requested by users. If the caller knows whether to set or clear in the first place, the caller should call xvip_clr or xvip_set directly instead of using this function. okay so if you already know the vibe, skip the middleman, periodt β¨
π SEE ALSO π
- Kernel file
./drivers/media/platform/xilinx/xilinx-vip.cβ the source file, go peek bestie π xvip_get_format_by_code(9)xvip_get_format_by_fourcc(9)xvip_of_get_format(9)xvip_set_format_size(9)xvip_clr_and_set(9)xvip_enum_mbus_code(9)xvip_enum_frame_size(9)
that's the whole friend group right there, all linked and slaying π«Ά
made with love from ./drivers/media/platform/xilinx, October 2026 β mwah πβ¨
π¦ 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