Lines Matching refs:sb_r

519 __bch2_sb_replicas_to_cpu_replicas(struct bch_sb_field_replicas *sb_r,  in __bch2_sb_replicas_to_cpu_replicas()  argument
525 for_each_replicas_entry(sb_r, e) { in __bch2_sb_replicas_to_cpu_replicas()
538 for_each_replicas_entry(sb_r, e) { in __bch2_sb_replicas_to_cpu_replicas()
548 __bch2_sb_replicas_v0_to_cpu_replicas(struct bch_sb_field_replicas_v0 *sb_r, in __bch2_sb_replicas_v0_to_cpu_replicas() argument
554 for_each_replicas_entry(sb_r, e) { in __bch2_sb_replicas_v0_to_cpu_replicas()
570 for_each_replicas_entry(sb_r, e) { in __bch2_sb_replicas_v0_to_cpu_replicas()
612 struct bch_sb_field_replicas_v0 *sb_r; in bch2_cpu_replicas_to_sb_replicas_v0() local
622 sb_r = bch2_sb_field_resize(&c->disk_sb, replicas_v0, in bch2_cpu_replicas_to_sb_replicas_v0()
624 if (!sb_r) in bch2_cpu_replicas_to_sb_replicas_v0()
628 sb_r = bch2_sb_field_get(c->disk_sb.sb, replicas_v0); in bch2_cpu_replicas_to_sb_replicas_v0()
630 memset(&sb_r->entries, 0, in bch2_cpu_replicas_to_sb_replicas_v0()
631 vstruct_end(&sb_r->field) - in bch2_cpu_replicas_to_sb_replicas_v0()
632 (void *) &sb_r->entries); in bch2_cpu_replicas_to_sb_replicas_v0()
634 dst = sb_r->entries; in bch2_cpu_replicas_to_sb_replicas_v0()
642 BUG_ON((void *) dst > vstruct_end(&sb_r->field)); in bch2_cpu_replicas_to_sb_replicas_v0()
651 struct bch_sb_field_replicas *sb_r; in bch2_cpu_replicas_to_sb_replicas() local
667 sb_r = bch2_sb_field_resize(&c->disk_sb, replicas, in bch2_cpu_replicas_to_sb_replicas()
669 if (!sb_r) in bch2_cpu_replicas_to_sb_replicas()
673 sb_r = bch2_sb_field_get(c->disk_sb.sb, replicas); in bch2_cpu_replicas_to_sb_replicas()
675 memset(&sb_r->entries, 0, in bch2_cpu_replicas_to_sb_replicas()
676 vstruct_end(&sb_r->field) - in bch2_cpu_replicas_to_sb_replicas()
677 (void *) &sb_r->entries); in bch2_cpu_replicas_to_sb_replicas()
679 dst = sb_r->entries; in bch2_cpu_replicas_to_sb_replicas()
685 BUG_ON((void *) dst > vstruct_end(&sb_r->field)); in bch2_cpu_replicas_to_sb_replicas()
731 struct bch_sb_field_replicas *sb_r = field_to_type(f, replicas); in bch2_sb_replicas_validate() local
735 ret = __bch2_sb_replicas_to_cpu_replicas(sb_r, &cpu_r); in bch2_sb_replicas_validate()
770 struct bch_sb_field_replicas_v0 *sb_r = field_to_type(f, replicas_v0); in bch2_sb_replicas_v0_validate() local
774 ret = __bch2_sb_replicas_v0_to_cpu_replicas(sb_r, &cpu_r); in bch2_sb_replicas_v0_validate()
787 struct bch_sb_field_replicas_v0 *sb_r = field_to_type(f, replicas_v0); in bch2_sb_replicas_v0_to_text() local
791 for_each_replicas_entry(sb_r, e) { in bch2_sb_replicas_v0_to_text()