set_din_sram(9)
π set_din_sram β Kernel API Manual β¨
okay so bestie, welcome to the set_din_sram(9) page, it's a little one but it ATE π it lives in the Kernel API Manual and it's literally about setting the DIN field of a HW descriptor to SRAM mode. that's the whole vibe. periodt.
πΈ NAME πΈ
set_din_sram β Set the DIN field of a HW descriptor to SRAM mode. no cap, that's it, that's the function π
β¨ SYNOPSIS β¨
void set_din_sram (struct cc_hw_desc *pdesc , u32 addr , u32 size );
look at her. void, so she gives nothing back (very main character of her honestly), and she takes three little arguments. slay π
π¦ ARGUMENTS π¦
pdescβ Pointer to HW descriptor struct. this is the descriptor you're messing with, give her a valid pointer fr fr π«Άaddrβ DIN address. the address goes here bestie πsizeβ Data size in bytes. how many bytes we're talking about πΈ
π NOTE π
No need to check SRAM alignment since host requests do not use SRAM and the adaptor will enforce alignment checks.
so likeβ¦ don't stress about alignment here π the host requests don't touch SRAM anyway, and the adaptor is gonna enforce those alignment checks for you. it's giving "not my job" and honestly? iconic π
π SEE ALSO π
Kernel file ./drivers/crypto/ccree/cc_hw_queue_defs.h
and the whole friend group, all these legends right here:
hw_desc_init(9)set_queue_last_ind_bit(9)set_din_type(9)set_din_no_dma(9)set_cpp_crypto_key(9)set_din_const(9)set_din_not_last_indication(9)set_dout_type(9)set_dout_dlli(9)set_dout_mlli(9)set_dout_no_dma(9)set_xor_val(9)set_xor_active(9)set_aes_not_hash_mode(9)set_aes_xor_crypto_key(9)set_dout_sram(9)set_xex_data_unit_size(9)set_multi2_num_rounds(9)set_flow_mode(9)set_cipher_mode(9)set_hash_cipher_mode(9)set_cipher_config0(9)set_cipher_config1(9)set_hw_crypto_key(9)set_bytes_swap(9)set_cmac_size0_mode(9)set_key_size(9)set_key_size_aes(9)set_key_size_des(9)set_setup_mode(9)set_cipher_do(9)
like, go read those too, they're all in their ccree era together π§ββοΈπ
and that's the page!! mwah π this lil corner of the kernel lives over in ./drivers/crypto/ccree and the version/date stamp on this beauty is October 2026 β catch you in the next manpage bestie, ily, bye!! πβ¨π¦
π¦ 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