Lines Matching refs:nr_ports
144 int nr_ports; member
203 if (mdev_state->nr_ports == 2) { in mtty_create_config_space()
265 if ((mdev_state->nr_ports == 1) && (bar_index == 1)) { in handle_pci_cfg_write()
709 int nr_ports = mdev_get_type_group_id(mdev) + 1; in mtty_probe() local
714 if (avail_ports < nr_ports) in mtty_probe()
717 &avail_ports, avail_ports - nr_ports)); in mtty_probe()
727 mdev_state->nr_ports = nr_ports; in mtty_probe()
756 atomic_add(nr_ports, &mdev_avail_ports); in mtty_probe()
763 int nr_ports = mdev_state->nr_ports; in mtty_remove() local
770 atomic_add(nr_ports, &mdev_avail_ports); in mtty_remove()
1041 if (mdev_state->nr_ports == 2) in mtty_get_region_info()