Searched refs:device_size (Results 1 – 8 of 8) sorted by relevance
/third_party/ntfs-3g/ntfsprogs/ |
D | ntfsclone.c | 255 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 …]
|
D | ntfsresize.c | 4540 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/ |
D | libf2fs.c | 966 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()
|
D | libf2fs_io.c | 673 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/ |
D | f2fs_format_main.c | 259 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/ |
D | mkfs_msdos.c | 888 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/ |
D | f2fs_fs.h | 476 uint64_t device_size; member
|
/third_party/libdrm/ |
D | xf86drm.c | 3999 size_t bus_size, size_t device_size, in drmDeviceAlloc() argument 4010 size = sizeof(*device) + extra + bus_size + device_size; in drmDeviceAlloc()
|