Home
last modified time | relevance | path

Searched refs:cf_lock (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/include/linux/
Dvdpa.h86 struct rw_semaphore cf_lock; /* Protects get/set config */ member
435 down_write(&vdev->cf_lock); in vdpa_reset()
438 up_write(&vdev->cf_lock); in vdpa_reset()
457 down_write(&vdev->cf_lock); in vdpa_set_features()
459 up_write(&vdev->cf_lock); in vdpa_set_features()
/linux-6.1.9/drivers/vdpa/
Dvdpa.c26 down_write(&vdev->cf_lock); in vdpa_set_status()
28 up_write(&vdev->cf_lock); in vdpa_set_status()
197 init_rwsem(&vdev->cf_lock); in __vdpa_alloc_device()
393 down_read(&vdev->cf_lock); in vdpa_get_config()
395 up_read(&vdev->cf_lock); in vdpa_get_config()
409 down_write(&vdev->cf_lock); in vdpa_set_config()
411 up_write(&vdev->cf_lock); in vdpa_set_config()
881 down_read(&vdev->cf_lock); in vdpa_dev_config_fill()
922 up_read(&vdev->cf_lock); in vdpa_dev_config_fill()
929 up_read(&vdev->cf_lock); in vdpa_dev_config_fill()
[all …]