cy8c95x0_regmap_write_bits(9)
๐ธ cy8c95x0_regmap_write_bits ๐ธ
okay so this is a page from the Kernel API Manual, and bestie, we are about to become so fluent in writing bits to a register through the regmap cache. it's giving pinctrl excellence. let's go ๐
โจ NAME โจ
cy8c95x0_regmap_write_bits โ writes a register using the regmap cache ๐ฅ
๐ฆ SYNOPSIS ๐ฆ
int cy8c95x0_regmap_write_bits (struct cy8c95x0_pinctrl *chip , unsigned
int reg , unsigned int port , unsigned int mask , unsigned int val );
like, yes, that's the whole signature, and yes, you're gonna read it twice. that's normal. ๐ญ
๐ ARGUMENTS ๐
chipโ the pinctrl you're working on. your main character struct, honestly. ๐regโ the register you wanna write to. it can be a direct access register or a muxed register, both slay. MUST NOT be thePORTSELregister though โ that one is off-limits, no cap. ๐ซportโ the port for muxed registers, or for quick path direct access registers. otherwise it just sits there unused, vibing. ๐ชmaskโ the bitmask you're changing. the little stencil for your bits. ๐จvalโ the new value for that bitmask. the glow-up. โจ
๐ DESCRIPTION ๐
so this function is the one that handles register writes to the direct access registers and the muxed registers, and the whole time it's caching all the register accesses. internally it handles the correct state of the PORTSEL register and protects the access to muxed registers, so you don't have to think about it. it's literally doing the most so you don't have to. ๐ซถ
โ ๏ธ important bestie note: the caller must only use this function to change registers behind the PORTSEL mux. like, that's the rule. don't freestyle. ๐
๐ RETURN ๐
0 for a successful request โ iconic, we love a zero โ otherwise a corresponding error value. ๐ญ
๐ฎ SEE ALSO ๐ฎ
- Kernel file
./drivers/pinctrl/pinctrl-cy8c95x0.cstructcy8c95x0_pinctrl(9) cy8c95x0_regmap_update_bits(9)cy8c95x0_regmap_read_bits(9)
go read those too, iykyk. ๐
and that's the page, bestie!! ๐ source: ./drivers/pinctrl, dated October 2026 โ mwah, love that for us. ๐ see you in the next manpage. ๐งโโ๏ธ
๐ฆ 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