Lines Matching +full:9 +full:v

205 		     wb ? atomic_long_read(&dc->writeback_rate.rate) << 9 : 0);  in SHOW()
231 wb ? atomic_long_read(&dc->writeback_rate.rate) << 9 in SHOW()
233 bch_hprint(dirty, bcache_dev_sectors_dirty(&dc->disk) << 9); in SHOW()
234 bch_hprint(target, dc->writeback_rate_target << 9); in SHOW()
236 wb ? dc->writeback_rate_proportional << 9 : 0); in SHOW()
238 wb ? dc->writeback_rate_integral_scaled << 9 : 0); in SHOW()
239 bch_hprint(change, wb ? dc->writeback_rate_change << 9 : 0); in SHOW()
256 bcache_dev_sectors_dirty(&dc->disk) << 9); in SHOW()
258 sysfs_hprint(stripe_size, ((uint64_t)dc->disk.stripe_size) << 9); in SHOW()
295 ssize_t v; in STORE() local
320 long int v = atomic_long_read(&dc->writeback_rate.rate); in STORE() local
322 ret = strtoul_safe_clamp(buf, v, 1, INT_MAX); in STORE()
325 atomic_long_set(&dc->writeback_rate.rate, v); in STORE()
358 int v = strtoul_or_return(buf); in STORE() local
360 dc->io_disable = v ? 1 : 0; in STORE()
372 v = bch_cached_dev_run(dc); in STORE()
373 if (v) in STORE()
374 return v; in STORE()
378 v = __sysfs_match_string(bch_cache_modes, -1, buf); in STORE()
379 if (v < 0) in STORE()
380 return v; in STORE()
382 if ((unsigned int) v != BDEV_CACHE_MODE(&dc->sb)) { in STORE()
383 SET_BDEV_CACHE_MODE(&dc->sb, v); in STORE()
389 v = __sysfs_match_string(bch_reada_cache_policies, -1, buf); in STORE()
390 if (v < 0) in STORE()
391 return v; in STORE()
393 if ((unsigned int) v != dc->cache_readahead_policy) in STORE()
394 dc->cache_readahead_policy = v; in STORE()
398 v = __sysfs_match_string(bch_stop_on_failure_modes, -1, buf); in STORE()
399 if (v < 0) in STORE()
400 return v; in STORE()
402 dc->stop_when_cache_set_failed = v; in STORE()
437 v = -ENOENT; in STORE()
439 v = bch_cached_dev_attach(dc, c, set_uuid); in STORE()
440 if (!v) in STORE()
443 if (v == -ENOENT) in STORE()
445 return v; in STORE()
556 sysfs_hprint(size, u->sectors << 9); in SHOW()
581 uint64_t v; in STORE() local
583 strtoi_h_or_return(buf, v); in STORE()
585 u->sectors = v >> 9; in STORE()
777 ((uint64_t) bch_get_congested(c)) << 9); in SHOW()
817 ssize_t v; in STORE() local
840 uint64_t v; in STORE() local
842 strtoi_h_or_return(buf, v); in STORE()
844 r = bch_flash_dev_create(c, v); in STORE()
877 v = __sysfs_match_string(error_actions, -1, buf); in STORE()
878 if (v < 0) in STORE()
879 return v; in STORE()
881 c->on_error = v; in STORE()
888 unsigned long v = 0; in STORE() local
891 ret = strtoul_safe_clamp(buf, v, 0, UINT_MAX); in STORE()
893 c->error_decay = v / 88; in STORE()
900 v = strtoul_or_return(buf); in STORE()
901 if (v) { in STORE()
1042 sysfs_hprint(written, atomic_long_read(&ca->sectors_written) << 9); in SHOW()
1044 atomic_long_read(&ca->btree_sectors_written) << 9); in SHOW()
1047 atomic_long_read(&ca->btree_sectors_written)) << 9); in SHOW()
1141 ssize_t v; in STORE() local
1148 bool v = strtoul_or_return(buf); in STORE() local
1151 ca->discard = v; in STORE()
1153 if (v != CACHE_DISCARD(&ca->sb)) { in STORE()
1154 SET_CACHE_DISCARD(&ca->sb, v); in STORE()
1160 v = __sysfs_match_string(cache_replacement_policies, -1, buf); in STORE()
1161 if (v < 0) in STORE()
1162 return v; in STORE()
1164 if ((unsigned int) v != CACHE_REPLACEMENT(&ca->sb)) { in STORE()
1166 SET_CACHE_REPLACEMENT(&ca->sb, v); in STORE()