Searched refs:matrix_dev (Results 1 – 3 of 3) sorted by relevance
27 struct ap_matrix_dev *matrix_dev; variable75 mutex_lock(&matrix_dev->lock); in vfio_ap_queue_dev_remove()80 mutex_unlock(&matrix_dev->lock); in vfio_ap_queue_dev_remove()85 struct ap_matrix_dev *matrix_dev = dev_get_drvdata(dev); in vfio_ap_matrix_dev_release() local87 kfree(matrix_dev); in vfio_ap_matrix_dev_release()119 matrix_dev = kzalloc(sizeof(*matrix_dev), GFP_KERNEL); in vfio_ap_matrix_dev_create()120 if (!matrix_dev) { in vfio_ap_matrix_dev_create()127 ret = ap_qci(&matrix_dev->info); in vfio_ap_matrix_dev_create()132 mutex_init(&matrix_dev->lock); in vfio_ap_matrix_dev_create()133 INIT_LIST_HEAD(&matrix_dev->mdev_list); in vfio_ap_matrix_dev_create()[all …]
290 mutex_lock(&matrix_dev->lock); in handle_pqap()313 mutex_unlock(&matrix_dev->lock); in handle_pqap()329 if ((atomic_dec_if_positive(&matrix_dev->available_instances) < 0)) in vfio_ap_mdev_create()334 atomic_inc(&matrix_dev->available_instances); in vfio_ap_mdev_create()339 vfio_ap_matrix_init(&matrix_dev->info, &matrix_mdev->matrix); in vfio_ap_mdev_create()343 mutex_lock(&matrix_dev->lock); in vfio_ap_mdev_create()344 list_add(&matrix_mdev->node, &matrix_dev->mdev_list); in vfio_ap_mdev_create()345 mutex_unlock(&matrix_dev->lock); in vfio_ap_mdev_create()357 mutex_lock(&matrix_dev->lock); in vfio_ap_mdev_remove()360 mutex_unlock(&matrix_dev->lock); in vfio_ap_mdev_remove()[all …]
48 extern struct ap_matrix_dev *matrix_dev;