Home
last modified time | relevance | path

Searched refs:reflck (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/drivers/vfio/fsl-mc/
Dvfio_fsl_mc.c24 static void vfio_fsl_mc_reflck_get(struct vfio_fsl_mc_reflck *reflck) in vfio_fsl_mc_reflck_get() argument
26 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() local
35 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() argument
42 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() local
49 reflck = kzalloc(sizeof(*reflck), GFP_KERNEL); in vfio_fsl_mc_reflck_alloc()
50 if (!reflck) in vfio_fsl_mc_reflck_alloc()
[all …]
Dvfio_fsl_mc_intr.c123 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()
Dvfio_fsl_mc_private.h43 struct vfio_fsl_mc_reflck *reflck; member
/Linux-v5.10/drivers/vfio/pci/
Dvfio_pci.c562 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() local
2152 reflck = kzalloc(sizeof(*reflck), GFP_KERNEL); in vfio_pci_reflck_alloc()
2153 if (!reflck) in vfio_pci_reflck_alloc()
[all …]
Dvfio_pci_private.h132 struct vfio_pci_reflck *reflck; member