Home
last modified time | relevance | path

Searched refs:matrix_mdev (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.6/drivers/s390/crypto/
Dvfio_ap_ops.c99 static inline void get_update_locks_for_mdev(struct ap_matrix_mdev *matrix_mdev) in get_update_locks_for_mdev() argument
102 if (matrix_mdev && matrix_mdev->kvm) in get_update_locks_for_mdev()
103 mutex_lock(&matrix_mdev->kvm->lock); in get_update_locks_for_mdev()
122 static inline void release_update_locks_for_mdev(struct ap_matrix_mdev *matrix_mdev) in release_update_locks_for_mdev() argument
125 if (matrix_mdev && matrix_mdev->kvm) in release_update_locks_for_mdev()
126 mutex_unlock(&matrix_mdev->kvm->lock); in release_update_locks_for_mdev()
151 struct ap_matrix_mdev *matrix_mdev; in get_update_locks_by_apqn() local
155 list_for_each_entry(matrix_mdev, &matrix_dev->mdev_list, node) { in get_update_locks_by_apqn()
156 if (test_bit_inv(AP_QID_CARD(apqn), matrix_mdev->matrix.apm) && in get_update_locks_by_apqn()
157 test_bit_inv(AP_QID_QUEUE(apqn), matrix_mdev->matrix.aqm)) { in get_update_locks_by_apqn()
[all …]
Dvfio_ap_private.h140 struct ap_matrix_mdev *matrix_mdev; member
/Linux-v6.6/Documentation/arch/s390/
Dvfio-ap-locking.rst13 struct ap_matrix_mdev *matrix_mdev;
30 controls access to all fields contained within each matrix_mdev
32 or using the data from a field contained within a matrix_mdev instance
50 The KVM pointer is stored in the in the matrix_mdev instance
51 (matrix_mdev->kvm = kvm) containing the state of the mediated device that has
67 matrix_mdev instances (matrix_dev->mdev_list) that represent mediated devices
71 1. To control access to the KVM pointer (matrix_mdev->kvm) while the vfio_ap
75 2. To add matrix_mdev instances to or remove them from matrix_dev->mdev_list.
83 the matrix_mdev object to which the queue is assigned will have to be
84 found. The KVM pointer (matrix_mdev->kvm) can then be used to determine if
[all …]