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()
414 struct boot_sector *p_boot; in exfat_read_boot_sector() local
426 p_boot = (struct boot_sector *)sbi->boot_bh->b_data; in exfat_read_boot_sector()
429 if (le16_to_cpu((p_boot->signature)) != BOOT_SIGNATURE) { in exfat_read_boot_sector()
434 if (memcmp(p_boot->fs_name, STR_EXFAT, BOOTSEC_FS_NAME_LEN)) { in exfat_read_boot_sector()
443 if (memchr_inv(p_boot->must_be_zero, 0, sizeof(p_boot->must_be_zero))) in exfat_read_boot_sector()
446 if (p_boot->num_fats != 1 && p_boot->num_fats != 2) { in exfat_read_boot_sector()
454 if (p_boot->sect_size_bits < EXFAT_MIN_SECT_SIZE_BITS || in exfat_read_boot_sector()
455 p_boot->sect_size_bits > EXFAT_MAX_SECT_SIZE_BITS) { in exfat_read_boot_sector()
457 p_boot->sect_size_bits); in exfat_read_boot_sector()
464 if (p_boot->sect_per_clus_bits > EXFAT_MAX_SECT_PER_CLUS_BITS(p_boot)) { in exfat_read_boot_sector()
466 p_boot->sect_per_clus_bits); in exfat_read_boot_sector()
470 sbi->sect_per_clus = 1 << p_boot->sect_per_clus_bits; in exfat_read_boot_sector()
471 sbi->sect_per_clus_bits = p_boot->sect_per_clus_bits; in exfat_read_boot_sector()
472 sbi->cluster_size_bits = p_boot->sect_per_clus_bits + in exfat_read_boot_sector()
473 p_boot->sect_size_bits; in exfat_read_boot_sector()
475 sbi->num_FAT_sectors = le32_to_cpu(p_boot->fat_length); in exfat_read_boot_sector()
476 sbi->FAT1_start_sector = le32_to_cpu(p_boot->fat_offset); in exfat_read_boot_sector()
477 sbi->FAT2_start_sector = le32_to_cpu(p_boot->fat_offset); in exfat_read_boot_sector()
478 if (p_boot->num_fats == 2) in exfat_read_boot_sector()
480 sbi->data_start_sector = le32_to_cpu(p_boot->clu_offset); in exfat_read_boot_sector()
481 sbi->num_sectors = le64_to_cpu(p_boot->vol_length); in exfat_read_boot_sector()
483 sbi->num_clusters = le32_to_cpu(p_boot->clu_count) + in exfat_read_boot_sector()
486 sbi->root_dir = le32_to_cpu(p_boot->root_cluster); in exfat_read_boot_sector()
490 sbi->vol_flags = le16_to_cpu(p_boot->vol_flags); in exfat_read_boot_sector()
496 if ((u64)sbi->num_FAT_sectors << p_boot->sect_size_bits < in exfat_read_boot_sector()
504 (u64)sbi->num_FAT_sectors * p_boot->num_fats) { in exfat_read_boot_sector()
519 if (exfat_calibrate_blocksize(sb, 1 << p_boot->sect_size_bits)) in exfat_read_boot_sector()