Lines Matching refs:buf
3535 struct pipe_buffer *buf) in zero_pipe_buf_get() argument
3541 struct pipe_buffer *buf) in zero_pipe_buf_release() argument
3546 struct pipe_buffer *buf) in zero_pipe_buf_try_steal() argument
3565 struct pipe_buffer *buf = pipe_head_buf(pipe); in splice_zeropage_into_pipe() local
3567 *buf = (struct pipe_buffer) { in splice_zeropage_into_pipe()
3868 static int shmem_statfs(struct dentry *dentry, struct kstatfs *buf) in shmem_statfs() argument
3872 buf->f_type = TMPFS_MAGIC; in shmem_statfs()
3873 buf->f_bsize = PAGE_SIZE; in shmem_statfs()
3874 buf->f_namelen = NAME_MAX; in shmem_statfs()
3876 buf->f_blocks = sbinfo->max_blocks; in shmem_statfs()
3877 buf->f_bavail = in shmem_statfs()
3878 buf->f_bfree = sbinfo->max_blocks - in shmem_statfs()
3882 buf->f_files = sbinfo->max_inodes; in shmem_statfs()
3883 buf->f_ffree = sbinfo->free_ispace / BOGO_INODE_SIZE; in shmem_statfs()
3887 buf->f_fsid = uuid_to_fsid(dentry->d_sb->s_uuid.b); in shmem_statfs()
5425 char *buf) in casefold_show() argument
5427 return sysfs_emit(buf, "supported\n"); in casefold_show()
5520 struct kobj_attribute *attr, char *buf) in shmem_enabled_show() argument
5534 len += sysfs_emit_at(buf, len, in shmem_enabled_show()
5538 len += sysfs_emit_at(buf, len, "\n"); in shmem_enabled_show()
5544 struct kobj_attribute *attr, const char *buf, size_t count) in shmem_enabled_store() argument
5551 memcpy(tmp, buf, count); in shmem_enabled_store()
5572 struct kobj_attribute *attr, char *buf) in thpsize_shmem_enabled_show() argument
5588 return sysfs_emit(buf, "%s\n", output); in thpsize_shmem_enabled_show()
5593 const char *buf, size_t count) in thpsize_shmem_enabled_store() argument
5598 if (sysfs_streq(buf, "always")) { in thpsize_shmem_enabled_store()
5605 } else if (sysfs_streq(buf, "inherit")) { in thpsize_shmem_enabled_store()
5617 } else if (sysfs_streq(buf, "within_size")) { in thpsize_shmem_enabled_store()
5624 } else if (sysfs_streq(buf, "advise")) { in thpsize_shmem_enabled_store()
5631 } else if (sysfs_streq(buf, "never")) { in thpsize_shmem_enabled_store()