Home
last modified time | relevance | path

Searched refs:matrix_dev (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/s390/crypto/
H A Dvfio_ap_drv.c26 struct ap_matrix_dev *matrix_dev; variable
39 ATTRIBUTE_GROUPS(matrix_dev);
69 struct ap_matrix_dev *matrix_dev; in vfio_ap_matrix_dev_release() local
71 matrix_dev = container_of(dev, struct ap_matrix_dev, device); in vfio_ap_matrix_dev_release()
72 kfree(matrix_dev); in vfio_ap_matrix_dev_release()
99 matrix_dev = kzalloc(sizeof(*matrix_dev), GFP_KERNEL); in vfio_ap_matrix_dev_create()
100 if (!matrix_dev) { in vfio_ap_matrix_dev_create()
107 ret = ap_qci(&matrix_dev->info); in vfio_ap_matrix_dev_create()
112 mutex_init(&matrix_dev->mdevs_lock); in vfio_ap_matrix_dev_create()
113 INIT_LIST_HEAD(&matrix_dev->mdev_list); in vfio_ap_matrix_dev_create()
[all …]
H A Dvfio_ap_ops.c57 mutex_lock(&matrix_dev->guests_lock); in get_update_locks_for_kvm()
60 mutex_lock(&matrix_dev->mdevs_lock); in get_update_locks_for_kvm()
78 mutex_unlock(&matrix_dev->mdevs_lock); in release_update_locks_for_kvm()
81 mutex_unlock(&matrix_dev->guests_lock); in release_update_locks_for_kvm()
102 mutex_lock(&matrix_dev->guests_lock); in get_update_locks_for_mdev()
105 mutex_lock(&matrix_dev->mdevs_lock); in get_update_locks_for_mdev()
125 mutex_unlock(&matrix_dev->mdevs_lock); in release_update_locks_for_mdev()
128 mutex_unlock(&matrix_dev->guests_lock); in release_update_locks_for_mdev()
154 mutex_lock(&matrix_dev->guests_lock); in get_update_locks_by_apqn()
156 list_for_each_entry(matrix_mdev, &matrix_dev->mdev_list, node) { in get_update_locks_by_apqn()
[all …]
H A Dvfio_ap_private.h59 extern struct ap_matrix_dev *matrix_dev;
/linux/Documentation/arch/s390/
H A Dvfio-ap-locking.rst12 struct ap_matrix_dev *matrix_dev;
28 The Matrix Devices Lock (matrix_dev->mdevs_lock) is implemented as a global
31 (matrix_dev->mdev_list). This lock must be held while reading from, writing to
66 The Guests Lock (matrix_dev->guests_lock) controls access to the
67 matrix_mdev instances (matrix_dev->mdev_list) that represent mediated devices
75 2. To add matrix_mdev instances to or remove them from matrix_dev->mdev_list.
90 however, in this case, the Matrix Devices Lock (matrix_dev->mdevs_lock) must be
95 resources, so only the matrix_dev->mdevs_lock needs to be held.