Lines Matching refs:mode
92 umode_t mode, rmask; in adfs_atts2mode() local
96 mode = S_IRUGO & asb->s_owner_mask; in adfs_atts2mode()
97 return S_IFDIR | S_IXUGO | mode; in adfs_atts2mode()
112 mode = S_IFREG; in adfs_atts2mode()
115 mode |= rmask & asb->s_owner_mask; in adfs_atts2mode()
118 mode |= S_IWUGO & asb->s_owner_mask; in adfs_atts2mode()
121 mode |= rmask & asb->s_other_mask; in adfs_atts2mode()
124 mode |= S_IWUGO & asb->s_other_mask; in adfs_atts2mode()
125 return mode; in adfs_atts2mode()
135 umode_t mode; in adfs_mode2atts() local
148 mode = inode->i_mode & asb->s_owner_mask; in adfs_mode2atts()
149 if (mode & S_IRUGO) in adfs_mode2atts()
151 if (mode & S_IWUGO) in adfs_mode2atts()
154 mode = inode->i_mode & asb->s_other_mask; in adfs_mode2atts()
155 mode &= ~asb->s_owner_mask; in adfs_mode2atts()
156 if (mode & S_IRUGO) in adfs_mode2atts()
158 if (mode & S_IWUGO) in adfs_mode2atts()