diff options
author | Gary R Hook <gary.hook@amd.com> | 2016-07-26 19:09:46 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-08-09 06:47:04 -0400 |
commit | fa242e80c7fb581eddbe636186020786f2e117da (patch) | |
tree | 84396152789557b23a6d74c0e75fcd99eed94cd0 | |
parent | c5736a4067ad4c59d1447762172def7f27fe869a (diff) |
crypto: ccp - Fix non-conforming comment style
Adhere to the cryptodev comment convention.
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/crypto/ccp/ccp-dev.h | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/drivers/crypto/ccp/ccp-dev.h b/drivers/crypto/ccp/ccp-dev.h index bd41ffceff82..5fbee638c9ba 100644 --- a/drivers/crypto/ccp/ccp-dev.h +++ b/drivers/crypto/ccp/ccp-dev.h | |||
@@ -253,16 +253,14 @@ struct ccp_device { | |||
253 | 253 | ||
254 | struct device *dev; | 254 | struct device *dev; |
255 | 255 | ||
256 | /* | 256 | /* Bus specific device information |
257 | * Bus specific device information | ||
258 | */ | 257 | */ |
259 | void *dev_specific; | 258 | void *dev_specific; |
260 | int (*get_irq)(struct ccp_device *ccp); | 259 | int (*get_irq)(struct ccp_device *ccp); |
261 | void (*free_irq)(struct ccp_device *ccp); | 260 | void (*free_irq)(struct ccp_device *ccp); |
262 | unsigned int irq; | 261 | unsigned int irq; |
263 | 262 | ||
264 | /* | 263 | /* I/O area used for device communication. The register mapping |
265 | * I/O area used for device communication. The register mapping | ||
266 | * starts at an offset into the mapped bar. | 264 | * starts at an offset into the mapped bar. |
267 | * The CMD_REQx registers and the Delete_Cmd_Queue_Job register | 265 | * The CMD_REQx registers and the Delete_Cmd_Queue_Job register |
268 | * need to be protected while a command queue thread is accessing | 266 | * need to be protected while a command queue thread is accessing |
@@ -272,8 +270,7 @@ struct ccp_device { | |||
272 | void __iomem *io_map; | 270 | void __iomem *io_map; |
273 | void __iomem *io_regs; | 271 | void __iomem *io_regs; |
274 | 272 | ||
275 | /* | 273 | /* Master lists that all cmds are queued on. Because there can be |
276 | * Master lists that all cmds are queued on. Because there can be | ||
277 | * more than one CCP command queue that can process a cmd a separate | 274 | * more than one CCP command queue that can process a cmd a separate |
278 | * backlog list is neeeded so that the backlog completion call | 275 | * backlog list is neeeded so that the backlog completion call |
279 | * completes before the cmd is available for execution. | 276 | * completes before the cmd is available for execution. |
@@ -283,34 +280,29 @@ struct ccp_device { | |||
283 | struct list_head cmd; | 280 | struct list_head cmd; |
284 | struct list_head backlog; | 281 | struct list_head backlog; |
285 | 282 | ||
286 | /* | 283 | /* The command queues. These represent the queues available on the |
287 | * The command queues. These represent the queues available on the | ||
288 | * CCP that are available for processing cmds | 284 | * CCP that are available for processing cmds |
289 | */ | 285 | */ |
290 | struct ccp_cmd_queue cmd_q[MAX_HW_QUEUES]; | 286 | struct ccp_cmd_queue cmd_q[MAX_HW_QUEUES]; |
291 | unsigned int cmd_q_count; | 287 | unsigned int cmd_q_count; |
292 | 288 | ||
293 | /* | 289 | /* Support for the CCP True RNG |
294 | * Support for the CCP True RNG | ||
295 | */ | 290 | */ |
296 | struct hwrng hwrng; | 291 | struct hwrng hwrng; |
297 | unsigned int hwrng_retries; | 292 | unsigned int hwrng_retries; |
298 | 293 | ||
299 | /* | 294 | /* Support for the CCP DMA capabilities |
300 | * Support for the CCP DMA capabilities | ||
301 | */ | 295 | */ |
302 | struct dma_device dma_dev; | 296 | struct dma_device dma_dev; |
303 | struct ccp_dma_chan *ccp_dma_chan; | 297 | struct ccp_dma_chan *ccp_dma_chan; |
304 | struct kmem_cache *dma_cmd_cache; | 298 | struct kmem_cache *dma_cmd_cache; |
305 | struct kmem_cache *dma_desc_cache; | 299 | struct kmem_cache *dma_desc_cache; |
306 | 300 | ||
307 | /* | 301 | /* A counter used to generate job-ids for cmds submitted to the CCP |
308 | * A counter used to generate job-ids for cmds submitted to the CCP | ||
309 | */ | 302 | */ |
310 | atomic_t current_id ____cacheline_aligned; | 303 | atomic_t current_id ____cacheline_aligned; |
311 | 304 | ||
312 | /* | 305 | /* The CCP uses key storage blocks (KSB) to maintain context for certain |
313 | * The CCP uses key storage blocks (KSB) to maintain context for certain | ||
314 | * operations. To prevent multiple cmds from using the same KSB range | 306 | * operations. To prevent multiple cmds from using the same KSB range |
315 | * a command queue reserves a KSB range for the duration of the cmd. | 307 | * a command queue reserves a KSB range for the duration of the cmd. |
316 | * Each queue, will however, reserve 2 KSB blocks for operations that | 308 | * Each queue, will however, reserve 2 KSB blocks for operations that |