Home
last modified time | relevance | path

Searched refs:disk_blocks (Results 1 – 2 of 2) sorted by relevance

/freebsd/stand/i386/libi386/
H A Dbiosdisk.c971 uint64_t disk_blocks, offset, d_offset; in bd_realstrategy() local
1024 disk_blocks = 0; in bd_realstrategy()
1026 if (disk_ioctl(dev, DIOCGMEDIASIZE, &disk_blocks) == 0) { in bd_realstrategy()
1028 disk_blocks /= bd->bd_sectorsize; in bd_realstrategy()
1032 if (disk_blocks == 0) in bd_realstrategy()
1033 disk_blocks = bd->bd_sectors * (bd->bd_sectorsize / in bd_realstrategy()
1037 if (dblk < d_offset || dblk >= d_offset + disk_blocks) in bd_realstrategy()
1043 if (dblk + blks >= d_offset + disk_blocks) { in bd_realstrategy()
1044 blks = d_offset + disk_blocks - dblk; in bd_realstrategy()
/freebsd/stand/efi/libefi/
H A Defipart.c1084 uint64_t off, disk_blocks, d_offset = 0; in efipart_realstrategy() local
1111 disk_blocks = 0; in efipart_realstrategy()
1113 if (disk_ioctl(dev, DIOCGMEDIASIZE, &disk_blocks) == 0) { in efipart_realstrategy()
1115 disk_blocks /= blkio->Media->BlockSize; in efipart_realstrategy()
1119 if (disk_blocks == 0) in efipart_realstrategy()
1120 disk_blocks = blkio->Media->LastBlock + 1 - d_offset; in efipart_realstrategy()
1123 if ((off + size) / blkio->Media->BlockSize > d_offset + disk_blocks) { in efipart_realstrategy()
1124 diskend = d_offset + disk_blocks; in efipart_realstrategy()