Lines Matching refs:sector_size
57 pbsx->vol_offset = cpu_to_le64(bd->offset / bd->sector_size);
58 pbsx->vol_length = cpu_to_le64(bd->size / bd->sector_size);
59 pbsx->fat_offset = cpu_to_le32(finfo.fat_byte_off / bd->sector_size);
60 pbsx->fat_length = cpu_to_le32(finfo.fat_byte_len / bd->sector_size);
61 pbsx->clu_offset = cpu_to_le32(finfo.clu_byte_off / bd->sector_size);
68 /* Compute base 2 logarithm of ui->cluster_size / bd->sector_size */
69 for (i = ui->cluster_size / bd->sector_size; i > 1; i /= 2)
113 ppbr = malloc(bd->sector_size);
118 memset(ppbr, 0, bd->sector_size);
130 boot_calc_checksum((unsigned char *)ppbr, bd->sector_size,
147 peb = malloc(bd->sector_size);
154 memset(peb, 0, bd->sector_size);
155 peb_signature = (__le16*) (peb + bd->sector_size - 2);
164 boot_calc_checksum((unsigned char *) peb, bd->sector_size,
180 oem = malloc(bd->sector_size);
187 memset(oem, 0xFF, bd->sector_size);
195 boot_calc_checksum((unsigned char *)oem, bd->sector_size, false,
199 memset(oem, 0, bd->sector_size);
207 boot_calc_checksum((unsigned char *)oem, bd->sector_size, false,
442 if (ui->cluster_size < bd->sector_size) {
444 ui->cluster_size, bd->sector_size);
447 if (ui->boundary_align < bd->sector_size) {
449 bd->sector_size);
452 finfo.fat_byte_off = round_up(bd->offset + 24 * bd->sector_size,