Searched refs:matrix_dev (Results 1 – 3 of 3) sorted by relevance
25 struct ap_matrix_dev *matrix_dev; variable73 mutex_lock(&matrix_dev->lock); in vfio_ap_queue_dev_remove()78 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() local91 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 …]
292 mutex_lock(&matrix_dev->lock); in handle_pqap()319 mutex_unlock(&matrix_dev->lock); in handle_pqap()336 if ((atomic_dec_if_positive(&matrix_dev->available_instances) < 0)) in vfio_ap_mdev_probe()348 vfio_ap_matrix_init(&matrix_dev->info, &matrix_mdev->matrix); in vfio_ap_mdev_probe()350 mutex_lock(&matrix_dev->lock); in vfio_ap_mdev_probe()351 list_add(&matrix_mdev->node, &matrix_dev->mdev_list); in vfio_ap_mdev_probe()352 mutex_unlock(&matrix_dev->lock); in vfio_ap_mdev_probe()361 mutex_lock(&matrix_dev->lock); in vfio_ap_mdev_probe()363 mutex_unlock(&matrix_dev->lock); in vfio_ap_mdev_probe()367 atomic_inc(&matrix_dev->available_instances); in vfio_ap_mdev_probe()[all …]
49 extern struct ap_matrix_dev *matrix_dev;