Searched refs:mdev_avail_ports (Results 1 – 1 of 1) sorted by relevance
147 static atomic_t mdev_avail_ports = ATOMIC_INIT(MAX_MTTYS); variable710 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()