HomeSort by: relevance | last modified time | path
    Searched defs:sector (Results 1 - 25 of 65) sorted by relevancy

1 2 3

  /src/sys/arch/ews4800mips/stand/common/
floppy_2hc.c 39 int sector, side, cylinder; local
46 * 512 bytes/sector
53 sector = logical_block_number - (side + cylinder * 2) * 15;
56 *position = (cylinder << 16) | (side << 8) | (sector + 1);
58 *count = 15 - sector;
floppy_2hd_ibmpc.c 39 int sector, side, cylinder; local
46 * 512 bytes/sector
53 sector = logical_block_number - (side + cylinder * 2) * 18;
56 *position = (cylinder << 16) | (side << 8) | (sector + 1);
58 *count = 18 - sector;
floppy_2d.c 39 int i, sector, side, cylinder; local
46 * 256 bytes/sector (cylinder 0 side 0 is 128 bytes/sector)
57 sector = i - (side + cylinder * 2) * 26;
59 *position = (cylinder << 16) | (side << 8) | (sector + 1);
61 *count = (26 - sector) / 2;
  /src/usr.sbin/fstyp/
cd9660.c 54 char *sector, *volume; local
56 sector = read_buf(fp, ISO9660_OFFSET, 512);
57 if (sector == NULL)
59 if (bcmp(sector, ISO9660_MAGIC, sizeof(ISO9660_MAGIC) - 1) != 0) {
60 free(sector);
63 volume = sector + 0x28;
66 free(sector);
msdosfs.c 57 uint8_t *sector0, *sector; local
60 sector = NULL;
62 /* Load 1st sector with boot sector and boot parameter block. */
67 /* Check for the FAT boot sector signature. */
118 * If the volume label "NO NAME " is in the boot sector, the
132 sector = read_buf(fp, offset, fat_BytesPerSector);
133 if (sector == NULL)
136 pfat_entry = (FAT_DES *)sector;
163 (uint8_t *)(sector + fat_BytesPerSector))
    [all...]
  /src/games/trek/
initquad.c 50 ** sector.
98 sector(&rx, &ry);
109 sector(&rx, &ry);
117 sector(&rx, &ry);
124 sector(&rx, &ry);
130 sector(&rx, &ry);
138 sector(int *x, int *y) function
  /src/lib/libutil/
getlabelsector.c 50 int sector, mib[2]; local
55 varlen = sizeof(sector);
56 if (sysctl(mib, 2, &sector, &varlen, NULL, (size_t)0) < 0)
59 return sector;
  /src/sbin/gpt/
