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

1 2

  /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,
sd.c 503 int sector, i; local
517 sector = 0;
525 * and try to read the disklabel off sector #0.
530 sector = le32toh(mp[i].mbrp_start);
536 if (sdstrategy(sd, 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...]
cd9660_eltorito.c 162 new_image->sector = -1;
295 cd9660_731(disk->sector, ie->load_rba);
298 "load segment %04x, system type %d, sector count %d, "
301 disk->num_sectors, disk->sector));
339 cd9660_731(disk->sector, se->load_rba);
361 int sector; local
377 /* Point to catalog: For now assume it consumes one sector */
378 ELTORITO_DPRINTF(("Boot catalog will go in sector %d\n", first_sector));
418 /* Populate sector numbers */
419 sector = first_sector + catalog_sectors
    [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/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/sys/arch/dreamcast/dev/g1/
gdrom.c 81 int openpart_start; /* start sector of currently open partition */
267 int sector, cnt; local
273 sector = bp->b_rawblkno;
280 cmd[2] = sector >> 16;
281 cmd[3] = sector >> 8;
282 cmd[4] = sector;
  /src/sys/arch/prep/stand/boot/
sd.c 503 int sector, i; local
517 sector = 0;
525 * and try to read the disklabel off sector #0.
530 sector = le32toh(mp[i].mbrp_start);
536 if (sdstrategy(sd, F_READ, sector + LABELSECTOR, DEV_BSIZE,
  /src/sys/fs/udf/
udf_strat_direct.c 163 uint32_t sector, dummy; local
168 error = udf_translate_vtop(ump, icb, &sector, &dummy);
173 error = udf_read_phys_dscr(ump, sector, M_UDFTEMP, &tmpdscr);
193 uint32_t logsector, sector, dummy; local
204 sector = 0;
205 error = udf_translate_vtop(ump, icb, &sector, &dummy);
213 dscr, sector, logsector);
218 dscr, sector, logsector, udf_wr_nodedscr_callback);
249 int len, buf_len, sector, sectors, run_length; local
280 DPRINTF(SHEDULE, ("\nudf_issue_buf READ %p : sector %d type %d,
    [all...]
  /src/sys/arch/emips/stand/common/
ace.c 436 /* sector number and command
501 /* .. one sector at a time
508 /* Start a new sector read
714 uint32_t sector; local
730 * Compute starting sector
732 sector = bn;
733 sector += pp->p_offset;
735 sector += RF_PROTECTED_SECTORS;
738 s = SysAce_read(sc->sc_dp,addr,sector,reqcnt >> CF_SECBITS);

Completed in 29 milliseconds

1 2