Lines Matching refs:p_boot

102 	struct boot_sector *p_boot = (struct boot_sector *)sbi->boot_bh->b_data;  in exfat_set_vol_flags()  local
119 p_boot->vol_flags = cpu_to_le16(new_flags); in exfat_set_vol_flags()
425 struct boot_sector *p_boot; in exfat_read_boot_sector() local
437 p_boot = (struct boot_sector *)sbi->boot_bh->b_data; in exfat_read_boot_sector()
440 if (le16_to_cpu((p_boot->signature)) != BOOT_SIGNATURE) { in exfat_read_boot_sector()
445 if (memcmp(p_boot->fs_name, STR_EXFAT, BOOTSEC_FS_NAME_LEN)) { in exfat_read_boot_sector()
454 if (memchr_inv(p_boot->must_be_zero, 0, sizeof(p_boot->must_be_zero))) in exfat_read_boot_sector()
457 if (p_boot->num_fats != 1 && p_boot->num_fats != 2) { in exfat_read_boot_sector()
465 if (p_boot->sect_size_bits < EXFAT_MIN_SECT_SIZE_BITS || in exfat_read_boot_sector()
466 p_boot->sect_size_bits > EXFAT_MAX_SECT_SIZE_BITS) { in exfat_read_boot_sector()
468 p_boot->sect_size_bits); in exfat_read_boot_sector()
475 if (p_boot->sect_per_clus_bits > EXFAT_MAX_SECT_PER_CLUS_BITS(p_boot)) { in exfat_read_boot_sector()
477 p_boot->sect_per_clus_bits); in exfat_read_boot_sector()
481 sbi->sect_per_clus = 1 << p_boot->sect_per_clus_bits; in exfat_read_boot_sector()
482 sbi->sect_per_clus_bits = p_boot->sect_per_clus_bits; in exfat_read_boot_sector()
483 sbi->cluster_size_bits = p_boot->sect_per_clus_bits + in exfat_read_boot_sector()
484 p_boot->sect_size_bits; in exfat_read_boot_sector()
486 sbi->num_FAT_sectors = le32_to_cpu(p_boot->fat_length); in exfat_read_boot_sector()
487 sbi->FAT1_start_sector = le32_to_cpu(p_boot->fat_offset); in exfat_read_boot_sector()
488 sbi->FAT2_start_sector = le32_to_cpu(p_boot->fat_offset); in exfat_read_boot_sector()
489 if (p_boot->num_fats == 2) in exfat_read_boot_sector()
491 sbi->data_start_sector = le32_to_cpu(p_boot->clu_offset); in exfat_read_boot_sector()
492 sbi->num_sectors = le64_to_cpu(p_boot->vol_length); in exfat_read_boot_sector()
494 sbi->num_clusters = le32_to_cpu(p_boot->clu_count) + in exfat_read_boot_sector()
497 sbi->root_dir = le32_to_cpu(p_boot->root_cluster); in exfat_read_boot_sector()
501 sbi->vol_flags = le16_to_cpu(p_boot->vol_flags); in exfat_read_boot_sector()
507 if ((u64)sbi->num_FAT_sectors << p_boot->sect_size_bits < in exfat_read_boot_sector()
515 (u64)sbi->num_FAT_sectors * p_boot->num_fats) { in exfat_read_boot_sector()
530 if (exfat_calibrate_blocksize(sb, 1 << p_boot->sect_size_bits)) in exfat_read_boot_sector()