Lines Matching refs:sector_size
57 pbsx->vol_offset = cpu_to_le64(bd->offset / bd->sector_size); in exfat_setup_boot_sector()
58 pbsx->vol_length = cpu_to_le64(bd->size / bd->sector_size); in exfat_setup_boot_sector()
59 pbsx->fat_offset = cpu_to_le32(finfo.fat_byte_off / bd->sector_size); in exfat_setup_boot_sector()
60 pbsx->fat_length = cpu_to_le32(finfo.fat_byte_len / bd->sector_size); in exfat_setup_boot_sector()
61 pbsx->clu_offset = cpu_to_le32(finfo.clu_byte_off / bd->sector_size); in exfat_setup_boot_sector()
69 for (i = ui->cluster_size / bd->sector_size; i > 1; i /= 2) in exfat_setup_boot_sector()
113 ppbr = malloc(bd->sector_size); in exfat_write_boot_sector()
118 memset(ppbr, 0, bd->sector_size); in exfat_write_boot_sector()
130 boot_calc_checksum((unsigned char *)ppbr, bd->sector_size, in exfat_write_boot_sector()
147 peb = malloc(bd->sector_size); in exfat_write_extended_boot_sectors()
154 memset(peb, 0, bd->sector_size); in exfat_write_extended_boot_sectors()
155 peb_signature = (__le16*) (peb + bd->sector_size - 2); in exfat_write_extended_boot_sectors()
164 boot_calc_checksum((unsigned char *) peb, bd->sector_size, in exfat_write_extended_boot_sectors()
180 oem = malloc(bd->sector_size); in exfat_write_oem_sector()
187 memset(oem, 0xFF, bd->sector_size); in exfat_write_oem_sector()
195 boot_calc_checksum((unsigned char *)oem, bd->sector_size, false, in exfat_write_oem_sector()
199 memset(oem, 0, bd->sector_size); in exfat_write_oem_sector()
207 boot_calc_checksum((unsigned char *)oem, bd->sector_size, false, in exfat_write_oem_sector()
441 if (ui->cluster_size < bd->sector_size) { in exfat_build_mkfs_info()
443 ui->cluster_size, bd->sector_size); in exfat_build_mkfs_info()
446 if (ui->boundary_align < bd->sector_size) { in exfat_build_mkfs_info()
448 bd->sector_size); in exfat_build_mkfs_info()
451 finfo.fat_byte_off = round_up(bd->offset + 24 * bd->sector_size, in exfat_build_mkfs_info()