Home
last modified time | relevance | path

Searched refs:sectors (Results 1 - 23 of 23) sorted by relevance

/third_party/gptfdisk/
H A Ddiskio-unix.cc242 // Returns the number of sectors per track, according to the kernel, or 63
255 numSecs = (uint32_t) geometry.sectors; in GetNumSecsPerTrack()
436 uint64_t sectors = 0; // size in sectors in DiskSize() local
456 *err = ioctl(fd, DKIOCGETBLOCKCOUNT, &sectors); in DiskSize()
462 sectors = minfo.dki_capacity; in DiskSize()
468 sectors = bytes / b; in DiskSize()
476 sectors = sz = 0; in DiskSize()
481 sectors = sz; in DiskSize()
483 sectors in DiskSize()
[all...]
H A Ddiskio-windows.cc161 // Returns the number of sectors per track, according to the kernel, or 63
314 uint64_t sectors = 0; // size in sectors in DiskSize() local
331 sectors = (uint64_t) buf.Length.QuadPart / GetBlockSize(); in DiskSize()
335 sectors = ((uint64_t) bytes + ((uint64_t) moreBytes) * UINT32_MAX) / GetBlockSize(); in DiskSize()
340 sectors = 0; in DiskSize()
343 return sectors; in DiskSize()
H A Dmbrpart.cc126 void MBRPart::SetGeometry(uint32_t heads, uint32_t sectors, uint64_t ds, uint32_t bs) { in SetGeometry() argument
128 numSecspTrack = sectors; in SetGeometry()
H A Dmbrpart.h79 void SetGeometry(uint32_t heads, uint32_t sectors, uint64_t ds, uint32_t bs);
/third_party/ntfs-3g/libntfs-3g/
H A Dbootsect.c83 ntfs_log_debug("Checking sectors per cluster.\n"); in ntfs_boot_sector_is_ntfs()
91 ntfs_log_error("Unexpected sectors" in ntfs_boot_sector_is_ntfs()
95 ntfs_log_error("Unexpected sectors" in ntfs_boot_sector_is_ntfs()
116 le16_to_cpu(b->bpb.sectors) || in ntfs_boot_sector_is_ntfs()
124 le16_to_cpu(b->bpb.sectors), in ntfs_boot_sector_is_ntfs()
195 s64 sectors; in ntfs_boot_sector_parse() local
222 sectors = sle64_to_cpu(bs->number_of_sectors); in ntfs_boot_sector_parse()
223 ntfs_log_debug("NumberOfSectors = %lld\n", (long long)sectors); in ntfs_boot_sector_parse()
224 if (!sectors) { in ntfs_boot_sector_parse()
229 (sectors in ntfs_boot_sector_parse()
[all...]
H A Ddevice.c741 dev->d_sectors_per_track = res->disk_geo.sectors; in ntfs_device_get_geo()
751 ntfs_log_debug("EDD/BIOD legacy heads = %u, sectors " in ntfs_device_get_geo()
764 dev->d_sectors_per_track = geo.sectors; in ntfs_device_get_geo()
765 ntfs_log_debug("HDIO_GETGEO heads = %u, sectors per " in ntfs_device_get_geo()
808 * ntfs_device_sectors_per_track_get - get number of sectors per track of device
811 * On success, return the number of sectors per track on the device @dev. On
H A Dwin32_io.c681 * In Windows NT+: fills size, sectors, and cylinders and sets heads to -1.
682 * In Windows XP+: fills size, sectors, cylinders, and heads.
687 * If fails, sets sectors, cylinders, heads, and size to -1.
1051 * @hidden_sectors: pointer to where to put the hidden sectors
1816 argp->sectors = fd->geo_sectors; in ntfs_win32_hdio_getgeo()
/third_party/f2fs-tools/lib/
H A Dlibf2fs_zoned.c151 uint32_t sectors; in f2fs_get_zone_chunk_sectors() local
173 sectors = atoi(str); in f2fs_get_zone_chunk_sectors()
175 return sectors; in f2fs_get_zone_chunk_sectors()
181 uint64_t sectors; in f2fs_get_zone_blocks() local
186 sectors = f2fs_get_zone_chunk_sectors(dev); in f2fs_get_zone_blocks()
187 if (!sectors) in f2fs_get_zone_blocks()
190 dev->zone_size = sectors << SECTOR_SHIFT; in f2fs_get_zone_blocks()
191 dev->zone_blocks = sectors >> (F2FS_BLKSIZE_BITS - SECTOR_SHIFT); in f2fs_get_zone_blocks()
192 sectors = dev->zone_size / c.sector_size; in f2fs_get_zone_blocks()
198 dev->nr_zones = dev->total_sectors / sectors; in f2fs_get_zone_blocks()
[all...]
/third_party/ffmpeg/libavformat/
H A Dsga.c53 int score = 0, sectors = 1; in sga_probe() local
66 sectors = 0; in sga_probe()
78 if (sectors && header && last_left == 0) { in sga_probe()
84 } else if (sectors && header) { in sga_probe()
89 } else if (sectors) { in sga_probe()
92 i += sectors ? 2048 : left + 4; in sga_probe()
97 if (sectors && (i > 0 && left < 0x7fe) && in sga_probe()
100 } else if (sectors && i > 0) { in sga_probe()
171 i += sectors ? 2048 : size + 4; in sga_probe()
H A Dwtvdec.c55 uint32_t *sectors; /**< file allocation table */ member
56 int nb_sectors; /**< number of sectors */
96 (wf->sectors[i] != wf->sectors[i - 1] + (1 << (wf->sector_bits - WTV_SECTOR_BITS)) && in wtvfile_read_packet()
97 seek_by_sector(pb, wf->sectors[i], 0) < 0)) { in wtvfile_read_packet()
122 seek_by_sector(pb, wf->sectors[offset >> wf->sector_bits], in wtvfile_seek()
167 wf->sectors = av_malloc(sizeof(uint32_t)); in wtvfile_open_sector()
168 if (!wf->sectors) { in wtvfile_open_sector()
172 wf->sectors[0] = first_sector; in wtvfile_open_sector()
175 wf->sectors in wtvfile_open_sector()
[all...]
/third_party/musl/src/unistd/liteos_a/
H A Dformat.c20 int format(const char *dev, int sectors, int option) in format() argument
22 return syscall(SYS_format, dev, sectors, option); in format()
/third_party/musl/porting/liteos_a/user/src/unistd/
H A Dformat.c5 int format(const char *dev, int sectors, int option) in format() argument
7 return syscall(SYS_format, dev, sectors, option); in format()
/third_party/toybox/toys/pending/
H A Dfdisk.c18 -u Start and End are in sectors (instead of cylinders)
21 -C CYLINDERS Set number of cylinders/heads/sectors
32 long sectors;
130 if (!g_sectors) printf(" sectors"); in chs_warn()
165 unsigned long sectors = 0; in read_size() local
169 perror_msg("device has more than 2^32 sectors, can't use all of them"); in read_size()
174 if (ioctl(dev_fd, BLKGETSIZE, &sectors) == 0) in read_size()
175 if (sizeof(long) > sizeof(sector_t) && sectors != (sector_t)sectors) in read_size()
176 sectors in read_size()
[all...]
/third_party/ntfs-3g/include/ntfs-3g/
H A Ddevice_io.h51 unsigned char sectors; member
H A Dlayout.h40 * from within Windows as the bootsector contained number of sectors
43 * number of sectors/2 (integer divide), i.e. in the middle of the volume.
51 u8 sectors_per_cluster; /* Size of a cluster in sectors. */
55 le16 sectors; /* zero */ member
61 relative to the disk in sectors.
78 /*0x28*/sle64 number_of_sectors; /* Number of sectors in volume. Gives
79 maximum volume size of 2^63 sectors.
2137 otherwise sectors per index block. */
/third_party/f2fs-tools/scripts/
H A Dverify.sh34 mkfs.f2fs $IMG `_get_sec $1` | grep sectors
/third_party/FreeBSD/sbin/newfs_msdos/
H A Dmkfs_msdos.c69 #define MAXSPC 128 /* maximum sectors per cluster */
110 u_int8_t bpbSecPerClust; /* sectors per cluster */
111 u_int8_t bpbResSectors[2]; /* reserved sectors */
114 u_int8_t bpbSectors[2]; /* total sectors */
116 u_int8_t bpbFATsecs[2]; /* sectors per FAT */
117 u_int8_t bpbSecPerTrack[2]; /* sectors per track */
119 u_int8_t bpbHiddenSecs[4]; /* hidden sectors */
120 u_int8_t bpbHugeSectors[4]; /* big total sectors */
124 u_int8_t bpbBigFATsecs[4]; /* big sectors per FAT */
154 u_int bpbSecPerClust; /* sectors pe
888 u_int64_t sectors = device_size/bpb->bpbBytesPerSec; getdiskinfo() local
[all...]
/third_party/ntfs-3g/ntfsprogs/
H A Dntfsrecover.c224 /* Do not check beyond used sectors */ in replaceusa()
3078 u64 sectors; in getboot() local
3091 sectors = getle64(buf, 0x28); in getboot()
3092 clusters = sectors/sectpercluster; in getboot()
3102 if ((long long)sectors*bytespersect > 10000000000LL) in getboot()
3104 (long long)sectors*bytespersect, in getboot()
3105 (long long)sectors*bytespersect/1000000000); in getboot()
3108 (long long)sectors*bytespersect, in getboot()
3109 (long long)sectors*bytespersect/1000000); in getboot()
3110 printf("sectors in getboot()
[all...]
/third_party/musl/porting/liteos_a/user/include/
H A Dunistd.h86 * @param sectors sectors per cluster, can be 0 OR power of 2. The sector size for standard FAT volumes is 512 bytes.
88 * -- sector number is 1 ~ 128: cluster size = sectors per cluster * 512B.
98 int format(const char *dev, int sectors, int option);
/third_party/musl/porting/liteos_m/user/include/
H A Dunistd.h86 * @param sectors sectors per cluster, can be 0 OR power of 2. The sector size for standard FAT volumes is 512 bytes.
88 * -- sector number is 1 ~ 128: cluster size = sectors per cluster * 512B.
98 int format(const char *dev, int sectors, int option);
/third_party/musl/include/
H A Dunistd.h100 * @param sectors sectors per cluster, can be 0 OR power of 2. The sector size for standard FAT volumes is 512 bytes.
102 * -- sector number is 1 ~ 128: cluster size = sectors per cluster * 512B.
112 int format(const char *dev, int sectors, int option);
/third_party/NuttX/drivers/usbdev/gadget/
H A Df_mass_storage.c464 uint32_t sectors; in done_scsi_read_capacity() local
477 sectors = fmass->caps[fmass->lun].nsectors - 1; in done_scsi_read_capacity()
480 put_unaligned_be32(buf, sectors); in done_scsi_read_capacity()
664 nwritesector = fmass->bulkreq.xfrd >> 9; /* bytes -> sectors */ in done_scsi_write()
/third_party/toybox/generated/
H A Dglobals.h752 long sectors; member

Completed in 29 milliseconds