Home
last modified time | relevance | path

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

/linux-5.19.10/samples/vfio-mdev/
Dmtty.c147 static atomic_t mdev_avail_ports = ATOMIC_INIT(MAX_MTTYS); variable
710 int avail_ports = atomic_read(&mdev_avail_ports); in mtty_probe()
716 } while (!atomic_try_cmpxchg(&mdev_avail_ports, in mtty_probe()
756 atomic_add(nr_ports, &mdev_avail_ports); in mtty_probe()
770 atomic_add(nr_ports, &mdev_avail_ports); in mtty_remove()
1252 return sprintf(buf, "%d\n", atomic_read(&mdev_avail_ports) / ports); in available_instances_show()