Home
last modified time | relevance | path

Searched refs:rdev (Results 1 – 25 of 69) sorted by relevance

123

/fs/9p/
Dvfs_inode.c111 struct p9_wstat *stat, dev_t *rdev) in p9mode2unixmode() argument
116 *rdev = 0; in p9mode2unixmode()
147 *rdev = MKDEV(major, minor); in p9mode2unixmode()
250 struct inode *inode, umode_t mode, dev_t rdev) in v9fs_init_inode() argument
256 inode->i_rdev = rdev; in v9fs_init_inode()
348 struct inode *v9fs_get_inode(struct super_block *sb, umode_t mode, dev_t rdev) in v9fs_get_inode() argument
362 err = v9fs_init_inode(v9ses, inode, mode, rdev); in v9fs_get_inode()
394 dev_t rdev; in v9fs_test_inode() local
399 umode = p9mode2unixmode(v9ses, st, &rdev); in v9fs_test_inode()
436 dev_t rdev; in v9fs_qid_iget() local
[all …]
Dvfs_inode_dotl.c37 dev_t rdev);
815 dev_t rdev) in v9fs_vfs_mknod_dotl() argument
829 MAJOR(rdev), MINOR(rdev)); in v9fs_vfs_mknod_dotl()
851 err = p9_client_mknod_dotl(dfid, name, mode, rdev, gid, &qid); in v9fs_vfs_mknod_dotl()
884 inode = v9fs_get_inode(dir->i_sb, mode, rdev); in v9fs_vfs_mknod_dotl()
/fs/efs/
Dinode.c52 u32 rdev; in efs_iget() local
116 rdev = be16_to_cpu(efs_inode->di_u.di_dev.odev); in efs_iget()
117 if (rdev == 0xffff) { in efs_iget()
118 rdev = be32_to_cpu(efs_inode->di_u.di_dev.ndev); in efs_iget()
119 if (sysv_major(rdev) > 0xfff) in efs_iget()
122 device = MKDEV(sysv_major(rdev), sysv_minor(rdev)); in efs_iget()
124 device = old_decode_dev(rdev); in efs_iget()
/fs/squashfs/
Dinode.c310 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()
Dsquashfs_fs.h307 __le32 rdev; member
318 __le32 rdev; member
/fs/freevxfs/
Dvxfs_inode.h117 __fs32 rdev; member
140 #define vdi_rdev vdi_ftarea.rdev
170 __u32 rdev; member
182 #define vii_rdev vii_ftarea.rdev
/fs/
Dstat.c44 stat->rdev = inode->i_rdev; in generic_fillattr()
250 tmp.st_rdev = old_encode_dev(stat->rdev); in cp_old_stat()
319 if (sizeof(tmp.st_rdev) < 4 && !old_valid_dev(stat->rdev)) in cp_new_stat()
337 tmp.st_rdev = new_encode_dev(stat->rdev); in cp_new_stat()
466 tmp.st_rdev = new_encode_dev(stat->rdev); in cp_new_stat64()
469 tmp.st_rdev = huge_encode_dev(stat->rdev); in cp_new_stat64()
567 tmp.stx_rdev_major = MAJOR(stat->rdev); in cp_statx()
568 tmp.stx_rdev_minor = MINOR(stat->rdev); in cp_statx()
620 if (sizeof(tmp.st_rdev) < 4 && !old_valid_dev(stat->rdev)) in cp_compat_stat()
634 tmp.st_rdev = new_encode_dev(stat->rdev); in cp_compat_stat()
/fs/ufs/
Dnamei.c88 static int ufs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t rdev) in ufs_mknod() argument
93 if (!old_valid_dev(rdev)) in ufs_mknod()
99 init_special_inode(inode, mode, rdev); in ufs_mknod()
100 ufs_set_inode_dev(inode->i_sb, UFS_I(inode), rdev); in ufs_mknod()
/fs/xfs/
Dxfs_iops.c134 dev_t rdev, in xfs_generic_create() argument
148 if (unlikely(!sysv_valid_dev(rdev) || MAJOR(rdev) & ~0x1ff)) in xfs_generic_create()
151 rdev = 0; in xfs_generic_create()
164 error = xfs_create(XFS_I(dir), &name, mode, rdev, &ip); in xfs_generic_create()
228 dev_t rdev) in xfs_vn_mknod() argument
230 return xfs_generic_create(dir, dentry, mode, rdev, false); in xfs_vn_mknod()
587 stat->rdev = inode->i_rdev; in xfs_vn_getattr()
591 stat->rdev = 0; in xfs_vn_getattr()
/fs/minix/
Dnamei.c36 static int minix_mknod(struct inode * dir, struct dentry *dentry, umode_t mode, dev_t rdev) in minix_mknod() argument
41 if (!old_valid_dev(rdev)) in minix_mknod()
47 minix_set_inode(inode, rdev); in minix_mknod()
/fs/sysv/
Dnamei.c44 static int sysv_mknod(struct inode * dir, struct dentry * dentry, umode_t mode, dev_t rdev) in sysv_mknod() argument
49 if (!old_valid_dev(rdev)) in sysv_mknod()
56 sysv_set_inode(inode, rdev); in sysv_mknod()
Dinode.c152 void sysv_set_inode(struct inode *inode, dev_t rdev) in sysv_set_inode() argument
167 init_special_inode(inode, inode->i_mode, rdev); in sysv_set_inode()
/fs/ubifs/
Dmisc.h146 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/
Dnfs2xdr.c268 u32 rdev, type; in decode_fattr() local
291 rdev = be32_to_cpup(p++); in decode_fattr()
292 fattr->rdev = new_decode_dev(rdev); in decode_fattr()
293 if (type == (u32)NFCHR && rdev == (u32)NFS2_FIFO_DEV) { in decode_fattr()
295 fattr->rdev = 0; in decode_fattr()
Dnfs3xdr.c388 static void encode_specdata3(struct xdr_stream *xdr, const dev_t rdev) in encode_specdata3() argument
393 *p++ = cpu_to_be32(MAJOR(rdev)); in encode_specdata3()
394 *p = cpu_to_be32(MINOR(rdev)); in encode_specdata3()
397 static __be32 *xdr_decode_specdata3(__be32 *p, dev_t *rdev) in xdr_decode_specdata3() argument
403 *rdev = MKDEV(major, minor); in xdr_decode_specdata3()
404 if (MAJOR(*rdev) != major || MINOR(*rdev) != minor) in xdr_decode_specdata3()
405 *rdev = 0; in xdr_decode_specdata3()
644 p = xdr_decode_specdata3(p, &fattr->rdev); in decode_fattr3()
1124 encode_specdata3(xdr, args->rdev); in encode_devicedata3()
Dnfs3proc.c690 dev_t rdev) in nfs3_proc_mknod() argument
698 MAJOR(rdev), MINOR(rdev)); in nfs3_proc_mknod()
713 data->arg.mknod.rdev = rdev; in nfs3_proc_mknod()
/fs/nfsd/
Dnfsproc.c266 dev_t rdev = 0, wanted = new_decode_dev(attr->ia_size); in nfsd_proc_create() local
328 rdev = inode->i_rdev; in nfsd_proc_create()
364 rdev = 0; in nfsd_proc_create()
370 if (!rdev) in nfsd_proc_create()
371 rdev = wanted; in nfsd_proc_create()
387 argp->len, attr, type, rdev, in nfsd_proc_create()
Dvfs.h66 int type, dev_t rdev, struct svc_fh *res);
69 int type, dev_t rdev, struct svc_fh *res);
Dnfs3proc.c314 dev_t rdev = 0; in nfsd3_proc_mknod() local
325 rdev = MKDEV(argp->major, argp->minor); in nfsd3_proc_mknod()
326 if (MAJOR(rdev) != argp->major || in nfsd3_proc_mknod()
327 MINOR(rdev) != argp->minor) { in nfsd3_proc_mknod()
338 &argp->attrs, type, rdev, &resp->fh); in nfsd3_proc_mknod()
/fs/jffs2/
Dnodelist.h316 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()
Dfs.c259 dev_t rdev = 0; in jffs2_iget() local
341 rdev = old_decode_dev(je16_to_cpu(jdev.old_id)); in jffs2_iget()
343 rdev = new_decode_dev(je32_to_cpu(jdev.new_id)); in jffs2_iget()
349 init_special_inode(inode, inode->i_mode, rdev); in jffs2_iget()
/fs/overlayfs/
Ddir.c200 attr->rdev); in ovl_create_real()
632 static int ovl_create_object(struct dentry *dentry, int mode, dev_t rdev, in ovl_create_object() argument
638 .rdev = rdev, in ovl_create_object()
648 inode = ovl_new_inode(dentry->d_sb, mode, rdev); in ovl_create_object()
682 dev_t rdev) in ovl_mknod() argument
685 if (S_ISCHR(mode) && rdev == WHITEOUT_DEV) in ovl_mknod()
688 return ovl_create_object(dentry, mode, rdev, NULL); in ovl_mknod()
Dinode.c651 static void ovl_fill_inode(struct inode *inode, umode_t mode, dev_t rdev) in ovl_fill_inode() argument
679 init_special_inode(inode, mode, rdev); in ovl_fill_inode()
785 struct inode *ovl_new_inode(struct super_block *sb, umode_t mode, dev_t rdev) in ovl_new_inode() argument
791 ovl_fill_inode(inode, mode, rdev); in ovl_new_inode()
/fs/erofs/
Derofs_fs.h145 __le32 rdev; member
176 __le32 rdev; member
/fs/hpfs/
Dinode.c90 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()

123