Searched refs:deviceSize (Results 1 - 10 of 10) sorted by relevance
/haiku/src/bin/makebootable/platform/bios_ia32/ |
H A D | makebootable.cpp | 246 get_partition_offset(int deviceFD, off_t deviceStart, off_t deviceSize, argument 250 PartitionMapParser parser(deviceFD, deviceStart, deviceSize, blockSize); 272 EFI::Header gptHeader(deviceFD, deviceSize, blockSize); 456 int64 deviceSize; local 457 if (ioctl(baseFD, DIOCGMEDIASIZE, &deviceSize) == -1) { 466 get_partition_offset(baseFD, 0, deviceSize, 512, 512 int64 deviceSize; local 514 if (ioctl(baseFD, BLKGETSIZE64, &deviceSize) == 0 515 && deviceSize > 0) { 518 deviceSize [all...] |
/haiku/src/bin/ |
H A D | ramdisk.cpp | 122 int64 deviceSize = -1; local 144 deviceSize = parse_size(sizeString); 146 if (deviceSize <= 0) { 155 if (deviceSize / B_PAGE_SIZE > (int64)info.max_pages * 2 / 3) { 172 if (optind < argc || (deviceSize >= 0) == (path != NULL)) 177 request.size = (uint64)deviceSize;
|
/haiku/src/add-ons/kernel/file_systems/exfat/ |
H A D | Volume.cpp | 174 off_t deviceSize; local 175 status = opener.GetSize(&deviceSize); 181 if (deviceSize < partitionSize)
|
/haiku/src/add-ons/kernel/drivers/disk/virtual/ram_disk/ |
H A D | ram_disk.cpp | 191 status_t Register(const char* filePath, uint64 deviceSize, int32& _id) argument 200 {kDeviceSizeItem, B_UINT64_TYPE, {.ui64 = deviceSize}}, 269 status_t Init(int32 id, const char* filePath, uint64 deviceSize) argument 276 fDeviceSize = (deviceSize + B_PAGE_SIZE - 1) / B_PAGE_SIZE 535 const off_t deviceSize = fDeviceSize; // in bytes local 536 if (deviceSize < 0) 539 STATIC_ASSERT(sizeof(deviceSize) <= sizeof(uint64)); 540 ASSERT(deviceSize >= 0); 547 if (offset >= (uint64)deviceSize) 549 size = min_c(size, (uint64)deviceSize 1007 uint64 deviceSize = 0; local 1155 uint64 deviceSize; local [all...] |
/haiku/src/add-ons/kernel/drivers/disk/mmc/ |
H A D | mmc_disk.cpp | 486 const off_t deviceSize = info->DeviceSize(); // in bytes local 487 if (deviceSize < 0) 490 STATIC_ASSERT(sizeof(deviceSize) <= sizeof(uint64)); 491 ASSERT(deviceSize >= 0); 498 if (offset >= (uint64)deviceSize) 500 size = min_c(size, (uint64)deviceSize - offset);
|
/haiku/src/add-ons/kernel/file_systems/btrfs/ |
H A D | Volume.cpp | 365 off_t deviceSize; local 366 if (opener.GetSize(&deviceSize, &deviceBlockSize) < B_OK) 368 off_t numBlocks = deviceSize / sectorSize;
|
/haiku/src/add-ons/kernel/file_systems/bfs/ |
H A D | Volume.cpp | 561 off_t deviceSize; local 562 if (opener.GetSize(&deviceSize, &deviceBlockSize) < B_OK) 565 off_t numBlocks = deviceSize / blockSize; 580 if (deviceSize > 1LL * 1024 * 1024 * 1024)
|
/haiku/src/tools/fs_shell/ |
H A D | unistd.cpp | 193 off_t deviceSize = bytesPerCylinder * hdGeometry.cylinders; local 194 off_t partitionSize = get_partition_size(fd, deviceSize);
|
/haiku/src/add-ons/kernel/drivers/disk/nvme/ |
H A D | nvme_disk.cpp | 866 const off_t deviceSize = info->capacity * info->block_size; // in bytes local 867 if (deviceSize < 0) 870 STATIC_ASSERT(sizeof(deviceSize) <= sizeof(uint64)); 871 ASSERT(deviceSize >= 0); 878 if (offset >= (uint64)deviceSize) 880 size = std::min(size, (uint64)deviceSize - offset);
|
/haiku/src/add-ons/kernel/partitioning_systems/gpt/ |
H A D | Header.cpp | 242 uint64 deviceSize = fHeader.AlternateBlock() * fBlockSize; local 243 partition->SetTo(fBlockSize, deviceSize, 0xEE, false, fBlockSize);
|
Completed in 220 milliseconds