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()
781 ((uint64_t) bch_get_congested(c)) << 9); in SHOW()
821 ssize_t v; in STORE() local
844 uint64_t v; in STORE() local
846 strtoi_h_or_return(buf, v); in STORE()
848 r = bch_flash_dev_create(c, v); in STORE()
880 v = __sysfs_match_string(error_actions, -1, buf); in STORE()
881 if (v < 0) in STORE()
882 return v; in STORE()
884 c->on_error = v; in STORE()
891 unsigned long v = 0; in STORE() local
894 ret = strtoul_safe_clamp(buf, v, 0, UINT_MAX); in STORE()
896 c->error_decay = v / 88; in STORE()
903 v = strtoul_or_return(buf); in STORE()
904 if (v) { in STORE()
1045 sysfs_hprint(written, atomic_long_read(&ca->sectors_written) << 9); in SHOW()
1047 atomic_long_read(&ca->btree_sectors_written) << 9); in SHOW()
1050 atomic_long_read(&ca->btree_sectors_written)) << 9); in SHOW()
1145 ssize_t v; in STORE() local
1152 bool v = strtoul_or_return(buf); in STORE() local
1155 ca->discard = v; in STORE()
1157 if (v != CACHE_DISCARD(&ca->sb)) { in STORE()
1158 SET_CACHE_DISCARD(&ca->sb, v); in STORE()
1164 v = __sysfs_match_string(cache_replacement_policies, -1, buf); in STORE()
1165 if (v < 0) in STORE()
1166 return v; in STORE()
1168 if ((unsigned int) v != CACHE_REPLACEMENT(&ca->sb)) { in STORE()
1170 SET_CACHE_REPLACEMENT(&ca->sb, v); in STORE()