cs_dsp_mock_...th_registers(9)
π cs_dsp_mock_reg_block_length_registers β Kernel API Manual (9)
okay so bestie, buckle up, we're in the Kernel API Manual today and this one's a lil function from ./drivers/firmware/cirrus/test and honestly? it's giving "small but mighty." let's get into it π«Ά
β¨ NAME β¨
cs_dsp_mock_reg_block_length_registers β literally just tells you the number of registers in an access block. that's it. that's the whole job. iconic behavior tbh π
πΈ SYNOPSIS πΈ
unsigned int cs_dsp_mock_reg_block_length_registers (struct cs_dsp_test
*priv , int mem_type );
like, she's an unsigned int returning girlie and she takes two args. no cap. β¨
π¦ ARGUMENTS π¦
privβ a pointer tostruct cs_dsp_test. yes bestie, the whole struct. she needs it. πmem_typeβ the memory region type. which region are we talking about? this is how you tell her. π§
π RETURN π
she returns the total number of registers forming the smallest bus access size π« and here's the tea on how that breaks down:
- for unpacked memory π it's the number of registers containing one DSP word
- for packed memory π it's the number of registers in one packed access block
so like, same function, two vibes depending on your memory type. lowkey elegant ngl π
π₯ SEE ALSO π₯
go read these next, they're all in the same friend group fr fr:
- Kernel file
./drivers/firmware/cirrus/test/cs_dsp_mock_mem_maps.cπ cs_dsp_mock_size_of_region(9)cs_dsp_mock_base_addr_for_mem(9)cs_dsp_mock_reg_addr_inc_per_unpacked_word(9)cs_dsp_mock_reg_block_length_bytes(9)cs_dsp_mock_reg_block_length_dsp_words(9)cs_dsp_mock_has_zm(9)cs_dsp_mock_packed_to_unpacked_mem_type(9)cs_dsp_mock_num_dsp_words_to_num_packed_regs(9)cs_dsp_mock_xm_header_get_alg_base_in_words(9)cs_dsp_mock_xm_header_get_fw_version(9)cs_dsp_mock_xm_header_drop_from_regmap_cache(9)cs_dsp_mock_xm_header_write_to_regmap(9)cs_dsp_create_mock_xm_header(9)
ok that's the whole page bestie, go touch some registers πβ¨
mwah π this lil cutie lives in ./drivers/firmware/cirrus/test, dated October 2026, in the Kernel API Manual β and the title up top got a lil abbreviated as cs_dsp_mock_...th_registers(9) but you knew that already, iykyk ππ
π¦ 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