linux/drivers/s390/crypto
Harald Freudenberger 3d8f60d38e s390/zcrypt: hex string mask improvements for apmask and aqmask.
The sysfs attributes /sys/bus/ap/apmask and /sys/bus/ap/aqmask
and the kernel command line arguments ap.apm and ap.aqm get
an improvement of the value parsing with this patch:

The mask values are bitmaps in big endian order starting with bit 0.
So adapter number 0 is the leftmost bit, mask is 0x8000... The sysfs
attributes and the kernel command line accept 2 different formats:
 - Absolute hex string starting with 0x like "0x12345678" does set
   the mask starting from left to right. If the given string is shorter
   than the mask it is padded with 0s on the right. If the string is
   longer than the mask an error comes back (EINVAL).
 - Relative format - a concatenation (done with ',') of the terms
   +<bitnr>[-<bitnr>] or -<bitnr>[-<bitnr>]. <bitnr> may be any
   valid number (hex, decimal or octal) in the range 0...255.
   Here are some examples:
     "+0-15,+32,-128,-0xFF"
     "-0-255,+1-16,+0x128"

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2018-08-21 15:56:45 +02:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ap_bus.c s390/zcrypt: hex string mask improvements for apmask and aqmask. 2018-08-21 15:56:45 +02:00
ap_bus.h s390/zcrypt: AP bus support for alternate driver(s) 2018-08-20 16:02:12 +02:00
ap_card.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
ap_debug.h s390/zcrypt: Make ap init functions static. 2018-04-10 07:39:01 +02:00
ap_queue.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
pkey_api.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_api.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_api.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_card.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_cca_key.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_cex2a.c s390/zcrypt: AP bus support for alternate driver(s) 2018-08-20 16:02:12 +02:00
zcrypt_cex2a.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_cex4.c s390/zcrypt: AP bus support for alternate driver(s) 2018-08-20 16:02:12 +02:00
zcrypt_cex4.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zcrypt_debug.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
zcrypt_error.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype6.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype6.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype50.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_msgtype50.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_pcixcc.c s390/zcrypt: AP bus support for alternate driver(s) 2018-08-20 16:02:12 +02:00
zcrypt_pcixcc.h s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00
zcrypt_queue.c s390/zcrypt: code beautify 2018-08-20 16:02:11 +02:00