linux_dsm_epyc7002/drivers/s390/crypto
Harald Freudenberger bc4b295e87 s390/ap: introduce new ap function ap_get_qdev()
Provide a new interface function to be used by the ap drivers:
  struct ap_queue *ap_get_qdev(ap_qid_t qid);
Returns ptr to the struct ap_queue device or NULL if there
was no ap_queue device with this qid found. When something is
found, the reference count of the embedded device is increased.
So the caller has to decrease the reference count after use
with a call to put_device(&aq->ap_dev.device).

With this patch also the ap_card_list is removed from the
ap core code and a new hashtable is introduced which stores
hnodes of all the ap queues known to the ap bus.

The hashtable approach and a first implementation of this
interface comes from a previous patch from
Anthony Krowiak and an idea from Halil Pasic.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Suggested-by: Tony Krowiak <akrowiak@linux.ibm.com>
Suggested-by: Halil Pasic <pasic@linux.ibm.com>
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
2020-05-20 10:22:51 +02:00
..
ap_bus.c s390/ap: introduce new ap function ap_get_qdev() 2020-05-20 10:22:51 +02:00
ap_bus.h s390/ap: introduce new ap function ap_get_qdev() 2020-05-20 10:22:51 +02:00
ap_card.c s390/ap: introduce new ap function ap_get_qdev() 2020-05-20 10:22:51 +02:00
ap_debug.h s390/zcrypt: Make ap init functions static. 2018-04-10 07:39:01 +02:00
ap_queue.c s390/ap: introduce new ap function ap_get_qdev() 2020-05-20 10:22:51 +02:00
Makefile s390/zcrypt: add new low level ep11 functions support file 2020-01-30 13:07:55 +01:00
pkey_api.c s390: Replace zero-length array with flexible-array member 2020-02-27 16:02:21 +01:00
vfio_ap_drv.c s390/zcrypt: CEX7S exploitation support 2019-09-19 12:56:06 +02:00
vfio_ap_ops.c s390/vfio: use fallthrough; 2020-03-25 12:39:38 +01:00
vfio_ap_private.h s390: ap: implement PAPQ AQIC interception in kernel 2019-07-02 16:00:28 +02:00
zcrypt_api.c s390/zcrypt: fix card and queue total counter wrap 2020-02-10 12:49:35 +01:00
zcrypt_api.h s390/zcrypt: ep11 structs rework, export zcrypt_send_ep11_cprb 2020-01-30 13:07:55 +01:00
zcrypt_card.c s390/zcrypt: replace snprintf/sprintf with scnprintf 2020-03-23 13:41:54 +01:00
zcrypt_cca_key.h s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_ccamisc.c s390/zcrypt: use kvmalloc instead of kmalloc for 256k alloc 2020-03-27 10:22:47 +01:00
zcrypt_ccamisc.h s390: Replace zero-length array with flexible-array member 2020-02-27 16:02:21 +01:00
zcrypt_cex2a.c s390/ap: remove power management code from ap bus and drivers 2020-03-27 10:22:47 +01:00
zcrypt_cex2a.h s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_cex2c.c s390/ap: remove power management code from ap bus and drivers 2020-03-27 10:22:47 +01:00
zcrypt_cex2c.h s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_cex4.c s390/ap: remove power management code from ap bus and drivers 2020-03-27 10:22:47 +01: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_ep11misc.c s390 updates for the 5.7 merge window 2020-04-04 09:45:50 -07:00
zcrypt_ep11misc.h s390/pkey/zcrypt: Support EP11 AES secure keys 2020-01-30 13:07:56 +01:00
zcrypt_error.h s390/zcrypt: handle new reply code FILTERED_BY_HYPERVISOR 2019-11-30 10:52:44 +01:00
zcrypt_msgtype6.c s390/zcrypt: use fallthrough; 2020-03-25 12:39:37 +01:00
zcrypt_msgtype6.h s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_msgtype50.c s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_msgtype50.h s390/zcrypt: zcrypt device driver cleanup 2018-10-09 11:21:35 +02:00
zcrypt_queue.c s390/zcrypt: replace snprintf/sprintf with scnprintf 2020-03-23 13:41:54 +01:00