xvip_clr_and_set(9)
π xvip_clr_and_set(9) β the "Kernel API Manual" girlie is here
okay so bestie, this one is from the Kernel API Manual and it's literally called xvip_clr_and_set β and yes, she does exactly what her name says: clears some bits, then sets some bits. no cap. π
β¨ NAME β¨
xvip_clr_and_set β clear and set the register with a bitmask π«Ά
πΈ SYNOPSIS πΈ
void xvip_clr_and_set (struct xvip_device *xvip , u32 addr , u32 clr ,
u32 set );
like, that's the whole signature. she takes four things and returns nothing (void, so don't @ her for a return value π).
π ARGUMENTS π
xvipβ the Xilinx Video IP device. your main character struct, fr fr.addrβ the address of the register. like where the register lives, address-wise.clrβ the bitmask to be cleared. these bits are getting evicted πsetβ the bitmask to be set. these bits are moving in π
π₯ DESCRIPTION π₯
okay so the order matters and I need you to hear me: first she clears the bit(s) of mask clr in the register at address addr, and then β only after β she sets the bit(s) of mask set in the register. after. as in afterwards. the clear happens before the set, periodt. β¨
so it's clear first, set second. that's the vibe. that's the whole function.
π¦ SEE ALSO π¦
- Kernel file
./drivers/media/platform/xilinx/xilinx-vip.cβ go read the source, iykyk π xvip_get_format_by_code(9)xvip_get_format_by_fourcc(9)xvip_of_get_format(9)xvip_set_format_size(9)xvip_clr_or_set(9)β yes, her cousin, the or one πxvip_enum_mbus_code(9)xvip_enum_frame_size(9)
lowkey reminder bestie: those (9)s aren't decoration, that's the section number. go look them up fr fr π
okay that's the page!! mwah π this icon lives in ./drivers/media/platform/xilinx, dated October 2026 β go off, kernel docs, you ate that. πβπ
π¦ 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