Lines Matching defs:sector_size
189 if (ioctl(fd, BLKSSZGET, &bd->sector_size) < 0)
190 bd->sector_size = DEFAULT_SECTOR_SIZE;
191 bd->sector_size_bits = sector_size_bits(bd->sector_size);
192 bd->num_sectors = blk_dev_size / bd->sector_size;
198 exfat_debug("Block sector size : %u\n", bd->sector_size);
354 unsigned int cluster_size, sector_size;
376 sector_size = 1 << bs->bsx.sect_size_bits;
377 cluster_size = (1 << bs->bsx.sect_per_clus_bits) * sector_size;
378 root_clu_off = le32_to_cpu(bs->bsx.clu_offset) * sector_size +
498 (unsigned long long)sec_off * bd->sector_size;
500 ret = pread(bd->dev_fd, buf, bd->sector_size, offset);
513 (unsigned long long)sec_off * bd->sector_size;
515 bytes = pwrite(bd->dev_fd, buf, bd->sector_size, offset);
516 if (bytes != (int)bd->sector_size) {
532 checksum_buf = malloc(bd->sector_size);
539 for (i = 0; i < bd->sector_size / sizeof(int); i++)
591 buf = malloc(bd->sector_size);
613 boot_calc_checksum(buf, bd->sector_size, is_boot_sec,
652 bd->sector_size = 1 << ppbr->bsx.sect_size_bits;
691 return clu_off_sectnr * bd->sector_size +