Lines Matching refs:kbuf
235 static int put_compat_statfs(struct compat_statfs __user *ubuf, struct kstatfs *kbuf) in put_compat_statfs() argument
239 if ((kbuf->f_blocks | kbuf->f_bfree | kbuf->f_bavail | in put_compat_statfs()
240 kbuf->f_bsize | kbuf->f_frsize) & 0xffffffff00000000ULL) in put_compat_statfs()
244 if (kbuf->f_files != 0xffffffffffffffffULL in put_compat_statfs()
245 && (kbuf->f_files & 0xffffffff00000000ULL)) in put_compat_statfs()
247 if (kbuf->f_ffree != 0xffffffffffffffffULL in put_compat_statfs()
248 && (kbuf->f_ffree & 0xffffffff00000000ULL)) in put_compat_statfs()
252 __put_user(kbuf->f_type, &ubuf->f_type) || in put_compat_statfs()
253 __put_user(kbuf->f_bsize, &ubuf->f_bsize) || in put_compat_statfs()
254 __put_user(kbuf->f_blocks, &ubuf->f_blocks) || in put_compat_statfs()
255 __put_user(kbuf->f_bfree, &ubuf->f_bfree) || in put_compat_statfs()
256 __put_user(kbuf->f_bavail, &ubuf->f_bavail) || in put_compat_statfs()
257 __put_user(kbuf->f_files, &ubuf->f_files) || in put_compat_statfs()
258 __put_user(kbuf->f_ffree, &ubuf->f_ffree) || in put_compat_statfs()
259 __put_user(kbuf->f_namelen, &ubuf->f_namelen) || in put_compat_statfs()
260 __put_user(kbuf->f_fsid.val[0], &ubuf->f_fsid.val[0]) || in put_compat_statfs()
261 __put_user(kbuf->f_fsid.val[1], &ubuf->f_fsid.val[1]) || in put_compat_statfs()
262 __put_user(kbuf->f_frsize, &ubuf->f_frsize) || in put_compat_statfs()
310 static int put_compat_statfs64(struct compat_statfs64 __user *ubuf, struct kstatfs *kbuf) in put_compat_statfs64() argument
313 if ((kbuf->f_blocks | kbuf->f_bfree | kbuf->f_bavail | in put_compat_statfs64()
314 kbuf->f_bsize | kbuf->f_frsize) & 0xffffffff00000000ULL) in put_compat_statfs64()
318 if (kbuf->f_files != 0xffffffffffffffffULL in put_compat_statfs64()
319 && (kbuf->f_files & 0xffffffff00000000ULL)) in put_compat_statfs64()
321 if (kbuf->f_ffree != 0xffffffffffffffffULL in put_compat_statfs64()
322 && (kbuf->f_ffree & 0xffffffff00000000ULL)) in put_compat_statfs64()
326 __put_user(kbuf->f_type, &ubuf->f_type) || in put_compat_statfs64()
327 __put_user(kbuf->f_bsize, &ubuf->f_bsize) || in put_compat_statfs64()
328 __put_user(kbuf->f_blocks, &ubuf->f_blocks) || in put_compat_statfs64()
329 __put_user(kbuf->f_bfree, &ubuf->f_bfree) || in put_compat_statfs64()
330 __put_user(kbuf->f_bavail, &ubuf->f_bavail) || in put_compat_statfs64()
331 __put_user(kbuf->f_files, &ubuf->f_files) || in put_compat_statfs64()
332 __put_user(kbuf->f_ffree, &ubuf->f_ffree) || in put_compat_statfs64()
333 __put_user(kbuf->f_namelen, &ubuf->f_namelen) || in put_compat_statfs64()
334 __put_user(kbuf->f_fsid.val[0], &ubuf->f_fsid.val[0]) || in put_compat_statfs64()
335 __put_user(kbuf->f_fsid.val[1], &ubuf->f_fsid.val[1]) || in put_compat_statfs64()
336 __put_user(kbuf->f_frsize, &ubuf->f_frsize)) in put_compat_statfs64()