/fs/efs/ |
D | inode.c | 52 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/ |
D | stat.c | 29 stat->rdev = inode->i_rdev; in generic_fillattr() 143 tmp.st_rdev = old_encode_dev(stat->rdev); in cp_old_stat() 195 if (!old_valid_dev(stat->dev) || !old_valid_dev(stat->rdev)) in cp_new_stat() 198 if (!new_valid_dev(stat->dev) || !new_valid_dev(stat->rdev)) in cp_new_stat() 218 tmp.st_rdev = old_encode_dev(stat->rdev); in cp_new_stat() 220 tmp.st_rdev = new_encode_dev(stat->rdev); in cp_new_stat() 340 if (!new_valid_dev(stat->dev) || !new_valid_dev(stat->rdev)) in cp_new_stat64() 343 tmp.st_rdev = new_encode_dev(stat->rdev); in cp_new_stat64() 346 tmp.st_rdev = huge_encode_dev(stat->rdev); in cp_new_stat64()
|
/fs/ubifs/ |
D | misc.h | 210 static inline int ubifs_encode_dev(union ubifs_dev_desc *dev, dev_t rdev) in ubifs_encode_dev() argument 212 if (new_valid_dev(rdev)) { in ubifs_encode_dev() 213 dev->new = cpu_to_le32(new_encode_dev(rdev)); in ubifs_encode_dev() 216 dev->huge = cpu_to_le64(huge_encode_dev(rdev)); in ubifs_encode_dev()
|
/fs/freevxfs/ |
D | vxfs_inode.h | 116 u_int32_t rdev; member 139 #define vdi_rdev vdi_ftarea.rdev 170 #define vii_rdev vdi_ftarea.rdev
|
/fs/squashfs/ |
D | inode.c | 300 unsigned int rdev; in squashfs_read_inode() local 312 rdev = le32_to_cpu(sqsh_ino->rdev); in squashfs_read_inode() 313 init_special_inode(inode, inode->i_mode, new_decode_dev(rdev)); in squashfs_read_inode() 316 SQUASHFS_INODE_BLK(ino), offset, rdev); in squashfs_read_inode()
|
/fs/xfs/linux-2.6/ |
D | xfs_iops.c | 201 dev_t rdev) in xfs_vn_mknod() argument 214 if (unlikely(!sysv_valid_dev(rdev) || MAJOR(rdev) & ~0x1ff)) in xfs_vn_mknod() 237 rdev = sysv_encode_dev(rdev); in xfs_vn_mknod() 239 error = xfs_create(XFS_I(dir), &name, mode, rdev, &ip, NULL); in xfs_vn_mknod() 572 stat->rdev = MKDEV(sysv_major(ip->i_df.if_u2.if_rdev) & 0x1ff, in xfs_vn_getattr() 586 stat->rdev = 0; in xfs_vn_getattr()
|
/fs/ufs/ |
D | namei.c | 103 static int ufs_mknod (struct inode * dir, struct dentry *dentry, int mode, dev_t rdev) in ufs_mknod() argument 108 if (!old_valid_dev(rdev)) in ufs_mknod() 113 init_special_inode(inode, mode, rdev); in ufs_mknod() 114 ufs_set_inode_dev(inode->i_sb, UFS_I(inode), rdev); in ufs_mknod()
|
/fs/9p/ |
D | vfs_inode.c | 1132 v9fs_vfs_mknod(struct inode *dir, struct dentry *dentry, int mode, dev_t rdev) in v9fs_vfs_mknod() argument 1139 dentry->d_name.name, mode, MAJOR(rdev), MINOR(rdev)); in v9fs_vfs_mknod() 1141 if (!new_valid_dev(rdev)) in v9fs_vfs_mknod() 1149 sprintf(name, "b %u %u", MAJOR(rdev), MINOR(rdev)); in v9fs_vfs_mknod() 1151 sprintf(name, "c %u %u", MAJOR(rdev), MINOR(rdev)); in v9fs_vfs_mknod()
|
/fs/xfs/ |
D | xfs_utils.c | 62 xfs_dev_t rdev, in xfs_dir_ialloc() argument 100 code = xfs_ialloc(tp, dp, mode, nlink, rdev, credp, prid, okalloc, in xfs_dir_ialloc() 204 code = xfs_ialloc(tp, dp, mode, nlink, rdev, credp, prid, in xfs_dir_ialloc()
|
D | xfs_dinode.h | 159 static inline void xfs_dinode_put_rdev(struct xfs_dinode *dip, xfs_dev_t rdev) in xfs_dinode_put_rdev() argument 161 *(__be32 *)XFS_DFORK_DPTR(dip) = cpu_to_be32(rdev); in xfs_dinode_put_rdev()
|
/fs/nfsd/ |
D | nfsproc.c | 213 dev_t rdev = 0, wanted = new_decode_dev(attr->ia_size); in nfsd_proc_create() local 272 rdev = inode->i_rdev; in nfsd_proc_create() 309 rdev = 0; in nfsd_proc_create() 316 if (!rdev) in nfsd_proc_create() 317 rdev = wanted; in nfsd_proc_create() 333 attr, type, rdev, newfhp); in nfsd_proc_create()
|
D | nfs4proc.c | 364 dev_t rdev; in nfsd4_create() local 393 rdev = MKDEV(create->cr_specdata1, create->cr_specdata2); in nfsd4_create() 394 if (MAJOR(rdev) != create->cr_specdata1 || in nfsd4_create() 395 MINOR(rdev) != create->cr_specdata2) in nfsd4_create() 399 &create->cr_iattr, S_IFBLK, rdev, &resfh); in nfsd4_create() 403 rdev = MKDEV(create->cr_specdata1, create->cr_specdata2); in nfsd4_create() 404 if (MAJOR(rdev) != create->cr_specdata1 || in nfsd4_create() 405 MINOR(rdev) != create->cr_specdata2) in nfsd4_create() 409 &create->cr_iattr,S_IFCHR, rdev, &resfh); in nfsd4_create()
|
D | nfs3proc.c | 318 dev_t rdev = 0; in nfsd3_proc_mknod() local 331 rdev = MKDEV(argp->major, argp->minor); in nfsd3_proc_mknod() 332 if (MAJOR(rdev) != argp->major || in nfsd3_proc_mknod() 333 MINOR(rdev) != argp->minor) in nfsd3_proc_mknod() 341 &argp->attrs, type, rdev, &resp->fh); in nfsd3_proc_mknod()
|
/fs/minix/ |
D | namei.c | 41 static int minix_mknod(struct inode * dir, struct dentry *dentry, int mode, dev_t rdev) in minix_mknod() argument 46 if (!old_valid_dev(rdev)) in minix_mknod() 53 minix_set_inode(inode, rdev); in minix_mknod()
|
/fs/sysv/ |
D | namei.c | 64 static int sysv_mknod(struct inode * dir, struct dentry * dentry, int mode, dev_t rdev) in sysv_mknod() argument 69 if (!old_valid_dev(rdev)) in sysv_mknod() 76 sysv_set_inode(inode, rdev); in sysv_mknod()
|
/fs/nfs/ |
D | nfs2xdr.c | 123 u32 rdev; in xdr_decode_fattr() local 131 rdev = ntohl(*p++); in xdr_decode_fattr() 140 fattr->rdev = new_decode_dev(rdev); in xdr_decode_fattr() 141 if (fattr->type == NFCHR && rdev == NFS2_FIFO_DEV) { in xdr_decode_fattr() 144 fattr->rdev = 0; in xdr_decode_fattr()
|
D | nfs3proc.c | 633 dev_t rdev) in nfs3_proc_mknod() argument 640 MAJOR(rdev), MINOR(rdev)); in nfs3_proc_mknod() 653 data->arg.mknod.rdev = rdev; in nfs3_proc_mknod()
|
D | nfs3xdr.c | 168 fattr->rdev = MKDEV(major, minor); in xdr_decode_fattr() 169 if (MAJOR(fattr->rdev) != major || MINOR(fattr->rdev) != minor) in xdr_decode_fattr() 170 fattr->rdev = 0; in xdr_decode_fattr() 438 *p++ = htonl(MAJOR(args->rdev)); in nfs3_xdr_mknodargs() 439 *p++ = htonl(MINOR(args->rdev)); in nfs3_xdr_mknodargs()
|
/fs/jffs2/ |
D | nodelist.h | 312 static inline int jffs2_encode_dev(union jffs2_device_node *jdev, dev_t rdev) in jffs2_encode_dev() argument 314 if (old_valid_dev(rdev)) { in jffs2_encode_dev() 315 jdev->old = cpu_to_je16(old_encode_dev(rdev)); in jffs2_encode_dev() 318 jdev->new = cpu_to_je32(new_encode_dev(rdev)); in jffs2_encode_dev()
|
D | fs.c | 246 dev_t rdev = 0; in jffs2_iget() local 328 rdev = old_decode_dev(je16_to_cpu(jdev.old)); in jffs2_iget() 330 rdev = new_decode_dev(je32_to_cpu(jdev.new)); in jffs2_iget() 335 init_special_inode(inode, inode->i_mode, rdev); in jffs2_iget()
|
/fs/ext2/ |
D | namei.c | 114 static int ext2_mknod (struct inode * dir, struct dentry *dentry, int mode, dev_t rdev) in ext2_mknod() argument 119 if (!new_valid_dev(rdev)) in ext2_mknod() 125 init_special_inode(inode, inode->i_mode, rdev); in ext2_mknod()
|
/fs/ncpfs/ |
D | dir.c | 44 int mode, dev_t rdev); 879 dev_t rdev, __le32 attributes) in ncp_create_new() argument 929 finfo.i.nfs.rdev = new_encode_dev(rdev); in ncp_create_new() 932 mode, new_encode_dev(rdev)) != 0) in ncp_create_new() 1173 int mode, dev_t rdev) in ncp_mknod() argument 1175 if (!new_valid_dev(rdev)) in ncp_mknod() 1179 return ncp_create_new(dir, dentry, mode, rdev, 0); in ncp_mknod()
|
D | ncplib_kernel.h | 80 __u32 mode, __u32 rdev); 118 int mode, dev_t rdev, __le32 attributes);
|
D | ncplib_kernel.c | 371 target->rdev = DVAL_LH(structure + 8); in ncp_extract_nfs_info() 400 target->nfs.rdev); in ncp_obtain_nfs_info() 403 target->nfs.rdev = 0; in ncp_obtain_nfs_info() 411 target->nfs.rdev = 0; in ncp_obtain_nfs_info() 674 __u32 mode, __u32 rdev) in ncp_modify_nfs_info() argument 691 ncp_add_dword_lh(server, rdev); in ncp_modify_nfs_info()
|
/fs/hpfs/ |
D | inode.c | 87 int rdev = 0; in hpfs_read_inode() local 98 rdev = le32_to_cpu(*(__le32*)ea); in hpfs_read_inode() 108 new_decode_dev(rdev)); in hpfs_read_inode()
|