Lines Matching refs:nr_ports
142 int nr_ports; member
148 int nr_ports; member
150 { .nr_ports = 1, .type.sysfs_name = "1",
152 { .nr_ports = 2, .type.sysfs_name = "2",
243 if (mdev_state->nr_ports == 2) { in mtty_create_config_space()
305 if ((mdev_state->nr_ports == 1) && (bar_index == 1)) { in handle_pci_cfg_write()
757 if (avail_ports < type->nr_ports) in mtty_init_dev()
761 avail_ports - type->nr_ports)); in mtty_init_dev()
763 mdev_state->nr_ports = type->nr_ports; in mtty_init_dev()
781 atomic_add(type->nr_ports, &mdev_avail_ports); in mtty_init_dev()
811 atomic_add(mdev_state->nr_ports, &mdev_avail_ports); in mtty_release_dev()
1154 if (mdev_state->nr_ports == 2) in mtty_get_region_info()
1345 return atomic_read(&mdev_avail_ports) / type->nr_ports; in mtty_get_available()