Home
last modified time | relevance | path

Searched refs:device_size (Results 1 – 8 of 8) sorted by relevance

/third_party/ntfs-3g/ntfsprogs/
Dntfsclone.c255 le64 device_size; member
2141 (long long)le64_to_cpu(image_hdr.device_size));
2410 image_hdr.device_size = cpu_to_sle64(image_hdr.device_size);
2455 return le64_to_cpu(image_hdr.device_size);
2460 s64 device_size; local
2464 device_size = ntfs_device_size_get(vol->dev, 1);
2465 if (device_size <= 0)
2467 (long long)device_size);
2469 print_volume_size("Current device size", device_size);
2471 if (device_size < vol->nr_clusters * vol->cluster_size)
[all …]
Dntfsresize.c4540 s64 device_size; /* in bytes */ in main() local
4582 device_size = ntfs_device_size_get(vol->dev, vol->sector_size); in main()
4583 device_size *= vol->sector_size; in main()
4584 if (device_size <= 0) in main()
4586 (long long)device_size); in main()
4589 print_vol_size("Current device size", device_size); in main()
4591 if (device_size < vol->nr_clusters * vol->cluster_size) in main()
4597 opt.bytes = device_size; in main()
4610 if (device_size < opt.bytes) in main()
4617 (opt.bytes == device_size && in main()
/third_party/f2fs-tools/lib/
Dlibf2fs.c966 dev->total_sectors = c.device_size / dev->sector_size; in get_device_info()
1103 static int win_get_device_size(const char *file, uint64_t *device_size) in win_get_device_size() argument
1126 *device_size = pi.PartitionLength.QuadPart; in win_get_device_size()
1133 *device_size = gi.BytesPerSector * in win_get_device_size()
1140 *device_size = filesize.QuadPart; in win_get_device_size()
1147 *device_size = filesize;
1158 uint64_t device_size = 0; in get_device_info() local
1163 if (win_get_device_size(dev->path, &device_size)) { in get_device_info()
1168 device_size = c.device_size; in get_device_info()
1180 dev->total_sectors = device_size / dev->sector_size; in get_device_info()
Dlibf2fs_io.c673 f2fs_sparse_file = sparse_file_new(F2FS_BLKSIZE, c.device_size); in f2fs_init_sparse_file()
682 c.device_size = sparse_file_len(f2fs_sparse_file, 0, 0); in f2fs_init_sparse_file()
683 c.device_size &= (~((uint64_t)(F2FS_BLKSIZE - 1))); in f2fs_init_sparse_file()
690 blocks_count = c.device_size / F2FS_BLKSIZE; in f2fs_init_sparse_file()
749 c.device_size); in f2fs_finalize_device()
/third_party/f2fs-tools/mkfs/
Df2fs_format_main.c259 c.device_size = atoll(optarg); in f2fs_parse_options()
260 c.device_size &= (~((uint64_t)(F2FS_BLKSIZE - 1))); in f2fs_parse_options()
/third_party/FreeBSD/sbin/newfs_msdos/
Dmkfs_msdos.c888 u_int64_t device_size; in getdiskinfo() local
889 if (ioctl(fd, BLKGETSIZE64, &device_size) == -1) { in getdiskinfo()
893 u_int64_t sectors = device_size/bpb->bpbBytesPerSec; in getdiskinfo()
896 sectors, device_size, bpb->bpbBytesPerSec); in getdiskinfo()
/third_party/f2fs-tools/include/
Df2fs_fs.h476 uint64_t device_size; member
/third_party/libdrm/
Dxf86drm.c3999 size_t bus_size, size_t device_size, in drmDeviceAlloc() argument
4010 size = sizeof(*device) + extra + bus_size + device_size; in drmDeviceAlloc()