Lines Matching refs:ca
180 struct bch_dev *ca = t.dev < c->sb.nr_devices in bch2_target_to_mask() local
183 return ca ? &ca->self : NULL; in bch2_target_to_mask()
394 for_each_member_device_rcu(c, ca, &g->entries[i].devs) in bch2_disk_groups_to_text()
395 prt_printf(out, " %s", ca->name); in bch2_disk_groups_to_text()
452 int __bch2_dev_group_set(struct bch_fs *c, struct bch_dev *ca, const char *name) in __bch2_dev_group_set() argument
458 struct bch_member *mi = bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx); in __bch2_dev_group_set()
465 struct bch_member *mi = bch2_members_v2_get_mut(c->disk_sb.sb, ca->dev_idx); in __bch2_dev_group_set()
472 int bch2_dev_group_set(struct bch_fs *c, struct bch_dev *ca, const char *name) in bch2_dev_group_set() argument
477 ret = __bch2_dev_group_set(c, ca, name) ?: in bch2_dev_group_set()
487 struct bch_dev *ca; in bch2_opt_target_parse() local
502 ca = bch2_dev_lookup(c, val); in bch2_opt_target_parse()
503 if (!IS_ERR(ca)) { in bch2_opt_target_parse()
504 *res = dev_to_target(ca->dev_idx); in bch2_opt_target_parse()
505 bch2_dev_put(ca); in bch2_opt_target_parse()
532 struct bch_dev *ca = t.dev < c->sb.nr_devices in bch2_target_to_text() local
536 if (ca && ca->disk_sb.bdev) in bch2_target_to_text()
537 prt_printf(out, "/dev/%s", ca->name); in bch2_target_to_text()
538 else if (ca) in bch2_target_to_text()