STRUCT OCS_HCU_RCTX(9)
π struct ocs_hcu_rctx(9) π
okay so bestie, this is the Kernel API Manual page for struct ocs_hcu_rctx, and itβs literally the context for the request. No cap.
β¨ NAME β¨
struct ocs_hcu_rctx β Context for the request.
π¦ SYNOPSIS π¦
struct ocs_hcu_rctx {
struct ocs_hcu_dev *hcu_dev;
u32 flags;
enum ocs_hcu_algo algo;
size_t blk_sz;
size_t dig_sz;
struct ocs_hcu_dma_list *dma_list;
struct ocs_hcu_hash_ctx hash_ctx;
u8 buffer[2 * SHA512_BLOCK_SIZE];
size_t buf_cnt;
dma_addr_t buf_dma_addr;
size_t buf_dma_count;
struct scatterlist *sg;
unsigned int sg_data_total;
unsigned int sg_data_offset;
unsigned int sg_dma_nents;
unsigned int nents;
};
π Members π
hcu_devβ the OCS HCU device thatβs gonna be used to service the request πflagsβ flags that keep track of the request status, bestie β¨algoβ the algorithm to use for the request, periodt π₯blk_szβ block size of the transformation / request πΈdig_szβ digest size of the transformation / request π¦dma_listβ OCS DMA linked list, iconic πhash_ctxβ OCS HCU hashing context πbufferβ buffer to store: partial block of data and SW HMAC artifacts (ipad,opad, etc.) πbuf_cntβ number of bytes currently stored in the buffer πbuf_dma_addrβ the DMA address ofbuffer(when mapped) β¨buf_dma_countβ the number of bytes inbuffercurrently DMA-mapped πsgβ head of the scatterlist entries containing data π«Άsg_data_totalβ total data in the SG list at any time π«sg_data_offsetβ offset into the data of the current individual SG node π§sg_dma_nentsβ number of sg entries mapped indma_listπnentsβ number of entries in the scatterlist β
π SEE ALSO π
- Kernel file
./drivers/crypto/intel/keembay/keembay-ocs-hcu-core.cβ also peepstruct ocs_hcu_ctx(9),struct ocs_hcu_drv(9)iykyk π
Cute sign-off: the footerβs source/version bit is ./drivers/crypto/intel/keembay, the date is October 2026, and the title tag is struct ocs_hcu_rctx(9) β slay and goodbye, bestie π
β¨
π¦ 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