• Home
  • Raw
  • Download

Lines Matching refs:st

77 int user_statfs(const char __user *pathname, struct kstatfs *st)  in user_statfs()  argument
82 error = vfs_statfs(&path, st); in user_statfs()
88 int fd_statfs(int fd, struct kstatfs *st) in fd_statfs() argument
93 error = vfs_statfs(&file->f_path, st); in fd_statfs()
99 static int do_statfs_native(struct kstatfs *st, struct statfs __user *p) in do_statfs_native() argument
103 if (sizeof(buf) == sizeof(*st)) in do_statfs_native()
104 memcpy(&buf, st, sizeof(*st)); in do_statfs_native()
107 if ((st->f_blocks | st->f_bfree | st->f_bavail | in do_statfs_native()
108 st->f_bsize | st->f_frsize) & in do_statfs_native()
115 if (st->f_files != -1 && in do_statfs_native()
116 (st->f_files & 0xffffffff00000000ULL)) in do_statfs_native()
118 if (st->f_ffree != -1 && in do_statfs_native()
119 (st->f_ffree & 0xffffffff00000000ULL)) in do_statfs_native()
123 buf.f_type = st->f_type; in do_statfs_native()
124 buf.f_bsize = st->f_bsize; in do_statfs_native()
125 buf.f_blocks = st->f_blocks; in do_statfs_native()
126 buf.f_bfree = st->f_bfree; in do_statfs_native()
127 buf.f_bavail = st->f_bavail; in do_statfs_native()
128 buf.f_files = st->f_files; in do_statfs_native()
129 buf.f_ffree = st->f_ffree; in do_statfs_native()
130 buf.f_fsid = st->f_fsid; in do_statfs_native()
131 buf.f_namelen = st->f_namelen; in do_statfs_native()
132 buf.f_frsize = st->f_frsize; in do_statfs_native()
133 buf.f_flags = st->f_flags; in do_statfs_native()
141 static int do_statfs64(struct kstatfs *st, struct statfs64 __user *p) in do_statfs64() argument
144 if (sizeof(buf) == sizeof(*st)) in do_statfs64()
145 memcpy(&buf, st, sizeof(*st)); in do_statfs64()
147 buf.f_type = st->f_type; in do_statfs64()
148 buf.f_bsize = st->f_bsize; in do_statfs64()
149 buf.f_blocks = st->f_blocks; in do_statfs64()
150 buf.f_bfree = st->f_bfree; in do_statfs64()
151 buf.f_bavail = st->f_bavail; in do_statfs64()
152 buf.f_files = st->f_files; in do_statfs64()
153 buf.f_ffree = st->f_ffree; in do_statfs64()
154 buf.f_fsid = st->f_fsid; in do_statfs64()
155 buf.f_namelen = st->f_namelen; in do_statfs64()
156 buf.f_frsize = st->f_frsize; in do_statfs64()
157 buf.f_flags = st->f_flags; in do_statfs64()
167 struct kstatfs st; in SYSCALL_DEFINE2() local
168 int error = user_statfs(pathname, &st); in SYSCALL_DEFINE2()
170 error = do_statfs_native(&st, buf); in SYSCALL_DEFINE2()
176 struct kstatfs st; in SYSCALL_DEFINE3() local
180 error = user_statfs(pathname, &st); in SYSCALL_DEFINE3()
182 error = do_statfs64(&st, buf); in SYSCALL_DEFINE3()
188 struct kstatfs st; in SYSCALL_DEFINE2() local
189 int error = fd_statfs(fd, &st); in SYSCALL_DEFINE2()
191 error = do_statfs_native(&st, buf); in SYSCALL_DEFINE2()
197 struct kstatfs st; in SYSCALL_DEFINE3() local
203 error = fd_statfs(fd, &st); in SYSCALL_DEFINE3()
205 error = do_statfs64(&st, buf); in SYSCALL_DEFINE3()