resizedisk.c 85 resizedisk(gpt_t gpt, off_t sector, off_t size __unused, bool quiet)
98 if (sector > last) {
100 " is larger then the disk %jd", (uintmax_t)sector,
134 if (sector == oldloc) {
140 if (sector == 0 && last == oldloc) {
156 if (sector - gpt_size <= lastdata) {
158 " for secondary GPT table", sector);
167 if (sector > oldloc)
168 newloc = sector;
169 if (sector > 0 && sector < oldloc && last >= oldloc
242 off_t sector, size = gpt->mediasz; local
    [all...]
  /src/sys/arch/atari/stand/ahdilabel/
ahdilabel.c 79 "%s: disk not 512 bytes/sector\n", argv[0]);
113 printf ("Preserve boot sector - ");
116 printf ("Preserve bad sector list - ");
137 printf ("Preserve boot sector - ");
140 printf ("Preserve bad sector list - ");
146 printf ("Units now cylinder/track/sector\n");
149 printf ("Units now sector\n");
162 printf ("Partition overlaps root sector or bad sector list (starts before sector 2)!\n")
240 u_int32_t cylinder, track, sector; local
314 u_int32_t sector, track, cylinder; local
371 u_int32_t sector; local
    [all...]
  /src/sys/arch/bebox/stand/boot/
wd.c 170 int sector, i; local
179 sector = 0;
187 * and try to read the disklabel off sector #0.
192 sector = le32toh(mp[i].mbrp_start);
198 if (wdstrategy(wd, F_READ, sector + LABELSECTOR, DEV_BSIZE,
  /src/sys/arch/cobalt/stand/boot/
wd.c 155 int sector; local
166 sector = 0;
177 * and try to read the disklabel off sector #0.
182 sector = mp[i].mbrp_start;
188 if (wdstrategy(wd, F_READ, sector + LABELSECTOR, DEV_BSIZE,
  /src/usr.sbin/makefs/cd9660/
cd9660_debug.c 163 printf("Volume descriptor in sector %" PRId64
165 tmp->sector, tmp->volumeDescriptorData[0], temp);
203 debug_dump_to_xml_path_table(FILE *fd, off_t sector, int size, int mode)
209 if (fseeko(fd, CD9660_SECTOR_SIZE * sector, SEEK_SET) == -1)
235 off_t sector; local
244 sector = 16;
246 if (fseeko(fd, CD9660_SECTOR_SIZE * sector, SEEK_SET) == -1)
258 debug_dump_to_xml_volume_descriptor(buf, sector);
259 sector++;
265 printf("Path table 1 located at sector %i and is %i bytes long\n"
    [all...]
cd9660_write.c 149 cd9660_write_filedata(diskStructure, fd, vd_temp->sector,
160 * @param int Sector to start writing path table to
165 cd9660_write_path_table(iso9660_disk *diskStructure, FILE *fd, off_t sector,
214 return cd9660_write_filedata(diskStructure, fd, sector, buffer_head,
222 * sector to copy them to. One thing to watch out for: the only path tables
252 * with the root node. All of the records should store what sector the
302 * be careful of sector boundaries
312 * records - beware of sector boundaries
330 /* Seek to the next sector. */
375 * Wrapper function to write a buffer (one sector) to disk
427 off_t sector = start_sector; local
    [all...]
  /src/usr.sbin/sysinst/arch/shark/
md.c 202 * Clears the disk's first sector by writing all zeros over it.
210 char sector[512]; local
216 memset(sector, 0, sizeof(sector));
217 if (pwrite(fd, &sector, sizeof(sector), 0) < 0) {
  /src/usr.sbin/sysinst/
mbr.h 50 * looks like if the sector size isn't 512.
66 uint sector; /* where we read this from */ member in struct:mbr_info_t
72 uint bootsec; /* start sector of bootmenu default */
  /src/external/gpl2/lvm2/dist/include/
label.h 34 uint64_t sector_xl; /* Sector number of this label */
35 uint32_t crc_xl; /* From next field to end of sector */
43 uint64_t sector; member in struct:label
54 int (*can_handle) (struct labeller * l, void *buf, uint64_t sector);
70 int (*verify) (struct labeller * l, void *buf, uint64_t sector);
  /src/external/gpl2/lvm2/dist/lib/label/
label.h 34 uint64_t sector_xl; /* Sector number of this label */
35 uint32_t crc_xl; /* From next field to end of sector */
43 uint64_t sector; member in struct:label
54 int (*can_handle) (struct labeller * l, void *buf, uint64_t sector);
70 int (*verify) (struct labeller * l, void *buf, uint64_t sector);
label.c 29 /* FIXME Allow for larger labels? Restricted to single sector currently */
117 uint64_t sector; local
128 for (sector = 0; sector < LABEL_SCAN_SECTORS;
129 sector += LABEL_SIZE >> SECTOR_SHIFT) {
131 (sector << SECTOR_SHIFT));
136 "sector %" PRIu64, dev_name(dev),
137 sector + scan_sector);
139 if (xlate64(lh->sector_xl) != sector + scan_sector) {
140 log_info("%s: Label for sector %" PRIu6
198 uint64_t sector; local
267 uint64_t sector; local
353 uint64_t sector; local
    [all...]
  /src/external/gpl2/lvm2/dist/tools/
pvchange.c 28 uint64_t sector; local
100 if (!(pv = pv_read(cmd, pv_name, NULL, &sector, 1, 0))) {
  /src/sbin/mbrlabel/
mbrlabel.c 127 fprintf(stderr,"Invalid sector size %u\n", bsize);
146 perror("read label (sector is possibly out of "
277 fprintf(stderr, "usage: %s [-fqrw] [-s sector] device\n",
292 uint32_t sector; /* sector that contains the MBR */ local
299 sector = MBR_BBSECTOR;
316 "sector number (%s) incorrectly specified",
321 "sector number (%s) out of range",
323 sector = (uint32_t)ulsector;
343 changed = getparts(sd, sector, 0, verbose)
    [all...]
  /src/sys/arch/landisk/stand/boot/
biosdisk.c 109 check_label(struct biosdisk *d, int sector)
114 if (readsects(d->dev, sector + LABELSECTOR, d->buf, 1)) {
129 d->boff = sector;
140 int sector, i; local
166 printf("error reading MBR sector %d\n", this_ext);
176 sector = this_ext + mbr[i].mbrp_start;
178 error = check_label(d, sector);
188 sector_386bsd = sector;
196 p->p_offset = sector;
208 sector = 0
    [all...]
  /src/sys/arch/mac68k/obio/
iwmreg.h 76 seekErr = -80, /* Wrong track number read in a sector's */
78 sectNFErr = -81, /* Sector number never found on a track */
79 fmt1Err = -82, /* Can't find sector 0 after track format */
87 /* Buffer for sector header data */
91 u_int8_t sector; member in struct:sectorHdr
104 unsigned char *secbuf; /* ptr to one sector buffer */
243 /* sector's address field */
244 .equ sectNFErr, -81 /* Sector number never found on a track */
245 .equ fmt1Err, -82 /* Can't find sector 0 after */
  /src/sys/dev/spi/
m25p.c 92 uint16_t sector; /* in KB */ member in struct:m25p_info
208 sc->sc_sizes[SPIFLASH_SIZE_ERASE] = info->sector * 1024;
  /src/external/gpl2/lvm2/dist/lib/device/
device.c 35 uint8_t sector; member in struct:partition
  /src/external/gpl2/lvm2/dist/libdm/ioctl/
libdm-targets.h 59 uint64_t sector; member in struct:dm_task

Completed in 63 milliseconds

1 2 3