Lines Matching defs:ca
681 struct bch_dev *ca = rcu_dereference_protected(c->devs[i], true); in __bch2_fs_stop() local
722 struct bch_dev *ca = rcu_dereference_protected(c->devs[i], true); in bch2_fs_free() local
1124 struct bch_dev *ca; in bch2_fs_may_start() local
1351 static void bch2_dev_io_ref_stop(struct bch_dev *ca, int rw) in bch2_dev_io_ref_stop()
1365 struct bch_dev *ca = container_of(kobj, struct bch_dev, kobj); in bch2_dev_release() local
1370 static void bch2_dev_free(struct bch_dev *ca) in bch2_dev_free()
1404 static void __bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_offline()
1425 struct bch_dev *ca = container_of(ref, struct bch_dev, ref); in bch2_dev_ref_complete() local
1431 static void bch2_dev_unlink(struct bch_dev *ca) in bch2_dev_unlink()
1451 static int bch2_dev_sysfs_online(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_sysfs_online()
1483 struct bch_dev *ca; in __bch2_dev_alloc() local
1533 static void bch2_dev_attach(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_attach()
1552 struct bch_dev *ca = NULL; in bch2_dev_alloc() local
1569 static int __bch2_dev_attach_bdev(struct bch_dev *ca, struct bch_sb_handle *sb) in __bch2_dev_attach_bdev()
1617 struct bch_dev *ca; in bch2_dev_attach_bdev() local
1653 bool bch2_dev_state_allowed(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_state_allowed()
1697 static void __bch2_dev_read_only(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_read_only()
1709 static void __bch2_dev_read_write(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_read_write()
1724 int __bch2_dev_set_state(struct bch_fs *c, struct bch_dev *ca, in __bch2_dev_set_state()
1755 int bch2_dev_set_state(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_set_state()
1769 int bch2_dev_remove(struct bch_fs *c, struct bch_dev *ca, int flags) in bch2_dev_remove()
1900 struct bch_dev *ca = NULL; in bch2_dev_add() local
2052 struct bch_dev *ca; in bch2_dev_online() local
2113 int bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca, int flags) in bch2_dev_offline()
2135 static int __bch2_dev_resize_alloc(struct bch_dev *ca, u64 old_nbuckets, u64 new_nbuckets) in __bch2_dev_resize_alloc()
2147 int bch2_dev_resize(struct bch_fs *c, struct bch_dev *ca, u64 nbuckets) in bch2_dev_resize()
2304 struct bch_dev *ca = bdev_to_bch_dev(c, bdev); in bch2_fs_bdev_mark_dead() local