Home
last modified time | relevance | path

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

/illumos-gate/usr/src/boot/i386/libi386/
H A Dbiosdisk.c960 uint64_t disk_blocks, offset, d_offset; in bd_realstrategy() local
1013 disk_blocks = 0; in bd_realstrategy()
1015 if (disk_ioctl(dev, DIOCGMEDIASIZE, &disk_blocks) == 0) { in bd_realstrategy()
1017 disk_blocks /= bd->bd_sectorsize; in bd_realstrategy()
1021 if (disk_blocks == 0) in bd_realstrategy()
1022 disk_blocks = bd->bd_sectors - d_offset; in bd_realstrategy()
1025 if (dblk < d_offset || dblk >= d_offset + disk_blocks) in bd_realstrategy()
1031 if (dblk + blks >= d_offset + disk_blocks) { in bd_realstrategy()
1032 blks = d_offset + disk_blocks - dblk; in bd_realstrategy()
/illumos-gate/usr/src/boot/efi/libefi/
H A Defipart.c1058 uint64_t off, disk_blocks, d_offset = 0; in efipart_realstrategy() local
1085 disk_blocks = 0; in efipart_realstrategy()
1087 if (disk_ioctl(dev, DIOCGMEDIASIZE, &disk_blocks) == 0) { in efipart_realstrategy()
1089 disk_blocks /= blkio->Media->BlockSize; in efipart_realstrategy()
1093 if (disk_blocks == 0) in efipart_realstrategy()
1094 disk_blocks = blkio->Media->LastBlock + 1 - d_offset; in efipart_realstrategy()
1097 if ((off + size) / blkio->Media->BlockSize > d_offset + disk_blocks) { in efipart_realstrategy()
1098 diskend = d_offset + disk_blocks; in efipart_realstrategy()