Lines Matching refs:p_boot
93 struct boot_sector *p_boot = (struct boot_sector *)sbi->boot_bh->b_data; in exfat_set_vol_flags() local
110 p_boot->vol_flags = cpu_to_le16(new_flags); in exfat_set_vol_flags()
455 struct boot_sector *p_boot; in exfat_read_boot_sector() local
467 p_boot = (struct boot_sector *)sbi->boot_bh->b_data; in exfat_read_boot_sector()
470 if (le16_to_cpu((p_boot->signature)) != BOOT_SIGNATURE) { in exfat_read_boot_sector()
475 if (memcmp(p_boot->fs_name, STR_EXFAT, BOOTSEC_FS_NAME_LEN)) { in exfat_read_boot_sector()
484 if (memchr_inv(p_boot->must_be_zero, 0, sizeof(p_boot->must_be_zero))) in exfat_read_boot_sector()
487 if (p_boot->num_fats != 1 && p_boot->num_fats != 2) { in exfat_read_boot_sector()
495 if (p_boot->sect_size_bits < EXFAT_MIN_SECT_SIZE_BITS || in exfat_read_boot_sector()
496 p_boot->sect_size_bits > EXFAT_MAX_SECT_SIZE_BITS) { in exfat_read_boot_sector()
498 p_boot->sect_size_bits); in exfat_read_boot_sector()
505 if (p_boot->sect_per_clus_bits > EXFAT_MAX_SECT_PER_CLUS_BITS(p_boot)) { in exfat_read_boot_sector()
507 p_boot->sect_per_clus_bits); in exfat_read_boot_sector()
511 sbi->sect_per_clus = 1 << p_boot->sect_per_clus_bits; in exfat_read_boot_sector()
512 sbi->sect_per_clus_bits = p_boot->sect_per_clus_bits; in exfat_read_boot_sector()
513 sbi->cluster_size_bits = p_boot->sect_per_clus_bits + in exfat_read_boot_sector()
514 p_boot->sect_size_bits; in exfat_read_boot_sector()
516 sbi->num_FAT_sectors = le32_to_cpu(p_boot->fat_length); in exfat_read_boot_sector()
517 sbi->FAT1_start_sector = le32_to_cpu(p_boot->fat_offset); in exfat_read_boot_sector()
518 sbi->FAT2_start_sector = le32_to_cpu(p_boot->fat_offset); in exfat_read_boot_sector()
519 if (p_boot->num_fats == 2) in exfat_read_boot_sector()
521 sbi->data_start_sector = le32_to_cpu(p_boot->clu_offset); in exfat_read_boot_sector()
522 sbi->num_sectors = le64_to_cpu(p_boot->vol_length); in exfat_read_boot_sector()
524 sbi->num_clusters = le32_to_cpu(p_boot->clu_count) + in exfat_read_boot_sector()
527 sbi->root_dir = le32_to_cpu(p_boot->root_cluster); in exfat_read_boot_sector()
531 sbi->vol_flags = le16_to_cpu(p_boot->vol_flags); in exfat_read_boot_sector()
537 if ((u64)sbi->num_FAT_sectors << p_boot->sect_size_bits < in exfat_read_boot_sector()
545 (u64)sbi->num_FAT_sectors * p_boot->num_fats) { in exfat_read_boot_sector()
560 if (exfat_calibrate_blocksize(sb, 1 << p_boot->sect_size_bits)) in exfat_read_boot_sector()