Lines Matching refs:val
118 int val = 0; in can_modify_feature() local
140 val |= 1; in can_modify_feature()
142 val |= 2; in can_modify_feature()
144 return val; in can_modify_feature()
150 int val = 0; in btrfs_feature_attr_show() local
156 val = 1; in btrfs_feature_attr_show()
158 val = can_modify_feature(fa); in btrfs_feature_attr_show()
160 return scnprintf(buf, PAGE_SIZE, "%d\n", val); in btrfs_feature_attr_show()
170 unsigned long val; in btrfs_feature_attr_store() local
180 ret = kstrtoul(skip_spaces(buf), 0, &val); in btrfs_feature_attr_store()
198 if ((val && (features & fa->feature_bit)) || in btrfs_feature_attr_store()
199 (!val && !(features & fa->feature_bit))) in btrfs_feature_attr_store()
202 if ((val && !(set & fa->feature_bit)) || in btrfs_feature_attr_store()
203 (!val && !(clear & fa->feature_bit))) { in btrfs_feature_attr_store()
206 val ? "En" : "Dis", fa->kobj_attr.attr.name); in btrfs_feature_attr_store()
211 val ? "Setting" : "Clearing", fa->kobj_attr.attr.name); in btrfs_feature_attr_store()
215 if (val) in btrfs_feature_attr_store()
537 u64 val; in btrfs_show_u64() local
540 val = *value_ptr; in btrfs_show_u64()
543 return scnprintf(buf, PAGE_SIZE, "%llu\n", val); in btrfs_show_u64()
579 u64 val = 0; in raid_bytes_show() local
584 val += block_group->length; in raid_bytes_show()
586 val += block_group->used; in raid_bytes_show()
589 return scnprintf(buf, PAGE_SIZE, "%llu\n", val); in raid_bytes_show()
625 s64 val = percpu_counter_sum(&sinfo->total_bytes_pinned); in btrfs_space_info_show_total_bytes_pinned() local
626 return scnprintf(buf, PAGE_SIZE, "%lld\n", val); in btrfs_space_info_show_total_bytes_pinned()
1263 int val; in btrfs_devinfo_in_fs_metadata_show() local
1267 val = !!test_bit(BTRFS_DEV_STATE_IN_FS_METADATA, &device->dev_state); in btrfs_devinfo_in_fs_metadata_show()
1269 return scnprintf(buf, PAGE_SIZE, "%d\n", val); in btrfs_devinfo_in_fs_metadata_show()
1276 int val; in btrfs_devinfo_missing_show() local
1280 val = !!test_bit(BTRFS_DEV_STATE_MISSING, &device->dev_state); in btrfs_devinfo_missing_show()
1282 return scnprintf(buf, PAGE_SIZE, "%d\n", val); in btrfs_devinfo_missing_show()
1290 int val; in btrfs_devinfo_replace_target_show() local
1294 val = !!test_bit(BTRFS_DEV_STATE_REPLACE_TGT, &device->dev_state); in btrfs_devinfo_replace_target_show()
1296 return scnprintf(buf, PAGE_SIZE, "%d\n", val); in btrfs_devinfo_replace_target_show()
1303 int val; in btrfs_devinfo_writeable_show() local
1307 val = !!test_bit(BTRFS_DEV_STATE_WRITEABLE, &device->dev_state); in btrfs_devinfo_writeable_show()
1309 return scnprintf(buf, PAGE_SIZE, "%d\n", val); in btrfs_devinfo_writeable_show()