Searched refs:reflck (Results 1 – 5 of 5) sorted by relevance
24 static void vfio_fsl_mc_reflck_get(struct vfio_fsl_mc_reflck *reflck) in vfio_fsl_mc_reflck_get() argument26 kref_get(&reflck->kref); in vfio_fsl_mc_reflck_get()31 struct vfio_fsl_mc_reflck *reflck = container_of(kref, in vfio_fsl_mc_reflck_release() local35 mutex_destroy(&reflck->lock); in vfio_fsl_mc_reflck_release()36 kfree(reflck); in vfio_fsl_mc_reflck_release()40 static void vfio_fsl_mc_reflck_put(struct vfio_fsl_mc_reflck *reflck) in vfio_fsl_mc_reflck_put() argument42 kref_put_mutex(&reflck->kref, vfio_fsl_mc_reflck_release, &reflck_lock); in vfio_fsl_mc_reflck_put()47 struct vfio_fsl_mc_reflck *reflck; in vfio_fsl_mc_reflck_alloc() local49 reflck = kzalloc(sizeof(*reflck), GFP_KERNEL); in vfio_fsl_mc_reflck_alloc()50 if (!reflck) in vfio_fsl_mc_reflck_alloc()[all …]
123 mutex_lock(&vdev->reflck->lock); in vfio_fsl_mc_set_irq_trigger()132 mutex_unlock(&vdev->reflck->lock); in vfio_fsl_mc_set_irq_trigger()157 mutex_unlock(&vdev->reflck->lock); in vfio_fsl_mc_set_irq_trigger()
43 struct vfio_fsl_mc_reflck *reflck; member
560 mutex_lock(&vdev->reflck->lock); in vfio_pci_release()579 mutex_unlock(&vdev->reflck->lock); in vfio_pci_release()592 mutex_lock(&vdev->reflck->lock); in vfio_pci_open()604 mutex_unlock(&vdev->reflck->lock); in vfio_pci_open()1912 static void vfio_pci_reflck_put(struct vfio_pci_reflck *reflck);2087 vfio_pci_reflck_put(vdev->reflck); in vfio_pci_probe()2107 vfio_pci_reflck_put(vdev->reflck); in vfio_pci_remove()2197 struct vfio_pci_reflck *reflck; in vfio_pci_reflck_alloc() local2199 reflck = kzalloc(sizeof(*reflck), GFP_KERNEL); in vfio_pci_reflck_alloc()2200 if (!reflck) in vfio_pci_reflck_alloc()[all …]
132 struct vfio_pci_reflck *reflck; member