Lines Matching refs:val
114 int val = 0; in can_modify_feature() local
136 val |= 1; in can_modify_feature()
138 val |= 2; in can_modify_feature()
140 return val; in can_modify_feature()
146 int val = 0; in btrfs_feature_attr_show() local
152 val = 1; in btrfs_feature_attr_show()
154 val = can_modify_feature(fa); in btrfs_feature_attr_show()
156 return snprintf(buf, PAGE_SIZE, "%d\n", val); in btrfs_feature_attr_show()
166 unsigned long val; in btrfs_feature_attr_store() local
176 ret = kstrtoul(skip_spaces(buf), 0, &val); in btrfs_feature_attr_store()
194 if ((val && (features & fa->feature_bit)) || in btrfs_feature_attr_store()
195 (!val && !(features & fa->feature_bit))) in btrfs_feature_attr_store()
198 if ((val && !(set & fa->feature_bit)) || in btrfs_feature_attr_store()
199 (!val && !(clear & fa->feature_bit))) { in btrfs_feature_attr_store()
202 val ? "En" : "Dis", fa->kobj_attr.attr.name); in btrfs_feature_attr_store()
207 val ? "Setting" : "Clearing", fa->kobj_attr.attr.name); in btrfs_feature_attr_store()
211 if (val) in btrfs_feature_attr_store()
335 u64 val; in btrfs_show_u64() local
338 val = *value_ptr; in btrfs_show_u64()
341 return snprintf(buf, PAGE_SIZE, "%llu\n", val); in btrfs_show_u64()
377 u64 val = 0; in raid_bytes_show() local
382 val += block_group->key.offset; in raid_bytes_show()
384 val += btrfs_block_group_used(&block_group->item); in raid_bytes_show()
387 return snprintf(buf, PAGE_SIZE, "%llu\n", val); in raid_bytes_show()
423 s64 val = percpu_counter_sum(&sinfo->total_bytes_pinned); in btrfs_space_info_show_total_bytes_pinned() local
424 return snprintf(buf, PAGE_SIZE, "%lld\n", val); in btrfs_space_info_show_total_bytes_pinned()