/fs/nfs/ |
D | nfstrace.h | 52 __field(dev_t, dev) 60 __entry->dev = inode->i_sb->s_dev; 68 MAJOR(__entry->dev), MINOR(__entry->dev), 85 __field(dev_t, dev) 98 __entry->dev = inode->i_sb->s_dev; 113 MAJOR(__entry->dev), MINOR(__entry->dev), 178 __field(dev_t, dev) 184 __entry->dev = dir->i_sb->s_dev; 194 MAJOR(__entry->dev), MINOR(__entry->dev), 222 __field(dev_t, dev) [all …]
|
D | nfs4trace.h | 394 __field(dev_t, dev) 412 __entry->dev = ctx->dentry->d_sb->s_dev; 450 MAJOR(__entry->dev), MINOR(__entry->dev), 453 MAJOR(__entry->dev), MINOR(__entry->dev), 479 __field(dev_t, dev) 490 __entry->dev = inode->i_sb->s_dev; 505 MAJOR(__entry->dev), MINOR(__entry->dev), 523 __field(dev_t, dev) 535 __entry->dev = inode->i_sb->s_dev; 553 MAJOR(__entry->dev), MINOR(__entry->dev), [all …]
|
/fs/xfs/ |
D | xfs_message.h | 33 #define xfs_printk_ratelimited(func, dev, fmt, ...) \ argument 39 func(dev, fmt, ##__VA_ARGS__); \ 42 #define xfs_emerg_ratelimited(dev, fmt, ...) \ argument 43 xfs_printk_ratelimited(xfs_emerg, dev, fmt, ##__VA_ARGS__) 44 #define xfs_alert_ratelimited(dev, fmt, ...) \ argument 45 xfs_printk_ratelimited(xfs_alert, dev, fmt, ##__VA_ARGS__) 46 #define xfs_crit_ratelimited(dev, fmt, ...) \ argument 47 xfs_printk_ratelimited(xfs_crit, dev, fmt, ##__VA_ARGS__) 48 #define xfs_err_ratelimited(dev, fmt, ...) \ argument 49 xfs_printk_ratelimited(xfs_err, dev, fmt, ##__VA_ARGS__) [all …]
|
D | xfs_trace.h | 48 __field(dev_t, dev) 61 __entry->dev = VFS_I(ctx->dp)->i_sb->s_dev; 74 MAJOR(__entry->dev), MINOR(__entry->dev), 109 __field(dev_t, dev) 115 __entry->dev = mp->m_super->s_dev; 121 MAJOR(__entry->dev), MINOR(__entry->dev), 146 __field(dev_t, dev) 150 __entry->dev = mp->m_super->s_dev; 154 MAJOR(__entry->dev), MINOR(__entry->dev), 172 __field(dev_t, dev) [all …]
|
/fs/gfs2/ |
D | trace_gfs2.h | 96 __field( dev_t, dev ) 107 __entry->dev = gl->gl_name.ln_sbd->sd_vfs->s_dev; 118 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->gltype, 135 __field( dev_t, dev ) 143 __entry->dev = gl->gl_name.ln_sbd->sd_vfs->s_dev; 151 MAJOR(__entry->dev), MINOR(__entry->dev), 167 __field( dev_t, dev ) 177 __entry->dev = gl->gl_name.ln_sbd->sd_vfs->s_dev; 187 MAJOR(__entry->dev), MINOR(__entry->dev), __entry->gltype, 204 __field( dev_t, dev ) [all …]
|
/fs/btrfs/ |
D | volumes.h | 162 btrfs_device_get_##name(const struct btrfs_device *dev) \ 168 seq = read_seqcount_begin(&dev->data_seqcount); \ 169 size = dev->name; \ 170 } while (read_seqcount_retry(&dev->data_seqcount, seq)); \ 175 btrfs_device_set_##name(struct btrfs_device *dev, u64 size) \ 178 write_seqcount_begin(&dev->data_seqcount); \ 179 dev->name = size; \ 180 write_seqcount_end(&dev->data_seqcount); \ 186 btrfs_device_get_##name(const struct btrfs_device *dev) \ 191 size = dev->name; \ [all …]
|
D | reada.c | 247 struct btrfs_device *dev, u64 logical, in reada_find_zone() argument 259 ret = radix_tree_gang_lookup(&dev->reada_zones, (void **)&zone, in reada_find_zone() 288 zone->device = dev; /* our device always sits at index 0 */ in reada_find_zone() 291 zone->devs[i] = bbio->stripes[i].dev; in reada_find_zone() 296 ret = radix_tree_insert(&dev->reada_zones, in reada_find_zone() 302 ret = radix_tree_gang_lookup(&dev->reada_zones, (void **)&zone, in reada_find_zone() 323 struct btrfs_device *dev; in reada_find_extent() local 373 dev = bbio->stripes[nzones].dev; in reada_find_extent() 376 if (!dev->bdev) in reada_find_extent() 379 zone = reada_find_zone(fs_info, dev, logical, bbio); in reada_find_extent() [all …]
|
D | scrub.c | 75 struct btrfs_device *dev; member 96 struct btrfs_device *dev; member 210 struct btrfs_device *dev; member 240 struct btrfs_device *dev; member 274 u64 physical, struct btrfs_device *dev, u64 flags, 288 struct btrfs_device *dev, 457 struct scrub_ctx *scrub_setup_ctx(struct btrfs_device *dev, int is_dev_replace) in scrub_setup_ctx() argument 461 struct btrfs_fs_info *fs_info = dev->dev_root->fs_info; in scrub_setup_ctx() 471 sctx->dev_root = dev->dev_root; in scrub_setup_ctx() 492 sctx->nodesize = dev->dev_root->nodesize; in scrub_setup_ctx() [all …]
|
D | volumes.c | 140 static void __btrfs_reset_dev_stats(struct btrfs_device *dev); 141 static void btrfs_dev_stat_print_on_error(struct btrfs_device *dev); 235 struct btrfs_device *dev; in __alloc_device() local 237 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in __alloc_device() 238 if (!dev) in __alloc_device() 241 INIT_LIST_HEAD(&dev->dev_list); in __alloc_device() 242 INIT_LIST_HEAD(&dev->dev_alloc_list); in __alloc_device() 243 INIT_LIST_HEAD(&dev->resized_list); in __alloc_device() 245 spin_lock_init(&dev->io_lock); in __alloc_device() 247 spin_lock_init(&dev->reada_lock); in __alloc_device() [all …]
|
/fs/fuse/ |
D | cuse.c | 60 struct device *dev; /* device representing @cdev */ member 113 dev_t devt = inode->i_cdev->dev; in cuse_open() 120 if (pos->dev->devt == devt) { in cuse_open() 295 static void cuse_gendev_release(struct device *dev) in cuse_gendev_release() argument 297 kfree(dev); in cuse_gendev_release() 313 struct device *dev; in cuse_process_init_reply() local 348 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in cuse_process_init_reply() 349 if (!dev) in cuse_process_init_reply() 352 device_initialize(dev); in cuse_process_init_reply() 353 dev_set_uevent_suppress(dev, 1); in cuse_process_init_reply() [all …]
|
/fs/nfs/blocklayout/ |
D | dev.c | 16 bl_free_device(struct pnfs_block_dev *dev) in bl_free_device() argument 18 if (dev->nr_children) { in bl_free_device() 21 for (i = 0; i < dev->nr_children; i++) in bl_free_device() 22 bl_free_device(&dev->children[i]); in bl_free_device() 23 kfree(dev->children); in bl_free_device() 25 if (dev->pr_registered) { in bl_free_device() 27 dev->bdev->bd_disk->fops->pr_ops; in bl_free_device() 30 error = ops->pr_register(dev->bdev, dev->pr_key, 0, in bl_free_device() 36 if (dev->bdev) in bl_free_device() 37 blkdev_put(dev->bdev, FMODE_READ | FMODE_WRITE); in bl_free_device() [all …]
|
/fs/afs/ |
D | netdevices.c | 20 struct net_device *dev; in afs_get_MAC_address() local 26 dev = __dev_getfirstbyhwtype(&init_net, ARPHRD_ETHER); in afs_get_MAC_address() 27 if (dev) { in afs_get_MAC_address() 28 memcpy(mac, dev->dev_addr, maclen); in afs_get_MAC_address() 43 struct net_device *dev; in afs_get_ipv4_interfaces() local 50 for_each_netdev(&init_net, dev) { in afs_get_ipv4_interfaces() 51 if (dev->type == ARPHRD_LOOPBACK && !wantloopback) in afs_get_ipv4_interfaces() 53 idev = __in_dev_get_rtnl(dev); in afs_get_ipv4_interfaces() 59 bufs[n].mtu = dev->mtu; in afs_get_ipv4_interfaces()
|
/fs/exofs/ |
D | ore.c | 458 unsigned dev = per_dev->dev - ios->oc->first_dev; in ore_check_io() local 459 struct ore_dev *od = ios->oc->ods[dev]; in ore_check_io() 461 on_dev_error(ios, od, dev, osi.osd_err_pri, in ore_check_io() 569 si->dev = (group_width + group_width + C - RxP) % in ore_calc_stripe_info() 576 si->dev = C; in ore_calc_stripe_info() 579 si->dev *= layout->mirrors_p1; in ore_calc_stripe_info() 599 osd_request_queue(_ios_od(ios, per_dev->dev)); in _ore_add_stripe_unit() 662 unsigned dev, unsigned first_dev, in _add_parity_units() argument 672 per_dev = &ios->per_dev[dev - first_dev]; in _add_parity_units() 678 per_dev->dev = dev; in _add_parity_units() [all …]
|
/fs/pstore/ |
D | ram.c | 409 static int ramoops_init_przs(struct device *dev, struct ramoops_context *cxt, in ramoops_init_przs() argument 419 dev_err(dev, "no room for dumps\n"); in ramoops_init_przs() 430 dev_err(dev, "failed to initialize a prz array for dumps\n"); in ramoops_init_przs() 440 dev_err(dev, "failed to request mem region (0x%zx@0x%llx): %d\n", in ramoops_init_przs() 460 static int ramoops_init_prz(struct device *dev, struct ramoops_context *cxt, in ramoops_init_prz() argument 468 dev_err(dev, "no room for mem region (0x%zx@0x%llx) in (0x%lx@0x%llx)\n", in ramoops_init_prz() 479 dev_err(dev, "failed to request mem region (0x%zx@0x%llx): %d\n", in ramoops_init_prz() 497 ret = of_property_read_u32(pdev->dev.of_node, propname, &val32); in ramoops_parse_dt_size() 499 dev_err(&pdev->dev, "failed to parse property %s: %d\n", in ramoops_parse_dt_size() 505 dev_err(&pdev->dev, "%s %u > INT_MAX\n", propname, val32); in ramoops_parse_dt_size() [all …]
|
/fs/ |
D | char_dev.c | 214 int alloc_chrdev_region(dev_t *dev, unsigned baseminor, unsigned count, in alloc_chrdev_region() argument 221 *dev = MKDEV(cd->major, cd->baseminor); in alloc_chrdev_region() 435 static struct kobject *exact_match(dev_t dev, int *part, void *data) in exact_match() argument 441 static int exact_lock(dev_t dev, void *data) in exact_lock() argument 457 int cdev_add(struct cdev *p, dev_t dev, unsigned count) in cdev_add() argument 461 p->dev = dev; in cdev_add() 464 error = kobj_map(cdev_map, dev, count, NULL, in cdev_add() 474 static void cdev_unmap(dev_t dev, unsigned count) in cdev_unmap() argument 476 kobj_unmap(cdev_map, dev, count); in cdev_unmap() 488 cdev_unmap(p->dev, p->count); in cdev_del() [all …]
|
D | super.c | 736 struct super_block *user_get_super(dev_t dev) in user_get_super() argument 745 if (sb->s_dev == dev) { in user_get_super() 917 int dev; in get_anon_bdev() local 924 error = ida_get_new_above(&unnamed_dev_ida, unnamed_dev_start, &dev); in get_anon_bdev() 926 unnamed_dev_start = dev + 1; in get_anon_bdev() 934 if (dev >= (1 << MINORBITS)) { in get_anon_bdev() 936 ida_remove(&unnamed_dev_ida, dev); in get_anon_bdev() 937 if (unnamed_dev_start > dev) in get_anon_bdev() 938 unnamed_dev_start = dev; in get_anon_bdev() 942 *p = MKDEV(0, dev & MINORMASK); in get_anon_bdev() [all …]
|
/fs/nfsd/ |
D | blocklayout.c | 146 struct pnfs_block_deviceaddr *dev; in nfsd4_block_get_device_info_simple() local 149 dev = kzalloc(sizeof(struct pnfs_block_deviceaddr) + in nfsd4_block_get_device_info_simple() 151 if (!dev) in nfsd4_block_get_device_info_simple() 153 gdp->gd_device = dev; in nfsd4_block_get_device_info_simple() 155 dev->nr_volumes = 1; in nfsd4_block_get_device_info_simple() 156 b = &dev->volumes[0]; in nfsd4_block_get_device_info_simple() 311 struct pnfs_block_deviceaddr *dev; in nfsd4_block_get_device_info_scsi() local 316 dev = kzalloc(sizeof(struct pnfs_block_deviceaddr) + in nfsd4_block_get_device_info_scsi() 318 if (!dev) in nfsd4_block_get_device_info_scsi() 320 gdp->gd_device = dev; in nfsd4_block_get_device_info_scsi() [all …]
|
D | nfsfh.h | 87 static inline void mk_fsid(int vers, u32 *fsidv, dev_t dev, ino_t ino, in mk_fsid() argument 93 fsidv[0] = (__force __u32)htonl((MAJOR(dev)<<16) | in mk_fsid() 94 MINOR(dev)); in mk_fsid() 101 fsidv[0] = (__force __u32)htonl(MAJOR(dev)); in mk_fsid() 102 fsidv[1] = (__force __u32)htonl(MINOR(dev)); in mk_fsid() 107 fsidv[0] = new_encode_dev(dev); in mk_fsid()
|
/fs/proc/ |
D | consoles.c | 32 dev_t dev = 0; in show_console_dev() local 39 dev = MKDEV(driver->major, driver->minor_start); in show_console_dev() 40 dev += index; in show_console_dev() 55 if (dev) in show_console_dev() 56 seq_printf(m, " %4d:%d", MAJOR(dev), MINOR(dev)); in show_console_dev()
|
D | nommu.c | 41 dev_t dev = 0; in nommu_region_show() local 49 dev = inode->i_sb->s_dev; in nommu_region_show() 63 MAJOR(dev), MINOR(dev), ino); in nommu_region_show()
|
/fs/ufs/ |
D | util.c | 184 dev_t dev; in ufs_get_inode_dev() local 195 dev = old_decode_dev(fs32 & 0x7fff); in ufs_get_inode_dev() 197 dev = MKDEV(sysv_major(fs32), sysv_minor(fs32)); in ufs_get_inode_dev() 201 dev = old_decode_dev(fs32); in ufs_get_inode_dev() 204 return dev; in ufs_get_inode_dev() 208 ufs_set_inode_dev(struct super_block *sb, struct ufs_inode_info *ufsi, dev_t dev) in ufs_set_inode_dev() argument 215 fs32 = sysv_encode_dev(dev); in ufs_set_inode_dev() 217 fs32 = old_encode_dev(dev); in ufs_set_inode_dev() 222 fs32 = old_encode_dev(dev); in ufs_set_inode_dev()
|
/fs/nilfs2/ |
D | sysfs.c | 254 NILFS_DEV_INT_GROUP_OPS(mounted_snapshots, dev); 255 NILFS_DEV_INT_GROUP_TYPE(mounted_snapshots, dev); 256 NILFS_DEV_INT_GROUP_FNS(mounted_snapshots, dev); 367 NILFS_DEV_INT_GROUP_OPS(checkpoints, dev); 368 NILFS_DEV_INT_GROUP_TYPE(checkpoints, dev); 369 NILFS_DEV_INT_GROUP_FNS(checkpoints, dev); 456 NILFS_DEV_INT_GROUP_OPS(segments, dev); 457 NILFS_DEV_INT_GROUP_TYPE(segments, dev); 458 NILFS_DEV_INT_GROUP_FNS(segments, dev); 718 NILFS_DEV_INT_GROUP_OPS(segctor, dev); [all …]
|
D | sysfs.h | 82 NILFS_DEV_ATTR_STRUCT(dev); 121 NILFS_INFO_ATTR(dev, name) 123 NILFS_RO_ATTR(dev, name) 125 NILFS_RW_ATTR(dev, name)
|
/fs/cifs/ |
D | cifs_dfs_ref.c | 69 char *dev; in cifs_build_devname() local 93 dev = kmalloc(2 + unclen + 1 + pplen + 1, GFP_KERNEL); in cifs_build_devname() 94 if (!dev) in cifs_build_devname() 97 pos = dev; in cifs_build_devname() 119 convert_delimiter(dev, '/'); in cifs_build_devname() 120 return dev; in cifs_build_devname()
|
/fs/quota/ |
D | netlink.c | 42 void quota_send_warning(struct kqid qid, dev_t dev, in quota_send_warning() argument 79 ret = nla_put_u32(skb, QUOTA_NL_A_DEV_MAJOR, MAJOR(dev)); in quota_send_warning() 82 ret = nla_put_u32(skb, QUOTA_NL_A_DEV_MINOR, MINOR(dev)); in quota_send_warning()
|