crypto: ccp - Refactor code to enable checks for queue space.
authorGary R Hook <gary.hook@amd.com>
Wed, 27 Jul 2016 00:10:13 +0000 (19:10 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 9 Aug 2016 10:47:10 +0000 (18:47 +0800)
commitbb4e89b34d1bf46156b7e880a0f34205fb7ce2a5
tree1fed02203f6f76373e9e88bad677295de5c26745
parent8256e683113e659d9bf6bffdd227eeb1881ae9a7
crypto: ccp - Refactor code to enable checks for queue space.

Available queue space is used to decide (by counting free slots)
if we have to put a command on hold or if it can be sent
to the engine immediately.

Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dev-v3.c
drivers/crypto/ccp/ccp-dev.h
drivers/crypto/ccp/ccp-ops.c