Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/s390/crypto/
Dvfio_ap_drv.c27 struct ap_matrix_dev *matrix_dev; variable
76 mutex_lock(&matrix_dev->lock); in vfio_ap_queue_dev_remove()
84 mutex_unlock(&matrix_dev->lock); in vfio_ap_queue_dev_remove()
89 struct ap_matrix_dev *matrix_dev = dev_get_drvdata(dev); in vfio_ap_matrix_dev_release() local
91 kfree(matrix_dev); in vfio_ap_matrix_dev_release()
123 matrix_dev = kzalloc(sizeof(*matrix_dev), GFP_KERNEL); in vfio_ap_matrix_dev_create()
124 if (!matrix_dev) { in vfio_ap_matrix_dev_create()
131 ret = ap_qci(&matrix_dev->info); in vfio_ap_matrix_dev_create()
136 mutex_init(&matrix_dev->lock); in vfio_ap_matrix_dev_create()
137 INIT_LIST_HEAD(&matrix_dev->mdev_list); in vfio_ap_matrix_dev_create()
[all …]
Dvfio_ap_ops.c59 dev = driver_find_device(&matrix_dev->vfio_ap_drv->driver, NULL, in vfio_ap_get_queue()
289 mutex_lock(&matrix_dev->lock); in handle_pqap()
312 mutex_unlock(&matrix_dev->lock); in handle_pqap()
328 if ((atomic_dec_if_positive(&matrix_dev->available_instances) < 0)) in vfio_ap_mdev_create()
333 atomic_inc(&matrix_dev->available_instances); in vfio_ap_mdev_create()
338 vfio_ap_matrix_init(&matrix_dev->info, &matrix_mdev->matrix); in vfio_ap_mdev_create()
342 mutex_lock(&matrix_dev->lock); in vfio_ap_mdev_create()
343 list_add(&matrix_mdev->node, &matrix_dev->mdev_list); in vfio_ap_mdev_create()
344 mutex_unlock(&matrix_dev->lock); in vfio_ap_mdev_create()
356 mutex_lock(&matrix_dev->lock); in vfio_ap_mdev_remove()
[all …]
Dvfio_ap_private.h48 extern struct ap_matrix_dev *matrix_dev;