Lines Matching full:dsb
58 struct erofs_super_block *dsb; in erofs_superblock_csum_verify() local
64 dsb = kmemdup(sbdata + EROFS_SUPER_OFFSET, len, GFP_KERNEL); in erofs_superblock_csum_verify()
65 if (!dsb) in erofs_superblock_csum_verify()
68 expected_crc = le32_to_cpu(dsb->checksum); in erofs_superblock_csum_verify()
69 dsb->checksum = 0; in erofs_superblock_csum_verify()
71 crc = crc32c(~0, dsb, len); in erofs_superblock_csum_verify()
72 kfree(dsb); in erofs_superblock_csum_verify()
149 struct erofs_super_block *dsb) in z_erofs_parse_cfgs() argument
151 if (!dsb->u1.available_compr_algs) in z_erofs_parse_cfgs()
212 struct erofs_super_block *dsb) in erofs_scan_devices() argument
225 ondisk_extradevs = le16_to_cpu(dsb->extra_devices); in erofs_scan_devices()
240 pos = le16_to_cpu(dsb->devt_slotoff) * EROFS_DEVT_SLOT_SIZE; in erofs_scan_devices()
277 struct erofs_super_block *dsb; in erofs_read_superblock() local
287 dsb = (struct erofs_super_block *)(data + EROFS_SUPER_OFFSET); in erofs_read_superblock()
289 if (le32_to_cpu(dsb->magic) != EROFS_SUPER_MAGIC_V1) { in erofs_read_superblock()
294 sbi->blkszbits = dsb->blkszbits; in erofs_read_superblock()
299 if (dsb->dirblkbits) { in erofs_read_superblock()
300 erofs_err(sb, "dirblkbits %u isn't supported", dsb->dirblkbits); in erofs_read_superblock()
304 sbi->feature_compat = le32_to_cpu(dsb->feature_compat); in erofs_read_superblock()
312 sbi->feature_incompat = le32_to_cpu(dsb->feature_incompat); in erofs_read_superblock()
319 sbi->sb_size = 128 + dsb->sb_extslots * EROFS_SB_EXTSLOT_SIZE; in erofs_read_superblock()
325 sbi->primarydevice_blocks = le32_to_cpu(dsb->blocks); in erofs_read_superblock()
326 sbi->meta_blkaddr = le32_to_cpu(dsb->meta_blkaddr); in erofs_read_superblock()
328 sbi->xattr_blkaddr = le32_to_cpu(dsb->xattr_blkaddr); in erofs_read_superblock()
329 sbi->xattr_prefix_start = le32_to_cpu(dsb->xattr_prefix_start); in erofs_read_superblock()
330 sbi->xattr_prefix_count = dsb->xattr_prefix_count; in erofs_read_superblock()
331 sbi->xattr_filter_reserved = dsb->xattr_filter_reserved; in erofs_read_superblock()
334 sbi->root_nid = le16_to_cpu(dsb->root_nid); in erofs_read_superblock()
335 sbi->packed_nid = le64_to_cpu(dsb->packed_nid); in erofs_read_superblock()
336 sbi->inos = le64_to_cpu(dsb->inos); in erofs_read_superblock()
338 sbi->build_time = le64_to_cpu(dsb->build_time); in erofs_read_superblock()
339 sbi->build_time_nsec = le32_to_cpu(dsb->build_time_nsec); in erofs_read_superblock()
341 super_set_uuid(sb, (void *)dsb->uuid, sizeof(dsb->uuid)); in erofs_read_superblock()
343 ret = strscpy(sbi->volume_name, dsb->volume_name, in erofs_read_superblock()
344 sizeof(dsb->volume_name)); in erofs_read_superblock()
352 ret = z_erofs_parse_cfgs(sb, dsb); in erofs_read_superblock()
357 ret = erofs_scan_devices(sb, dsb); in erofs_read_superblock()