/fs/xfs/ |
D | xfs_message.h | 36 #define xfs_printk_ratelimited(func, dev, fmt, ...) \ argument 42 func(dev, fmt, ##__VA_ARGS__); \ 45 #define xfs_printk_once(func, dev, fmt, ...) \ argument 46 DO_ONCE_LITE(func, dev, fmt, ##__VA_ARGS__) 48 #define xfs_emerg_ratelimited(dev, fmt, ...) \ argument 49 xfs_printk_ratelimited(xfs_emerg, dev, fmt, ##__VA_ARGS__) 50 #define xfs_alert_ratelimited(dev, fmt, ...) \ argument 51 xfs_printk_ratelimited(xfs_alert, dev, fmt, ##__VA_ARGS__) 52 #define xfs_crit_ratelimited(dev, fmt, ...) \ argument 53 xfs_printk_ratelimited(xfs_crit, dev, fmt, ##__VA_ARGS__) [all …]
|
D | xfs_trace.h | 87 __field(dev_t, dev) 100 __entry->dev = VFS_I(ctx->dp)->i_sb->s_dev; 113 MAJOR(__entry->dev), MINOR(__entry->dev), 147 __field(dev_t, dev) 152 __entry->dev = mp->m_super->s_dev; 157 MAJOR(__entry->dev), MINOR(__entry->dev), 166 __field(dev_t, dev) 172 __entry->dev = mp->m_super->s_dev; 178 MAJOR(__entry->dev), MINOR(__entry->dev), 199 __field(dev_t, dev) [all …]
|
D | xfs_fsmap.c | 164 u32 dev; /* device id */ member 172 u32 dev; member 187 return d1->dev - d2->dev; in xfs_getfsmap_dev_compare() 298 fmr.fmr_device = info->dev; in xfs_getfsmap_helper() 314 trace_xfs_fsmap_mapping(mp, info->dev, in xfs_getfsmap_helper() 317 fmr.fmr_device = info->dev; in xfs_getfsmap_helper() 433 trace_xfs_fsmap_low_key(mp, info->dev, NULLAGNUMBER, &info->low); in xfs_getfsmap_logdev() 434 trace_xfs_fsmap_high_key(mp, info->dev, NULLAGNUMBER, &info->high); in xfs_getfsmap_logdev() 510 trace_xfs_fsmap_low_key(mp, info->dev, NULLAGNUMBER, &info->low); in __xfs_getfsmap_rtdev() 511 trace_xfs_fsmap_high_key(mp, info->dev, NULLAGNUMBER, &info->high); in __xfs_getfsmap_rtdev() [all …]
|
D | xfs_linux.h | 162 static inline dev_t xfs_to_linux_dev_t(xfs_dev_t dev) in xfs_to_linux_dev_t() argument 164 return MKDEV(sysv_major(dev) & 0x1ff, sysv_minor(dev)); in xfs_to_linux_dev_t() 167 static inline xfs_dev_t linux_to_xfs_dev_t(dev_t dev) in linux_to_xfs_dev_t() argument 169 return sysv_encode_dev(dev); in linux_to_xfs_dev_t()
|
/fs/pstore/ |
D | blk.c | 94 dev->zone.name = _##name_; \ 97 static int __register_pstore_device(struct pstore_device_info *dev) in __register_pstore_device() argument 103 if (!dev) { in __register_pstore_device() 107 if (!dev->zone.total_size) { in __register_pstore_device() 111 if (!dev->zone.read) { in __register_pstore_device() 115 if (!dev->zone.write) { in __register_pstore_device() 125 if (!dev->flags) in __register_pstore_device() 126 dev->flags = UINT_MAX; in __register_pstore_device() 129 verify_size(kmsg_size, 4096, dev->flags & PSTORE_FLAGS_DMESG); in __register_pstore_device() 130 verify_size(pmsg_size, 4096, dev->flags & PSTORE_FLAGS_PMSG); in __register_pstore_device() [all …]
|
D | ram.c | 474 struct device *dev, struct ramoops_context *cxt, in ramoops_init_przs() argument 501 dev_err(dev, "%s record size == 0 (%zu / %u)\n", in ramoops_init_przs() 508 dev_err(dev, "%s record count == 0 (%zu / %zu)\n", in ramoops_init_przs() 515 dev_err(dev, "no room for %s mem region (0x%zx@0x%llx) in (0x%lx@0x%llx)\n", in ramoops_init_przs() 525 dev_err(dev, "%s zone size == 0\n", name); in ramoops_init_przs() 547 dev_err(dev, "failed to request %s mem region (0x%zx@0x%llx): %d\n", in ramoops_init_przs() 571 struct device *dev, struct ramoops_context *cxt, in ramoops_init_prz() argument 581 dev_err(dev, "no room for %s mem region (0x%zx@0x%llx) in (0x%lx@0x%llx)\n", in ramoops_init_prz() 594 dev_err(dev, "failed to request %s mem region (0x%zx@0x%llx): %d\n", in ramoops_init_prz() 613 ret = of_property_read_u32(pdev->dev.of_node, propname, &val32); in ramoops_parse_dt_u32() [all …]
|
/fs/xfs/scrub/ |
D | trace.h | 101 __field(dev_t, dev) 111 __entry->dev = ip->i_mount->m_super->s_dev; 121 MAJOR(__entry->dev), MINOR(__entry->dev), 147 __field(dev_t, dev) 155 __entry->dev = sc->mp->m_super->s_dev; 163 MAJOR(__entry->dev), MINOR(__entry->dev), 176 __field(dev_t, dev) 185 __entry->dev = sc->ip->i_mount->m_super->s_dev; 194 MAJOR(__entry->dev), MINOR(__entry->dev), 207 __field(dev_t, dev) [all …]
|
/fs/nfs/ |
D | nfstrace.h | 106 __field(dev_t, dev) 114 __entry->dev = inode->i_sb->s_dev; 122 MAJOR(__entry->dev), MINOR(__entry->dev), 139 __field(dev_t, dev) 152 __entry->dev = inode->i_sb->s_dev; 167 MAJOR(__entry->dev), MINOR(__entry->dev), 225 __field(dev_t, dev) 240 __entry->dev = inode->i_sb->s_dev; 258 MAJOR(__entry->dev), MINOR(__entry->dev), 312 __field(dev_t, dev) [all …]
|
D | nfs4trace.h | 800 __field(dev_t, dev) 818 __entry->dev = ctx->dentry->d_sb->s_dev; 856 MAJOR(__entry->dev), MINOR(__entry->dev), 859 MAJOR(__entry->dev), MINOR(__entry->dev), 885 __field(dev_t, dev) 896 __entry->dev = inode->i_sb->s_dev; 911 MAJOR(__entry->dev), MINOR(__entry->dev), 929 __field(dev_t, dev) 941 __entry->dev = inode->i_sb->s_dev; 959 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
/fs/gfs2/ |
D | trace_gfs2.h | 97 __field( dev_t, dev ) 108 __entry->dev = gl->gl_name.ln_sbd->sd_vfs->s_dev; 119 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->gltype, 136 __field( dev_t, dev ) 144 __entry->dev = gl->gl_name.ln_sbd->sd_vfs->s_dev; 152 MAJOR(__entry->dev), MINOR(__entry->dev), 168 __field( dev_t, dev ) 178 __entry->dev = gl->gl_name.ln_sbd->sd_vfs->s_dev; 188 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->gltype, 205 __field( dev_t, dev ) [all …]
|
/fs/btrfs/ |
D | reada.c | 229 static struct reada_zone *reada_find_zone(struct btrfs_device *dev, u64 logical, in reada_find_zone() argument 232 struct btrfs_fs_info *fs_info = dev->fs_info; in reada_find_zone() 242 ret = radix_tree_gang_lookup(&dev->reada_zones, (void **)&zone, in reada_find_zone() 277 zone->device = dev; /* our device always sits at index 0 */ in reada_find_zone() 280 zone->devs[i] = bioc->stripes[i].dev; in reada_find_zone() 285 ret = radix_tree_insert(&dev->reada_zones, in reada_find_zone() 291 ret = radix_tree_gang_lookup(&dev->reada_zones, (void **)&zone, in reada_find_zone() 313 struct btrfs_device *dev; in reada_find_extent() local 363 dev = bioc->stripes[nzones].dev; in reada_find_extent() 366 if (!dev->bdev) in reada_find_extent() [all …]
|
D | volumes.h | 158 btrfs_device_get_##name(const struct btrfs_device *dev) \ 164 seq = read_seqcount_begin(&dev->data_seqcount); \ 165 size = dev->name; \ 166 } while (read_seqcount_retry(&dev->data_seqcount, seq)); \ 171 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \ 174 write_seqcount_begin(&dev->data_seqcount); \ 175 dev->name = size; \ 176 write_seqcount_end(&dev->data_seqcount); \ 182 btrfs_device_get_##name(const struct btrfs_device *dev) \ 187 size = dev->name; \ [all …]
|
D | scrub.c | 67 struct btrfs_device *dev; member 86 struct btrfs_device *dev; member 203 struct btrfs_device *dev; member 236 u64 physical, struct btrfs_device *dev, u64 flags, 641 struct btrfs_fs_info *fs_info = swarn->dev->fs_info; in scrub_print_warning_inode() 699 rcu_str_deref(swarn->dev->name), in scrub_print_warning_inode() 713 rcu_str_deref(swarn->dev->name), in scrub_print_warning_inode() 723 struct btrfs_device *dev; in scrub_print_warning() local 739 dev = sblock->pagev[0]->dev; in scrub_print_warning() 749 swarn.dev = NULL; in scrub_print_warning() [all …]
|
D | volumes.c | 249 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev); 3100 ret = btrfs_update_device(trans, map->stripes[i].dev); in remove_chunk_item() 3141 struct btrfs_device *device = map->stripes[i].dev; in btrfs_remove_chunk() 5272 devices_info[ndevs].dev = device; in gather_device_info() 5333 u64 zone_size = devices_info[0].dev->zone_info->zone_size; in decide_stripe_size_zoned() 5419 map->stripes[s].dev = devices_info[i].dev; in create_chunk() 5460 struct btrfs_device *dev = map->stripes[i].dev; in create_chunk() local 5462 btrfs_device_set_bytes_used(dev, in create_chunk() 5463 dev->bytes_used + ctl->stripe_size); in create_chunk() 5464 if (list_empty(&dev->post_commit_list)) in create_chunk() [all …]
|
/fs/nfs/blocklayout/ |
D | dev.c | 17 bl_free_device(struct pnfs_block_dev *dev) in bl_free_device() argument 19 if (dev->nr_children) { in bl_free_device() 22 for (i = 0; i < dev->nr_children; i++) in bl_free_device() 23 bl_free_device(&dev->children[i]); in bl_free_device() 24 kfree(dev->children); in bl_free_device() 26 if (dev->pr_registered) { in bl_free_device() 28 dev->bdev->bd_disk->fops->pr_ops; in bl_free_device() 31 error = ops->pr_register(dev->bdev, dev->pr_key, 0, in bl_free_device() 37 if (dev->bdev) in bl_free_device() 38 blkdev_put(dev->bdev, FMODE_READ | FMODE_WRITE); in bl_free_device() [all …]
|
/fs/fuse/ |
D | cuse.c | 63 struct device *dev; /* device representing @cdev */ member 116 dev_t devt = inode->i_cdev->dev; in cuse_open() 123 if (pos->dev->devt == devt) { in cuse_open() 297 static void cuse_gendev_release(struct device *dev) in cuse_gendev_release() argument 299 kfree(dev); in cuse_gendev_release() 327 struct device *dev; in cuse_process_init_reply() local 360 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in cuse_process_init_reply() 361 if (!dev) in cuse_process_init_reply() 364 device_initialize(dev); in cuse_process_init_reply() 365 dev_set_uevent_suppress(dev, 1); in cuse_process_init_reply() [all …]
|
/fs/iomap/ |
D | trace.h | 31 __field(dev_t, dev) 36 __entry->dev = inode->i_sb->s_dev; 41 MAJOR(__entry->dev), MINOR(__entry->dev), 57 __field(dev_t, dev) 64 __entry->dev = inode->i_sb->s_dev; 71 MAJOR(__entry->dev), MINOR(__entry->dev), 114 __field(dev_t, dev) 124 __entry->dev = inode->i_sb->s_dev; 135 MAJOR(__entry->dev), MINOR(__entry->dev), 157 __field(dev_t, dev) [all …]
|
/fs/zonefs/ |
D | trace.h | 20 #define show_dev(dev) MAJOR(dev), MINOR(dev) argument 26 __field(dev_t, dev) 33 __entry->dev = inode->i_sb->s_dev; 41 show_dev(__entry->dev), (unsigned long)__entry->ino, 51 __field(dev_t, dev) 59 __entry->dev = inode->i_sb->s_dev; 67 show_dev(__entry->dev), (unsigned long)__entry->ino, 77 __field(dev_t, dev) 84 __entry->dev = inode->i_sb->s_dev; 91 show_dev(__entry->dev), (unsigned long)__entry->ino,
|
/fs/ |
D | char_dev.c | 236 int alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count, in alloc_chrdev_region() argument 243 *dev = MKDEV(cd->major, cd->baseminor); in alloc_chrdev_region() 457 static struct kobject *exact_match(dev_t dev, int *part, void *data) in exact_match() argument 463 static int exact_lock(dev_t dev, void *data) in exact_lock() argument 479 int cdev_add(struct cdev *p, dev_t dev, unsigned count) in cdev_add() argument 483 p->dev = dev; in cdev_add() 486 if (WARN_ON(dev == WHITEOUT_DEV)) in cdev_add() 489 error = kobj_map(cdev_map, dev, count, NULL, in cdev_add() 537 int cdev_device_add(struct cdev *cdev, struct device *dev) in cdev_device_add() argument 541 if (dev->devt) { in cdev_device_add() [all …]
|
/fs/btrfs/tests/ |
D | btrfs-tests.c | 97 struct btrfs_device *dev; in btrfs_alloc_dummy_device() local 99 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in btrfs_alloc_dummy_device() 100 if (!dev) in btrfs_alloc_dummy_device() 103 extent_io_tree_init(NULL, &dev->alloc_state, 0, NULL); in btrfs_alloc_dummy_device() 104 INIT_LIST_HEAD(&dev->dev_list); in btrfs_alloc_dummy_device() 105 list_add(&dev->dev_list, &fs_info->fs_devices->devices); in btrfs_alloc_dummy_device() 107 return dev; in btrfs_alloc_dummy_device() 110 static void btrfs_free_dummy_device(struct btrfs_device *dev) in btrfs_free_dummy_device() argument 112 extent_io_tree_release(&dev->alloc_state); in btrfs_free_dummy_device() 113 kfree(dev); in btrfs_free_dummy_device() [all …]
|
/fs/nfsd/ |
D | blocklayout.c | 149 struct pnfs_block_deviceaddr *dev; in nfsd4_block_get_device_info_simple() local 152 dev = kzalloc(sizeof(struct pnfs_block_deviceaddr) + in nfsd4_block_get_device_info_simple() 154 if (!dev) in nfsd4_block_get_device_info_simple() 156 gdp->gd_device = dev; in nfsd4_block_get_device_info_simple() 158 dev->nr_volumes = 1; in nfsd4_block_get_device_info_simple() 159 b = &dev->volumes[0]; in nfsd4_block_get_device_info_simple() 333 struct pnfs_block_deviceaddr *dev; in nfsd4_block_get_device_info_scsi() local 338 dev = kzalloc(sizeof(struct pnfs_block_deviceaddr) + in nfsd4_block_get_device_info_scsi() 340 if (!dev) in nfsd4_block_get_device_info_scsi() 342 gdp->gd_device = dev; in nfsd4_block_get_device_info_scsi() [all …]
|
D | nfsfh.h | 98 static inline void mk_fsid(int vers, u32 *fsidv, dev_t dev, ino_t ino, in mk_fsid() argument 104 fsidv[0] = (__force __u32)htonl((MAJOR(dev)<<16) | in mk_fsid() 105 MINOR(dev)); in mk_fsid() 112 fsidv[0] = (__force __u32)htonl(MAJOR(dev)); in mk_fsid() 113 fsidv[1] = (__force __u32)htonl(MINOR(dev)); in mk_fsid() 118 fsidv[0] = new_encode_dev(dev); in mk_fsid()
|
/fs/proc/ |
D | consoles.c | 31 dev_t dev = 0; in show_console_dev() local 38 dev = MKDEV(driver->major, driver->minor_start); in show_console_dev() 39 dev += index; in show_console_dev() 54 if (dev) in show_console_dev() 55 seq_printf(m, " %4d:%d", MAJOR(dev), MINOR(dev)); in show_console_dev()
|
D | nommu.c | 36 dev_t dev = 0; in nommu_region_show() local 44 dev = inode->i_sb->s_dev; in nommu_region_show() 58 MAJOR(dev), MINOR(dev), ino); in nommu_region_show()
|
/fs/ufs/ |
D | util.c | 185 dev_t dev; in ufs_get_inode_dev() local 196 dev = old_decode_dev(fs32 & 0x7fff); in ufs_get_inode_dev() 198 dev = MKDEV(sysv_major(fs32), sysv_minor(fs32)); in ufs_get_inode_dev() 202 dev = old_decode_dev(fs32); in ufs_get_inode_dev() 205 return dev; in ufs_get_inode_dev() 209 ufs_set_inode_dev(struct super_block *sb, struct ufs_inode_info *ufsi, dev_t dev) in ufs_set_inode_dev() argument 216 fs32 = sysv_encode_dev(dev); in ufs_set_inode_dev() 218 fs32 = old_encode_dev(dev); in ufs_set_inode_dev() 223 fs32 = old_encode_dev(dev); in ufs_set_inode_dev()
|