/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | vgic_lpi_stress.c | 35 u32 nr_devices; member 48 .nr_devices = 1, 67 u32 nr_devices = test_data.nr_devices; in guest_setup_its_mappings() local 75 for (device_id = 0; device_id < nr_devices; device_id++) { in guest_setup_its_mappings() 151 sz = (3 + test_data.nr_devices) * SZ_64K; in setup_memslot() 170 size_t nr_lpis = test_data.nr_devices * test_data.nr_event_ids; in configure_lpis() 184 u32 nr_devices = test_data.nr_devices; in setup_test_data() local 202 test_data.itt_tables = vm_phy_pages_alloc(vm, pages_per_64k * nr_devices, in setup_test_data() 290 nr_lpis = test_data.nr_devices * test_data.nr_event_ids * nr_iterations; in report_stats() 300 u32 nr_devices = test_data.nr_devices; in run_test() local [all …]
|
/linux/fs/bcachefs/ |
H A D | sb-members.c | 78 c->disk_sb.sb->nr_devices), 8); in sb_members_v2_resize_entries() 84 for (int i = c->disk_sb.sb->nr_devices - 1; i >= 0; --i) { in sb_members_v2_resize_entries() 103 sizeof(struct bch_member) * c->sb.nr_devices, in bch2_sb_members_v2_init() 107 BCH_MEMBER_V1_BYTES * c->sb.nr_devices); in bch2_sb_members_v2_init() 122 disk_sb->sb->nr_devices, sizeof(u64))); in bch2_sb_members_cpy_v2_v1() 128 for (unsigned i = 0; i < disk_sb->sb->nr_devices; i++) in bch2_sb_members_cpy_v2_v1() 279 if ((void *) members_v1_get_mut(mi, sb->nr_devices) > vstruct_end(&mi->field)) { in bch2_sb_members_v1_validate() 284 for (i = 0; i < sb->nr_devices; i++) { in bch2_sb_members_v1_validate() 302 for (i = 0; i < sb->nr_devices; i++) in bch2_sb_members_v1_to_text() 318 for (i = 0; i < sb->nr_devices; i++) in bch2_sb_members_v2_to_text() [all …]
|
H A D | sb-members.h | 76 ? find_next_bit(mask->d, c->sb.nr_devices, idx) in __bch2_next_dev_idx() 77 : idx) < c->sb.nr_devices && in __bch2_next_dev_idx() 177 return dev < c->sb.nr_devices && c->devs[dev]; in bch2_dev_exists() 203 return c && dev < c->sb.nr_devices in bch2_dev_rcu_noerror() 311 if (dev < sb->nr_devices) { in bch2_member_exists()
|
H A D | disk_groups.c | 31 for (i = 0; i < sb->nr_devices; i++) { in bch2_sb_disk_groups_validate() 175 for (i = 0; i < c->disk_sb.sb->nr_devices; i++) { in bch2_sb_disk_groups_to_cpu() 211 struct bch_dev *ca = t.dev < c->sb.nr_devices in bch2_target_to_mask() 554 ca = t.dev < c->sb.nr_devices in bch2_target_to_text()
|
H A D | super-io.c | 389 if (!sb->nr_devices || in bch2_sb_validate() 390 sb->nr_devices > BCH_SB_MEMBERS_MAX) { in bch2_sb_validate() 392 sb->nr_devices, BCH_SB_MEMBERS_MAX); in bch2_sb_validate() 396 if (sb->dev_idx >= sb->nr_devices) { in bch2_sb_validate() 398 sb->dev_idx, sb->nr_devices); in bch2_sb_validate() 524 c->sb.nr_devices = src->nr_devices; in bch2_sb_update() 568 dst->nr_devices = src->nr_devices; in __copy_super()
|
H A D | super.c | 661 for (i = 0; i < c->sb.nr_devices; i++) { in bch2_fs_free() 936 for (i = 0; i < c->sb.nr_devices; i++) { in bch2_fs_alloc() 1445 if (c->sb.nr_devices == 1) in bch2_dev_attach_bdev() 1525 for (i = 0; i < c->disk_sb.sb->nr_devices; i++) { in bch2_fs_may_start() 2009 struct bch_fs *bch2_fs_open(char * const *devices, unsigned nr_devices, in bch2_fs_open() argument 2021 if (!nr_devices) { in bch2_fs_open() 2026 ret = darray_make_room(&sbs, nr_devices); in bch2_fs_open() 2030 for (unsigned i = 0; i < nr_devices; i++) { in bch2_fs_open()
|
H A D | bcachefs.h | 770 u8 nr_devices; member
|
H A D | chardev.c | 33 if (dev >= c->sb.nr_devices) in bch2_device_lookup()
|
H A D | bcachefs_format.h | 742 __u8 nr_devices; member
|
H A D | move.c | 1077 if (op.migrate.dev >= c->sb.nr_devices) in bch2_data_job()
|
H A D | extents.c | 718 if (p.ptr.dev < c->sb.nr_devices && c->devs[p.ptr.dev]) in bch2_bkey_durability_safe()
|
/linux/drivers/ssb/ |
H A D | scan.c | 295 bus->nr_devices = 0; in ssb_bus_scan() 305 bus->nr_devices = (tmp & SSB_CHIPCO_NRCORESMASK) >> in ssb_bus_scan() 323 if (!bus->nr_devices) in ssb_bus_scan() 324 bus->nr_devices = chipid_to_nrcores(bus->chip_id); in ssb_bus_scan() 325 if (bus->nr_devices > ARRAY_SIZE(bus->devices)) { in ssb_bus_scan() 327 SSB_MAX_NR_CORES, bus->nr_devices); in ssb_bus_scan() 337 mmio = ioremap(baseaddr, SSB_CORE_SIZE * bus->nr_devices); in ssb_bus_scan() 344 for (i = 0, dev_i = 0; i < bus->nr_devices; i++) { in ssb_bus_scan() 438 bus->nr_devices = dev_i; in ssb_bus_scan()
|
H A D | driver_mipscore.c | 87 for (i = 0; i < bus->nr_devices; i++) { in find_device() 195 for (i = 0; i < bus->nr_devices; i++) { in dump_irq() 317 for (irq = 2, i = 0; i < bus->nr_devices; i++) { in ssb_mipscore_init()
|
H A D | embedded.c | 181 for (i = 0; i < bus->nr_devices; i++) { in gige_pci_init_callback() 223 for (i = 0; i < bus->nr_devices; i++) { in gige_map_irq_callback()
|
H A D | main.c | 215 WARN_ON(bus->nr_devices > ARRAY_SIZE(ctx->device_frozen)); in ssb_devices_freeze() 217 for (i = 0; i < bus->nr_devices; i++) { in ssb_devices_freeze() 249 for (i = 0; i < bus->nr_devices; i++) { in ssb_devices_thaw() 420 for (i = bus->nr_devices - 1; i >= 0; i--) { in ssb_devices_unregister() 467 for (i = 0; i < bus->nr_devices; i++) { in ssb_devices_register() 813 for (i = 0; i < bus->nr_devices; i++) { in ssb_set_devtypedata()
|
/linux/drivers/leds/ |
H A D | leds-ss4200.c | 510 int nr_devices = 0; in nas_gpio_init() local 512 nr_devices = dmi_check_system(nas_led_whitelist); in nas_gpio_init() 516 nr_devices++; in nas_gpio_init() 519 if (nr_devices <= 0) { in nas_gpio_init()
|
/linux/fs/btrfs/ |
H A D | super.c | 1585 size_t nr_devices) in btrfs_descending_sort_devices() argument 1587 sort(devices, nr_devices, sizeof(struct btrfs_device_info), in btrfs_descending_sort_devices() 1605 int i = 0, nr_devices; in btrfs_calc_avail_data_space() local 1612 nr_devices = fs_info->fs_devices->open_devices; in btrfs_calc_avail_data_space() 1613 if (!nr_devices) { in btrfs_calc_avail_data_space() 1615 nr_devices = fs_info->fs_devices->open_devices; in btrfs_calc_avail_data_space() 1616 ASSERT(nr_devices); in btrfs_calc_avail_data_space() 1617 if (!nr_devices) { in btrfs_calc_avail_data_space() 1623 devices_info = kmalloc_array(nr_devices, sizeof(*devices_info), in btrfs_calc_avail_data_space() 1633 num_stripes = nr_devices; in btrfs_calc_avail_data_space() [all …]
|
/linux/Documentation/block/ |
H A D | null_blk.rst | 48 nr_devices=[Number of devices]: Default: 1 134 nr_devices > 1, otherwise there's no tag set to share.
|
/linux/drivers/s390/block/ |
H A D | scm_blk.c | 31 static atomic_t nr_devices = ATOMIC_INIT(0); variable 448 devindex = atomic_inc_return(&nr_devices) - 1; in scm_blk_dev_setup() 505 atomic_dec(&nr_devices); in scm_blk_dev_setup()
|
/linux/drivers/mfd/ |
H A D | lpc_ich.c | 140 size_t nr_devices; member 224 .nr_devices = ARRAY_SIZE(apl_gpio_devices), 267 .nr_devices = ARRAY_SIZE(dnv_gpio_devices), 1261 return mfd_add_devices(&dev->dev, 0, info->devices, info->nr_devices, in lpc_ich_init_pinctrl()
|
/linux/include/linux/ssb/ |
H A D | ssb.h | 464 u8 nr_devices; member
|
/linux/drivers/vfio/pci/ |
H A D | vfio_pci_core.c | 779 int nr_devices; member 790 if (fill->count >= fill->nr_devices) in vfio_pci_fill_devs() 1294 fill.nr_devices = count; in vfio_pci_ioctl_get_pci_hot_reset_info()
|