hisi_acc_sg...ap_to_hw_sgl(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hisi_acc_sg_buf_map_to_hw_sgl β€” the Kernel API Manual page, bestie edition ✨

okay so this is a page out of the Linux Kernel API Manual (that's the manual name, iykyk), and it's literally all about one function: hisi_acc_sg_buf_map_to_hw_sgl. Say that five times fast, I dare you 😭


πŸŽ€ NAME πŸŽ€

hisi_acc_sg_buf_map_to_hw_sgl β€” it maps a scatterlist to a hw sgl. That's it, that's the whole job. Slay. πŸ’…


✨ SYNOPSIS ✨

struct hisi_acc_hw_sgl * hisi_acc_sg_buf_map_to_hw_sgl (struct device
*dev , struct scatterlist *sgl , struct hisi_acc_sgl_pool *pool , u32
index , dma_addr_t *hw_sgl_dma , enum dma_data_direction dir );

like… look at that signature. it's giving "six arguments and every single one of them matters" energy πŸ‘‘


🫢 ARGUMENTS 🫢

  • dev β€” the device which hw sgl belongs to. the main character, fr fr πŸ’–
  • sgl β€” the scatterlist which will be mapped to hw sgl. it's getting a glow-up ✨
  • pool β€” the pool which hw sgl memory will be allocated in. this is where the memory lives, no cap 🏠
  • index β€” the index of hisi_acc_hw_sgl in pool. you gotta know your place bestie πŸ’…
  • hw_sgl_dma β€” the dma address of allocated hw sgl. this is the output, the whole point, the moment πŸ”₯
  • dir β€” DMA direction. which way are we going? yes. 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜•: this function builds hw sgl according to the input sgl. then β€” and this is the good part β€” the user can use hw_sgl_dma as src/dst in its BD. chef's kiss, ate, no crumbs πŸ“

and the plot twist: it only supports single hw sgl currently. that's it. one. singular. a solo act. 🧚 not me finding that lowkey iconic

ngl bestie, don't go expecting multiples here β€” single hw sgl is the whole vibe check πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


and that's the page!! πŸŽ€ this absolute gem comes to you from ./drivers/crypto/hisilicon (the source/version bestie), dated October 2026 β€” yes, she's from the future, and she's still slaying. periodt. πŸ’œπŸ¦‹βœ¨πŸŒΈ

πŸ“¦ where this page comes from