Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 129) sorted by relevance

123456

/fs/xfs/scrub/
Dtrace.h87 __field(dev_t, dev)
97 __entry->dev = ip->i_mount->m_super->s_dev;
107 MAJOR(__entry->dev), MINOR(__entry->dev),
133 __field(dev_t, dev)
141 __entry->dev = sc->mp->m_super->s_dev;
149 MAJOR(__entry->dev), MINOR(__entry->dev),
162 __field(dev_t, dev)
171 __entry->dev = sc->ip->i_mount->m_super->s_dev;
180 MAJOR(__entry->dev), MINOR(__entry->dev),
193 __field(dev_t, dev)
[all …]
/fs/xfs/
Dxfs_trace.h43 __field(dev_t, dev)
56 __entry->dev = VFS_I(ctx->dp)->i_sb->s_dev;
69 MAJOR(__entry->dev), MINOR(__entry->dev),
104 __field(dev_t, dev)
110 __entry->dev = mp->m_super->s_dev;
116 MAJOR(__entry->dev), MINOR(__entry->dev),
141 __field(dev_t, dev)
145 __entry->dev = mp->m_super->s_dev;
149 MAJOR(__entry->dev), MINOR(__entry->dev),
167 __field(dev_t, dev)
[all …]
Dxfs_message.h34 #define xfs_printk_ratelimited(func, dev, fmt, ...) \ argument
40 func(dev, fmt, ##__VA_ARGS__); \
43 #define xfs_emerg_ratelimited(dev, fmt, ...) \ argument
44 xfs_printk_ratelimited(xfs_emerg, dev, fmt, ##__VA_ARGS__)
45 #define xfs_alert_ratelimited(dev, fmt, ...) \ argument
46 xfs_printk_ratelimited(xfs_alert, dev, fmt, ##__VA_ARGS__)
47 #define xfs_crit_ratelimited(dev, fmt, ...) \ argument
48 xfs_printk_ratelimited(xfs_crit, dev, fmt, ##__VA_ARGS__)
49 #define xfs_err_ratelimited(dev, fmt, ...) \ argument
50 xfs_printk_ratelimited(xfs_err, dev, fmt, ##__VA_ARGS__)
[all …]
Dxfs_fsmap.c162 u32 dev; /* device id */ member
171 u32 dev; member
186 return d1->dev - d2->dev; in xfs_getfsmap_dev_compare()
281 fmr.fmr_device = info->dev; in xfs_getfsmap_helper()
300 trace_xfs_fsmap_mapping(mp, info->dev, info->agno, rec); in xfs_getfsmap_helper()
302 fmr.fmr_device = info->dev; in xfs_getfsmap_helper()
421 trace_xfs_fsmap_low_key(mp, info->dev, info->agno, &info->low); in xfs_getfsmap_logdev()
422 trace_xfs_fsmap_high_key(mp, info->dev, info->agno, &info->high); in xfs_getfsmap_logdev()
500 trace_xfs_fsmap_low_key(mp, info->dev, info->agno, &info->low); in __xfs_getfsmap_rtdev()
501 trace_xfs_fsmap_high_key(mp, info->dev, info->agno, &info->high); in __xfs_getfsmap_rtdev()
[all …]
Dxfs_linux.h192 static inline dev_t xfs_to_linux_dev_t(xfs_dev_t dev) in xfs_to_linux_dev_t() argument
194 return MKDEV(sysv_major(dev) & 0x1ff, sysv_minor(dev)); in xfs_to_linux_dev_t()
197 static inline xfs_dev_t linux_to_xfs_dev_t(dev_t dev) in linux_to_xfs_dev_t() argument
199 return sysv_encode_dev(dev); in linux_to_xfs_dev_t()
/fs/nfs/
Dnfstrace.h96 __field(dev_t, dev)
104 __entry->dev = inode->i_sb->s_dev;
112 MAJOR(__entry->dev), MINOR(__entry->dev),
129 __field(dev_t, dev)
142 __entry->dev = inode->i_sb->s_dev;
157 MAJOR(__entry->dev), MINOR(__entry->dev),
248 __field(dev_t, dev)
254 __entry->dev = dir->i_sb->s_dev;
264 MAJOR(__entry->dev), MINOR(__entry->dev),
292 __field(dev_t, dev)
[all …]
Dnfs4trace.h614 __field(dev_t, dev)
632 __entry->dev = ctx->dentry->d_sb->s_dev;
670 MAJOR(__entry->dev), MINOR(__entry->dev),
673 MAJOR(__entry->dev), MINOR(__entry->dev),
699 __field(dev_t, dev)
710 __entry->dev = inode->i_sb->s_dev;
725 MAJOR(__entry->dev), MINOR(__entry->dev),
743 __field(dev_t, dev)
755 __entry->dev = inode->i_sb->s_dev;
773 MAJOR(__entry->dev), MINOR(__entry->dev),
[all …]
/fs/gfs2/
Dtrace_gfs2.h98 __field( dev_t, dev )
109 __entry->dev = gl->gl_name.ln_sbd->sd_vfs->s_dev;
120 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->gltype,
137 __field( dev_t, dev )
145 __entry->dev = gl->gl_name.ln_sbd->sd_vfs->s_dev;
153 MAJOR(__entry->dev), MINOR(__entry->dev),
169 __field( dev_t, dev )
179 __entry->dev = gl->gl_name.ln_sbd->sd_vfs->s_dev;
189 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->gltype,
206 __field( dev_t, dev )
[all …]
/fs/btrfs/
Dvolumes.h161 btrfs_device_get_##name(const struct btrfs_device *dev) \
167 seq = read_seqcount_begin(&dev->data_seqcount); \
168 size = dev->name; \
169 } while (read_seqcount_retry(&dev->data_seqcount, seq)); \
174 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \
177 write_seqcount_begin(&dev->data_seqcount); \
178 dev->name = size; \
179 write_seqcount_end(&dev->data_seqcount); \
185 btrfs_device_get_##name(const struct btrfs_device *dev) \
190 size = dev->name; \
[all …]
Dreada.c224 static struct reada_zone *reada_find_zone(struct btrfs_device *dev, u64 logical, in reada_find_zone() argument
227 struct btrfs_fs_info *fs_info = dev->fs_info; in reada_find_zone()
237 ret = radix_tree_gang_lookup(&dev->reada_zones, (void **)&zone, in reada_find_zone()
272 zone->device = dev; /* our device always sits at index 0 */ in reada_find_zone()
275 zone->devs[i] = bbio->stripes[i].dev; in reada_find_zone()
280 ret = radix_tree_insert(&dev->reada_zones, in reada_find_zone()
286 ret = radix_tree_gang_lookup(&dev->reada_zones, (void **)&zone, in reada_find_zone()
307 struct btrfs_device *dev; in reada_find_extent() local
355 dev = bbio->stripes[nzones].dev; in reada_find_extent()
358 if (!dev->bdev) in reada_find_extent()
[all …]
Dscrub.c65 struct btrfs_device *dev; member
86 struct btrfs_device *dev; member
199 struct btrfs_device *dev; member
238 u64 physical, struct btrfs_device *dev, u64 flags,
647 struct btrfs_fs_info *fs_info = swarn->dev->fs_info; in scrub_print_warning_inode()
708 rcu_str_deref(swarn->dev->name), in scrub_print_warning_inode()
721 rcu_str_deref(swarn->dev->name), in scrub_print_warning_inode()
731 struct btrfs_device *dev; in scrub_print_warning() local
747 dev = sblock->pagev[0]->dev; in scrub_print_warning()
757 swarn.dev = NULL; in scrub_print_warning()
[all …]
Dvolumes.c194 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev);
380 struct btrfs_device *dev; in __alloc_device() local
382 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in __alloc_device()
383 if (!dev) in __alloc_device()
390 dev->flush_bio = bio_alloc_bioset(GFP_KERNEL, 0, NULL); in __alloc_device()
391 if (!dev->flush_bio) { in __alloc_device()
392 kfree(dev); in __alloc_device()
396 INIT_LIST_HEAD(&dev->dev_list); in __alloc_device()
397 INIT_LIST_HEAD(&dev->dev_alloc_list); in __alloc_device()
398 INIT_LIST_HEAD(&dev->post_commit_list); in __alloc_device()
[all …]
Dcheck-integrity.c212 struct btrfsic_dev_state *dev; member
286 static struct btrfsic_dev_state *btrfsic_dev_state_hashtable_lookup(dev_t dev,
374 static struct btrfsic_dev_state *btrfsic_dev_state_lookup(dev_t dev);
614 static struct btrfsic_dev_state *btrfsic_dev_state_hashtable_lookup(dev_t dev, in btrfsic_dev_state_hashtable_lookup() argument
618 dev & (BTRFSIC_DEV2STATE_HASHTABLE_SIZE - 1); in btrfsic_dev_state_hashtable_lookup()
622 if (ds->bdev->bd_dev == dev) in btrfsic_dev_state_hashtable_lookup()
726 tmp_next_block_ctx.dev->bdev, in btrfsic_process_superblock()
732 tmp_next_block_ctx.dev->bdev, in btrfsic_process_superblock()
1005 sf->block_ctx->dev->name); in btrfsic_process_metablock()
1125 sf->block_ctx->dev->name); in btrfsic_process_metablock()
[all …]
/fs/nfs/blocklayout/
Ddev.c17 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/
Dcuse.c62 struct device *dev; /* device representing @cdev */ member
115 dev_t devt = inode->i_cdev->dev; in cuse_open()
122 if (pos->dev->devt == devt) { in cuse_open()
296 static void cuse_gendev_release(struct device *dev) in cuse_gendev_release() argument
298 kfree(dev); in cuse_gendev_release()
325 struct device *dev; in cuse_process_init_reply() local
358 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in cuse_process_init_reply()
359 if (!dev) in cuse_process_init_reply()
362 device_initialize(dev); in cuse_process_init_reply()
363 dev_set_uevent_suppress(dev, 1); in cuse_process_init_reply()
[all …]
/fs/
Dchar_dev.c236 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 error = kobj_map(cdev_map, dev, count, NULL, in cdev_add()
534 int cdev_device_add(struct cdev *cdev, struct device *dev) in cdev_device_add() argument
538 if (dev->devt) { in cdev_device_add()
539 cdev_set_parent(cdev, &dev->kobj); in cdev_device_add()
[all …]
/fs/pstore/
Dram.c517 struct device *dev, struct ramoops_context *cxt, in ramoops_init_przs() argument
544 dev_err(dev, "%s record size == 0 (%zu / %u)\n", in ramoops_init_przs()
551 dev_err(dev, "%s record count == 0 (%zu / %zu)\n", in ramoops_init_przs()
558 dev_err(dev, "no room for %s mem region (0x%zx@0x%llx) in (0x%lx@0x%llx)\n", in ramoops_init_przs()
567 dev_err(dev, "%s zone size == 0\n", name); in ramoops_init_przs()
589 dev_err(dev, "failed to request %s mem region (0x%zx@0x%llx): %d\n", in ramoops_init_przs()
613 struct device *dev, struct ramoops_context *cxt, in ramoops_init_prz() argument
623 dev_err(dev, "no room for %s mem region (0x%zx@0x%llx) in (0x%lx@0x%llx)\n", in ramoops_init_prz()
636 dev_err(dev, "failed to request %s mem region (0x%zx@0x%llx): %d\n", in ramoops_init_prz()
653 ret = of_property_read_u32(pdev->dev.of_node, propname, &val32); in ramoops_parse_dt_size()
[all …]
/fs/proc/
Dconsoles.c31 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()
Dnommu.c37 dev_t dev = 0; in nommu_region_show() local
45 dev = inode->i_sb->s_dev; in nommu_region_show()
59 MAJOR(dev), MINOR(dev), ino); in nommu_region_show()
/fs/nfsd/
Dblocklayout.c149 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 …]
Dnfsfh.h89 static inline void mk_fsid(int vers, u32 *fsidv, dev_t dev, ino_t ino, in mk_fsid() argument
95 fsidv[0] = (__force __u32)htonl((MAJOR(dev)<<16) | in mk_fsid()
96 MINOR(dev)); in mk_fsid()
103 fsidv[0] = (__force __u32)htonl(MAJOR(dev)); in mk_fsid()
104 fsidv[1] = (__force __u32)htonl(MINOR(dev)); in mk_fsid()
109 fsidv[0] = new_encode_dev(dev); in mk_fsid()
/fs/ufs/
Dutil.c185 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()
/fs/nilfs2/
Dsysfs.c245 NILFS_DEV_INT_GROUP_OPS(mounted_snapshots, dev);
246 NILFS_DEV_INT_GROUP_TYPE(mounted_snapshots, dev);
247 NILFS_DEV_INT_GROUP_FNS(mounted_snapshots, dev);
358 NILFS_DEV_INT_GROUP_OPS(checkpoints, dev);
359 NILFS_DEV_INT_GROUP_TYPE(checkpoints, dev);
360 NILFS_DEV_INT_GROUP_FNS(checkpoints, dev);
447 NILFS_DEV_INT_GROUP_OPS(segments, dev);
448 NILFS_DEV_INT_GROUP_TYPE(segments, dev);
449 NILFS_DEV_INT_GROUP_FNS(segments, dev);
708 NILFS_DEV_INT_GROUP_OPS(segctor, dev);
[all …]
/fs/cifs/
Dcifs_dfs_ref.c67 char *dev; in cifs_build_devname() local
91 dev = kmalloc(2 + unclen + 1 + pplen + 1, GFP_KERNEL); in cifs_build_devname()
92 if (!dev) in cifs_build_devname()
95 pos = dev; in cifs_build_devname()
117 convert_delimiter(dev, '/'); in cifs_build_devname()
118 return dev; in cifs_build_devname()
/fs/quota/
Dnetlink.c37 void quota_send_warning(struct kqid qid, dev_t dev, in quota_send_warning() argument
74 ret = nla_put_u32(skb, QUOTA_NL_A_DEV_MAJOR, MAJOR(dev)); in quota_send_warning()
77 ret = nla_put_u32(skb, QUOTA_NL_A_DEV_MINOR, MINOR(dev)); in quota_send_warning()

123456