/fs/efs/ |
D | inode.c | 54 u32 rdev; in efs_iget() local 118 rdev = be16_to_cpu(efs_inode->di_u.di_dev.odev); in efs_iget() 119 if (rdev == 0xffff) { in efs_iget() 120 rdev = be32_to_cpu(efs_inode->di_u.di_dev.ndev); in efs_iget() 121 if (sysv_major(rdev) > 0xfff) in efs_iget() 124 device = MKDEV(sysv_major(rdev), sysv_minor(rdev)); in efs_iget() 126 device = old_decode_dev(rdev); in efs_iget()
|
/fs/squashfs/ |
D | inode.c | 310 unsigned int rdev; in squashfs_read_inode() local 322 rdev = le32_to_cpu(sqsh_ino->rdev); in squashfs_read_inode() 323 init_special_inode(inode, inode->i_mode, new_decode_dev(rdev)); in squashfs_read_inode() 326 SQUASHFS_INODE_BLK(ino), offset, rdev); in squashfs_read_inode() 332 unsigned int rdev; in squashfs_read_inode() local 346 rdev = le32_to_cpu(sqsh_ino->rdev); in squashfs_read_inode() 347 init_special_inode(inode, inode->i_mode, new_decode_dev(rdev)); in squashfs_read_inode() 350 SQUASHFS_INODE_BLK(ino), offset, rdev); in squashfs_read_inode()
|
D | squashfs_fs.h | 307 __le32 rdev; member 318 __le32 rdev; member
|
/fs/9p/ |
D | vfs_inode.c | 110 struct p9_wstat *stat, dev_t *rdev) in p9mode2unixmode() argument 115 *rdev = 0; in p9mode2unixmode() 151 *rdev = MKDEV(major, minor); in p9mode2unixmode() 260 struct inode *inode, umode_t mode, dev_t rdev) in v9fs_init_inode() argument 266 inode->i_rdev = rdev; in v9fs_init_inode() 359 struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t rdev) in v9fs_get_inode() argument 373 err = v9fs_init_inode(v9ses, inode, mode, rdev); in v9fs_get_inode() 408 dev_t rdev; in v9fs_test_inode() local 413 umode = p9mode2unixmode(v9ses, st, &rdev); in v9fs_test_inode() 450 dev_t rdev; in v9fs_qid_iget() local [all …]
|
D | v9fs_vfs.h | 48 dev_t rdev); 51 struct inode *inode, umode_t mode, dev_t rdev);
|
D | vfs_inode_dotl.c | 35 struct dentry *dentry, umode_t omode, dev_t rdev); 831 struct dentry *dentry, umode_t omode, dev_t rdev) in v9fs_vfs_mknod_dotl() argument 845 MAJOR(rdev), MINOR(rdev)); in v9fs_vfs_mknod_dotl() 866 err = p9_client_mknod_dotl(dfid, name, mode, rdev, gid, &qid); in v9fs_vfs_mknod_dotl() 897 inode = v9fs_get_inode(dir->i_sb, mode, rdev); in v9fs_vfs_mknod_dotl()
|
/fs/freevxfs/ |
D | vxfs_inode.h | 92 __fs32 rdev; member 115 #define vdi_rdev vdi_ftarea.rdev 145 __u32 rdev; member 157 #define vii_rdev vii_ftarea.rdev
|
/fs/ |
D | stat.c | 53 stat->rdev = inode->i_rdev; in generic_fillattr() 304 tmp.st_rdev = old_encode_dev(stat->rdev); in cp_old_stat() 373 if (sizeof(tmp.st_rdev) < 4 && !old_valid_dev(stat->rdev)) in cp_new_stat() 391 tmp.st_rdev = new_encode_dev(stat->rdev); in cp_new_stat() 520 tmp.st_rdev = new_encode_dev(stat->rdev); in cp_new_stat64() 523 tmp.st_rdev = huge_encode_dev(stat->rdev); in cp_new_stat64() 621 tmp.stx_rdev_major = MAJOR(stat->rdev); in cp_statx() 622 tmp.stx_rdev_minor = MINOR(stat->rdev); in cp_statx() 683 if (sizeof(tmp.st_rdev) < 4 && !old_valid_dev(stat->rdev)) in cp_compat_stat() 697 tmp.st_rdev = new_encode_dev(stat->rdev); in cp_compat_stat()
|
/fs/ufs/ |
D | namei.c | 90 struct dentry *dentry, umode_t mode, dev_t rdev) in ufs_mknod() argument 95 if (!old_valid_dev(rdev)) in ufs_mknod() 101 init_special_inode(inode, mode, rdev); in ufs_mknod() 102 ufs_set_inode_dev(inode->i_sb, UFS_I(inode), rdev); in ufs_mknod()
|
/fs/xfs/ |
D | xfs_iops.c | 169 dev_t rdev, in xfs_generic_create() argument 183 if (unlikely(!sysv_valid_dev(rdev) || MAJOR(rdev) & ~0x1ff)) in xfs_generic_create() 186 rdev = 0; in xfs_generic_create() 199 error = xfs_create(mnt_userns, XFS_I(dir), &name, mode, rdev, in xfs_generic_create() 262 dev_t rdev) in xfs_vn_mknod() argument 264 return xfs_generic_create(mnt_userns, dir, dentry, mode, rdev, NULL); in xfs_vn_mknod() 607 stat->rdev = inode->i_rdev; in xfs_vn_getattr() 621 stat->rdev = 0; in xfs_vn_getattr()
|
/fs/sysv/ |
D | namei.c | 45 struct dentry *dentry, umode_t mode, dev_t rdev) in sysv_mknod() argument 50 if (!old_valid_dev(rdev)) in sysv_mknod() 57 sysv_set_inode(inode, rdev); in sysv_mknod()
|
/fs/minix/ |
D | namei.c | 37 struct dentry *dentry, umode_t mode, dev_t rdev) in minix_mknod() argument 42 if (!old_valid_dev(rdev)) in minix_mknod() 48 minix_set_inode(inode, rdev); in minix_mknod()
|
/fs/ubifs/ |
D | misc.h | 146 static inline int ubifs_encode_dev(union ubifs_dev_desc *dev, dev_t rdev) in ubifs_encode_dev() argument 148 dev->new = cpu_to_le32(new_encode_dev(rdev)); in ubifs_encode_dev()
|
/fs/nfs/ |
D | nfs2xdr.c | 269 u32 rdev, type; in decode_fattr() local 292 rdev = be32_to_cpup(p++); in decode_fattr() 293 fattr->rdev = new_decode_dev(rdev); in decode_fattr() 294 if (type == (u32)NFCHR && rdev == (u32)NFS2_FIFO_DEV) { in decode_fattr() 296 fattr->rdev = 0; in decode_fattr()
|
D | nfs3xdr.c | 390 static void encode_specdata3(struct xdr_stream *xdr, const dev_t rdev) in encode_specdata3() argument 395 *p++ = cpu_to_be32(MAJOR(rdev)); in encode_specdata3() 396 *p = cpu_to_be32(MINOR(rdev)); in encode_specdata3() 399 static __be32 *xdr_decode_specdata3(__be32 *p, dev_t *rdev) in xdr_decode_specdata3() argument 405 *rdev = MKDEV(major, minor); in xdr_decode_specdata3() 406 if (MAJOR(*rdev) != major || MINOR(*rdev) != minor) in xdr_decode_specdata3() 407 *rdev = 0; in xdr_decode_specdata3() 646 p = xdr_decode_specdata3(p, &fattr->rdev); in decode_fattr3() 1127 encode_specdata3(xdr, args->rdev); in encode_devicedata3()
|
D | nfs3proc.c | 713 dev_t rdev) in nfs3_proc_mknod() argument 721 MAJOR(rdev), MINOR(rdev)); in nfs3_proc_mknod() 736 data->arg.mknod.rdev = rdev; in nfs3_proc_mknod()
|
/fs/jffs2/ |
D | nodelist.h | 316 static inline int jffs2_encode_dev(union jffs2_device_node *jdev, dev_t rdev) in jffs2_encode_dev() argument 318 if (old_valid_dev(rdev)) { in jffs2_encode_dev() 319 jdev->old_id = cpu_to_je16(old_encode_dev(rdev)); in jffs2_encode_dev() 322 jdev->new_id = cpu_to_je32(new_encode_dev(rdev)); in jffs2_encode_dev()
|
D | fs.c | 260 dev_t rdev = 0; in jffs2_iget() local 342 rdev = old_decode_dev(je16_to_cpu(jdev.old_id)); in jffs2_iget() 344 rdev = new_decode_dev(je32_to_cpu(jdev.new_id)); in jffs2_iget() 350 init_special_inode(inode, inode->i_mode, rdev); in jffs2_iget()
|
/fs/overlayfs/ |
D | dir.c | 201 attr->rdev); in ovl_create_real() 638 static int ovl_create_object(struct dentry *dentry, int mode, dev_t rdev, in ovl_create_object() argument 644 .rdev = rdev, in ovl_create_object() 654 inode = ovl_new_inode(dentry->d_sb, mode, rdev); in ovl_create_object() 689 struct dentry *dentry, umode_t mode, dev_t rdev) in ovl_mknod() argument 692 if (S_ISCHR(mode) && rdev == WHITEOUT_DEV) in ovl_mknod() 695 return ovl_create_object(dentry, mode, rdev, NULL); in ovl_mknod()
|
/fs/nfsd/ |
D | nfsproc.c | 274 dev_t rdev = 0, wanted = new_decode_dev(attr->ia_size); in nfsd_proc_create() local 336 rdev = inode->i_rdev; in nfsd_proc_create() 372 rdev = 0; in nfsd_proc_create() 378 if (!rdev) in nfsd_proc_create() 379 rdev = wanted; in nfsd_proc_create() 395 rdev, newfhp); in nfsd_proc_create()
|
D | vfs.h | 82 struct nfsd_attrs *attrs, int type, dev_t rdev, 86 int type, dev_t rdev, struct svc_fh *res);
|
D | nfs3proc.c | 449 dev_t rdev = 0; in nfsd3_proc_mknod() local 460 rdev = MKDEV(argp->major, argp->minor); in nfsd3_proc_mknod() 461 if (MAJOR(rdev) != argp->major || in nfsd3_proc_mknod() 462 MINOR(rdev) != argp->minor) { in nfsd3_proc_mknod() 473 &attrs, type, rdev, &resp->fh); in nfsd3_proc_mknod()
|
/fs/erofs/ |
D | erofs_fs.h | 153 __le32 rdev; member 185 __le32 rdev; member
|
/fs/hpfs/ |
D | inode.c | 90 int rdev = 0; in hpfs_read_inode() local 101 rdev = le32_to_cpu(*(__le32*)ea); in hpfs_read_inode() 111 new_decode_dev(rdev)); in hpfs_read_inode()
|
/fs/ntfs3/ |
D | namei.c | 122 struct dentry *dentry, umode_t mode, dev_t rdev) in ntfs_mknod() argument 126 inode = ntfs_create_inode(mnt_userns, dir, dentry, NULL, mode, rdev, in ntfs_mknod()
|