s390/zcrypt: remove duplicate low level functions
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 26 Jun 2015 13:40:41 +0000 (15:40 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 14 Oct 2015 12:32:19 +0000 (14:32 +0200)
commit6acbe21f473f5cff8a11546f090967459b63ab3e
treeb4014950cbaa834720efebc2d5a720ebf9cd2687
parent29b0a8250ba63beffba4fe3a42fa75dddf4bd06a
s390/zcrypt: remove duplicate low level functions

ap_test_queue, ap_query_facilities, __ap_query_functions all use
the same PQAP(TAPQ) command. Consolidate the three into a single
ap_test_queue function that returns the AP status and the 64-bit
result. The exception table entry for PQAP(TAPQ) can be avoided
if the T bit for the APFT facility is set only if test_facility(15)
indicated that the facility is present.

Integrate ap_query_function into ap_query queue to avoid calling
PQAP(TAPQ) twice.

Reviewed-by: Ingo Tuchscherer <ingo.tuchscherer@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/crypto/ap_bus.c
drivers/s390/crypto/ap_bus.h