Lines Matching defs:ca
642 struct bch_dev *ca = rcu_dereference_protected(c->devs[i], true); in bch2_fs_free() local
1147 struct bch_dev *ca = container_of(kobj, struct bch_dev, kobj); in bch2_dev_release() local
1152 static void bch2_dev_free(struct bch_dev *ca) in bch2_dev_free()
1179 static void __bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_offline()
1204 struct bch_dev *ca = container_of(ref, struct bch_dev, ref); in bch2_dev_ref_complete() local
1211 struct bch_dev *ca = container_of(ref, struct bch_dev, io_ref); in bch2_dev_io_ref_complete() local
1216 static int bch2_dev_sysfs_online(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_sysfs_online()
1248 struct bch_dev *ca; in __bch2_dev_alloc() local
1293 static void bch2_dev_attach(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_attach()
1310 struct bch_dev *ca = NULL; in bch2_dev_alloc() local
1330 static int __bch2_dev_attach_bdev(struct bch_dev *ca, struct bch_sb_handle *sb) in __bch2_dev_attach_bdev()
1365 struct bch_dev *ca; in bch2_dev_attach_bdev() local
1409 bool bch2_dev_state_allowed(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_state_allowed()
1455 struct bch_dev *ca; in bch2_fs_may_start() local
1487 static void __bch2_dev_read_only(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_read_only()
1496 static void __bch2_dev_read_write(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_read_write()
1506 int __bch2_dev_set_state(struct bch_fs *c, struct bch_dev *ca, in __bch2_dev_set_state()
1537 int bch2_dev_set_state(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_set_state()
1551 static int bch2_dev_remove_alloc(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_remove_alloc()
1577 int bch2_dev_remove(struct bch_fs *c, struct bch_dev *ca, int flags) in bch2_dev_remove()
1685 struct bch_dev *ca = NULL; in bch2_dev_add() local
1824 struct bch_dev *ca; in bch2_dev_online() local
1885 int bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca, int flags) in bch2_dev_offline()
1907 int bch2_dev_resize(struct bch_fs *c, struct bch_dev *ca, u64 nbuckets) in bch2_dev_resize()