Lines Matching defs:type

82 				      enum bch_sb_field_type type)
87 if (le32_to_cpu(f->type) == type)
107 f->type = 0;
132 enum bch_sb_field_type type)
134 struct bch_sb_field *f = bch2_sb_field_get_id(sb->sb, type);
214 enum bch_sb_field_type type,
217 struct bch_sb_field *f = bch2_sb_field_get_id(sb->sb, type);
241 f = bch2_sb_field_get_id(sb->sb, type);
244 f->type = cpu_to_le32(type);
249 enum bch_sb_field_type type,
252 struct bch_sb_field *f = bch2_sb_field_get_id(sb->sb, type);
255 f = bch2_sb_field_resize_id(sb, type, u64s);
275 prt_printf(out, "Invalid superblock layout type %u",
441 prt_printf(out, "Invalid superblock: optional field with size 0 (type %u)",
442 le32_to_cpu(f->type));
447 prt_printf(out, "Invalid superblock: optional field extends past end of superblock (type %u)",
448 le32_to_cpu(f->type));
465 if (le32_to_cpu(f->type) == BCH_SB_FIELD_members_v1)
519 /* XXX this is wrong, we need a 96 or 128 bit integer type */
667 prt_printf(err, "unknown checksum type %llu", BCH_SB_CSUM_TYPE(sb->sb));
1214 static const struct bch_sb_field_ops *bch2_sb_field_type_ops(unsigned type)
1216 return likely(type < ARRAY_SIZE(bch2_sb_field_ops))
1217 ? bch2_sb_field_ops[type]
1224 unsigned type = le32_to_cpu(f->type);
1226 const struct bch_sb_field_ops *ops = bch2_sb_field_type_ops(type);
1232 bch2_sb_fields[type], field_err.buf);
1244 unsigned type = le32_to_cpu(f->type);
1245 const struct bch_sb_field_ops *ops = bch2_sb_field_type_ops(type);
1257 unsigned type = le32_to_cpu(f->type);
1259 if (type < BCH_SB_FIELD_NR)
1260 prt_printf(out, "%s", bch2_sb_fields[type]);
1262 prt_printf(out, "(unknown field %u)", type);
1361 fields_have |= 1 << le32_to_cpu(f->type);
1406 if (fields & (1 << le32_to_cpu(f->type))) {