/linux-6.12.1/fs/bcachefs/ |
D | replicas_format.h | 7 __u8 nr_devs; member 8 __u8 devs[] __counted_by(nr_devs); 18 __u8 nr_devs; member 20 __u8 devs[] __counted_by(nr_devs); 29 (offsetof(typeof(*(_i)), devs) + (_i)->nr_devs) 32 (e)->nr_devs++; \ 33 (e)->devs[(e)->nr_devs - 1] = (d); \
|
D | replicas.c | 27 BUG_ON(!e->nr_devs); in verify_replicas_entry() 29 e->nr_required >= e->nr_devs); in verify_replicas_entry() 31 for (unsigned i = 0; i + 1 < e->nr_devs; i++) in verify_replicas_entry() 38 bubble_sort(e->devs, e->nr_devs, u8_cmp); in bch2_replicas_entry_sort() 52 prt_printf(out, ": %u [", e->nr_devs); in bch2_replicas_entry_v0_to_text() 53 for (unsigned i = 0; i < e->nr_devs; i++) in bch2_replicas_entry_v0_to_text() 63 prt_printf(out, ": %u/%u [", e->nr_required, e->nr_devs); in bch2_replicas_entry_to_text() 64 for (unsigned i = 0; i < e->nr_devs; i++) in bch2_replicas_entry_to_text() 73 if (!r->nr_devs) { in bch2_replicas_entry_sb_validate() 79 r->nr_required >= r->nr_devs) { in bch2_replicas_entry_sb_validate() [all …]
|
D | bcachefs_ioctl.h | 47 __u32 nr_devs; 409 __u64 nr_devs; member 410 __u64 devs[] __counted_by(nr_devs);
|
D | chardev.c | 70 user_devs = kmalloc_array(arg.nr_devs, sizeof(u64), GFP_KERNEL); 74 devs = kcalloc(arg.nr_devs, sizeof(char *), GFP_KERNEL); 77 sizeof(u64) * arg.nr_devs)) 80 for (i = 0; i < arg.nr_devs; i++) { 89 c = bch2_fs_open(devs, arg.nr_devs, bch2_opts_empty()); 95 for (i = 0; i < arg.nr_devs; i++) 189 for (size_t i = 0; i < arg.nr_devs; i++) { in bch2_ioctl_fsck_offline() 235 thr->c = bch2_fs_open(devs.data, arg.nr_devs, thr->opts); in bch2_ioctl_fsck_offline()
|
D | journal_reclaim.c | 138 unsigned pos, nr_devs = 0; in __journal_space_available() local 152 for (pos = 0; pos < nr_devs; pos++) in __journal_space_available() 156 array_insert_item(dev_space, nr_devs, pos, space); in __journal_space_available() 160 if (nr_devs < nr_devs_want) in __journal_space_available() 905 if (replicas.e.nr_devs) { in bch2_journal_flush_device_pins()
|
D | disk_accounting.c | 89 bubble_sort(k->replicas.devs, k->replicas.nr_devs, u8_cmp); in bch2_disk_accounting_mod() 149 bkey_fsck_err_on(!acc_k.replicas.nr_devs, in bch2_accounting_validate() 153 bkey_fsck_err_on(acc_k.replicas.nr_required > acc_k.replicas.nr_devs || in bch2_accounting_validate() 155 acc_k.replicas.nr_required == acc_k.replicas.nr_devs), in bch2_accounting_validate() 159 for (unsigned i = 0; i + 1 < acc_k.replicas.nr_devs; i++) in bch2_accounting_validate() 630 for (unsigned i = 0; i < r.e.nr_devs; i++) in bch2_disk_accounting_validate_late()
|
D | replicas.h | 41 e->nr_devs = 1; in bch2_replicas_entry_cached()
|
D | buckets.c | 729 .replicas.nr_devs = 0, in __trigger_extent() 791 if (acc_replicas_key.replicas.nr_devs) { in __trigger_extent() 797 if (acc_replicas_key.replicas.nr_devs && !level && k.k->p.snapshot) { in __trigger_extent()
|
D | journal_io.c | 600 bytes < sizeof(*u) + u->r.nr_devs, in journal_entry_data_usage_validate() 1361 .e.nr_devs = 0, in bch2_journal_read()
|
D | ec.c | 1756 unsigned nr_devs = dev_mask_nr(&h->devs); in ec_stripe_head_devs_update() local 1781 if (nr_devs < h->redundancy + 2) in ec_stripe_head_devs_update()
|
/linux-6.12.1/drivers/hwtracing/stm/ |
D | heartbeat.c | 18 static int nr_devs = 4; variable 21 module_param(nr_devs, int, 0400); 69 if (nr_devs < 0 || nr_devs > STM_HEARTBEAT_MAX) in stm_heartbeat_init() 72 for (i = 0; i < nr_devs; i++) { in stm_heartbeat_init() 110 for (i = 0; i < nr_devs; i++) { in stm_heartbeat_exit()
|
/linux-6.12.1/drivers/md/ |
D | dm-zoned-metadata.c | 145 unsigned int nr_devs; member 339 for (i = 0; i < zmd->nr_devs; i++) { in dmz_check_dev() 350 for (i = 0; i < zmd->nr_devs; i++) { in dmz_dev_is_dying() 1063 (zmd->nr_devs <= 1 && nr_meta_zones >= zmd->nr_rnd_zones) || in dmz_check_sb() 1064 (zmd->nr_devs > 1 && nr_meta_zones >= zmd->nr_cache_zones)) { in dmz_check_sb() 1322 for (i = 1; i < zmd->nr_devs; i++) { in dmz_load_sb() 1407 if (zmd->nr_devs == 1 && !zmd->sb[0].zone) { in dmz_init_zone() 1412 if (zmd->nr_devs > 1 && num == 0) { in dmz_init_zone() 1487 for (i = 0; i < zmd->nr_devs; i++) { in dmz_init_zones() 1511 if (zmd->nr_devs > 1) { in dmz_init_zones() [all …]
|
D | dm-zoned-target.c | 689 int idx, int nr_devs) in dmz_get_zoned_device() argument 706 if (nr_devs == 1) { in dmz_get_zoned_device() 725 if (nr_devs > 1 && idx == 0) { in dmz_get_zoned_device()
|
/linux-6.12.1/drivers/net/wireless/broadcom/b43legacy/ |
D | b43legacy.h | 615 u8 nr_devs; member
|
D | main.c | 3731 wl->nr_devs--; in b43legacy_one_core_detach() 3760 wl->nr_devs++; in b43legacy_one_core_attach()
|