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
562 mutex_lock(&vdev->reflck->lock); in vfio_pci_release()581 mutex_unlock(&vdev->reflck->lock); in vfio_pci_release()594 mutex_lock(&vdev->reflck->lock); in vfio_pci_open()606 mutex_unlock(&vdev->reflck->lock); in vfio_pci_open()1899 static void vfio_pci_reflck_put(struct vfio_pci_reflck *reflck);2025 vfio_pci_reflck_put(vdev->reflck); in vfio_pci_probe()2054 vfio_pci_reflck_put(vdev->reflck); in vfio_pci_remove()2150 struct vfio_pci_reflck *reflck; in vfio_pci_reflck_alloc() local2152 reflck = kzalloc(sizeof(*reflck), GFP_KERNEL); in vfio_pci_reflck_alloc()2153 if (!reflck) in vfio_pci_reflck_alloc()[all …]
132 struct vfio_pci_reflck *reflck; member