Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

crypto: s5p-sss - Document the struct s5p_aes_dev

Add kernel-doc to s5p_aes_dev structure.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Krzysztof Kozlowski and committed by
Herbert Xu
106d7334 fb514b2d

+26 -1
+26 -1
drivers/crypto/s5p-sss.c
··· 170 170 int keylen; 171 171 }; 172 172 173 + /** 174 + * struct s5p_aes_dev - Crypto device state container 175 + * @dev: Associated device 176 + * @clk: Clock for accessing hardware 177 + * @ioaddr: Mapped IO memory region 178 + * @aes_ioaddr: Per-varian offset for AES block IO memory 179 + * @irq_fc: Feed control interrupt line 180 + * @req: Crypto request currently handled by the device 181 + * @ctx: Configuration for currently handled crypto request 182 + * @sg_src: Scatter list with source data for currently handled block 183 + * in device. This is DMA-mapped into device. 184 + * @sg_dst: Scatter list with destination data for currently handled block 185 + * in device. This is DMA-mapped into device. 186 + * @sg_src_cpy: In case of unaligned access, copied scatter list 187 + * with source data. 188 + * @sg_dst_cpy: In case of unaligned access, copied scatter list 189 + * with destination data. 190 + * @tasklet: New request scheduling jib 191 + * @queue: Crypto queue 192 + * @busy: Indicates whether the device is currently handling some request 193 + * thus it uses some of the fields from this state, like: 194 + * req, ctx, sg_src/dst (and copies). This essentially 195 + * protects against concurrent access to these fields. 196 + * @lock: Lock for protecting both access to device hardware registers 197 + * and fields related to current request (including the busy field). 198 + */ 173 199 struct s5p_aes_dev { 174 200 struct device *dev; 175 201 struct clk *clk; ··· 208 182 struct scatterlist *sg_src; 209 183 struct scatterlist *sg_dst; 210 184 211 - /* In case of unaligned access: */ 212 185 struct scatterlist *sg_src_cpy; 213 186 struct scatterlist *sg_dst_cpy; 214 187