set_dout_sram(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– set_dout_sram β€” like, the manual page πŸ’–

okay so bestie, welcome to the set_dout_sram(9) page, part of the Kernel API Manual ✨ β€” yes you read that right, we're in the kernel API docs now, put your hair up, we're going in.


🌸 NAME 🌸

set_dout_sram β€” sets the DOUT field of a HW descriptor to SRAM mode. that's it, that's the whole vibe. iconic honestly πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void set_dout_sram (struct cc_hw_desc *pdesc , u32 addr , u32 size );

like β€” it returns void, so don't be out here waiting for a return value. she gives nothing and she's fine with that 😌


πŸŽ€ ARGUMENTS πŸŽ€

  • pdesc β€” pointer to the HW descriptor struct. this is your main character, she's the one getting modified 🫢
  • addr β€” the DOUT address. literally where the data's headed πŸ“
  • size β€” data size, in bytes. count them correctly bestie, no cap πŸ”₯

⭐ NOTE ⭐

no need to check SRAM alignment here, fr fr β€” because host requests don't use SRAM, and the adaptor will enforce the alignment checks itself. so you can just chill and let the adaptor handle it πŸ’†β€β™€οΈβœ¨

like, genuinely do not add an alignment check. that's not your job here. the adaptor has it.

🌈 SEE ALSO 🌈

so there's a whole friend group here β€” the kernel file ./drivers/crypto/ccree/cc_hw_queue_defs.h, plus these besties:

like, go read them all, iykyk πŸ‘‘


πŸ’œ okay that's the page!! it lives under ./drivers/crypto/ccree and this version is dated October 2026, with the manual name up top being set_dout_sram(9). mwah, go forth and set those DOUT fields πŸ§šβ€β™€οΈπŸ’–
πŸ“¦ where this page comes from