Lines Matching refs:str
1263 const char *str; in btrfs_exclusive_operation_show() local
1267 str = "none\n"; in btrfs_exclusive_operation_show()
1270 str = "balance\n"; in btrfs_exclusive_operation_show()
1273 str = "balance paused\n"; in btrfs_exclusive_operation_show()
1276 str = "device add\n"; in btrfs_exclusive_operation_show()
1279 str = "device remove\n"; in btrfs_exclusive_operation_show()
1282 str = "device replace\n"; in btrfs_exclusive_operation_show()
1285 str = "resize\n"; in btrfs_exclusive_operation_show()
1288 str = "swap activate\n"; in btrfs_exclusive_operation_show()
1291 str = "UNKNOWN\n"; in btrfs_exclusive_operation_show()
1294 return sysfs_emit(buf, "%s", str); in btrfs_exclusive_operation_show()
1339 int btrfs_read_policy_to_enum(const char *str, s64 *value_ret) in btrfs_read_policy_to_enum() argument
1344 if (!str || strlen(str) == 0) in btrfs_read_policy_to_enum()
1347 strscpy(param, str); in btrfs_read_policy_to_enum()
1793 char *str; in btrfs_printable_features() local
1795 str = kmalloc(bufsize, GFP_KERNEL); in btrfs_printable_features()
1796 if (!str) in btrfs_printable_features()
1797 return str; in btrfs_printable_features()
1806 len += scnprintf(str + len, bufsize - len, "%s%s", in btrfs_printable_features()
1810 return str; in btrfs_printable_features()