Lines Matching defs:ca
669 struct bch_dev *ca = rcu_dereference_protected(c->devs[i], true); in bch2_fs_free() local
1022 struct bch_dev *ca; in bch2_fs_may_start() local
1235 static void bch2_dev_io_ref_stop(struct bch_dev *ca, int rw) in bch2_dev_io_ref_stop()
1246 struct bch_dev *ca = container_of(kobj, struct bch_dev, kobj); in bch2_dev_release() local
1251 static void bch2_dev_free(struct bch_dev *ca) in bch2_dev_free()
1282 static void __bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_offline()
1303 struct bch_dev *ca = container_of(ref, struct bch_dev, ref); in bch2_dev_ref_complete() local
1311 struct bch_dev *ca = container_of(ref, struct bch_dev, io_ref[READ]); in bch2_dev_io_ref_read_complete() local
1318 struct bch_dev *ca = container_of(ref, struct bch_dev, io_ref[WRITE]); in bch2_dev_io_ref_write_complete() local
1323 static void bch2_dev_unlink(struct bch_dev *ca) in bch2_dev_unlink()
1343 static int bch2_dev_sysfs_online(struct bch_fs *c, struct bch_dev *ca) in bch2_dev_sysfs_online()
1375 struct bch_dev *ca; in __bch2_dev_alloc() local
1426 static void bch2_dev_attach(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_attach()
1443 struct bch_dev *ca = NULL; in bch2_dev_alloc() local
1460 static int __bch2_dev_attach_bdev(struct bch_dev *ca, struct bch_sb_handle *sb) in __bch2_dev_attach_bdev()
1503 struct bch_dev *ca; in bch2_dev_attach_bdev() local
1546 bool bch2_dev_state_allowed(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_state_allowed()
1590 static void __bch2_dev_read_only(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_read_only()
1602 static void __bch2_dev_read_write(struct bch_fs *c, struct bch_dev *ca) in __bch2_dev_read_write()
1617 int __bch2_dev_set_state(struct bch_fs *c, struct bch_dev *ca, in __bch2_dev_set_state()
1648 int bch2_dev_set_state(struct bch_fs *c, struct bch_dev *ca, in bch2_dev_set_state()
1662 int bch2_dev_remove(struct bch_fs *c, struct bch_dev *ca, int flags) in bch2_dev_remove()
1773 struct bch_dev *ca = NULL; in bch2_dev_add() local
1891 struct bch_dev *ca; in bch2_dev_online() local
1952 int bch2_dev_offline(struct bch_fs *c, struct bch_dev *ca, int flags) in bch2_dev_offline()
1974 int bch2_dev_resize(struct bch_fs *c, struct bch_dev *ca, u64 nbuckets) in bch2_dev_resize()
2094 struct bch_dev *ca = bdev_to_bch_dev(c, bdev); in bch2_fs_bdev_mark_dead() local