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

1 2 3 4

  /src/sys/arch/ews4800mips/stand/common/
floppy_2hc.c 39 int sector, side, cylinder; local in function:blk_to_2hc_position
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 in function:blk_to_2hd_position
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_2hc.c 39 int sector, side, cylinder; local in function:blk_to_2hc_position
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 in function:blk_to_2hd_position
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 in function:blk_to_2d_position
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;
floppy_2d.c 39 int i, sector, side, cylinder; local in function:blk_to_2d_position
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 in function:fstyp_cd9660
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);
cd9660.c 54 char *sector, *volume; local in function:fstyp_cd9660
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 in function:fstyp_msdosfs
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...]
msdosfs.c 57 uint8_t *sector0, *sector; local in function:fstyp_msdosfs
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 in typeref:typename:void
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 in typeref:typename:void
  /src/lib/libutil/
getlabelsector.c 50 int sector, mib[2]; local in function:getlabelsector
55 varlen = sizeof(sector);
56 if (sysctl(mib, 2, &sector, &varlen, NULL, (size_t)0) < 0)
59 return sector;
getlabelsector.c 50 int sector, mib[2]; local in function:getlabelsector
55 varlen = sizeof(sector);
56 if (sysctl(mib, 2, &sector, &varlen, NULL, (size_t)0) < 0)
59 return sector;
  /src/sbin/gpt/
resizedisk.c 82 resizedisk(gpt_t gpt, off_t sector, off_t size __unused, bool quiet)
95 if (sector > last) {
97 " is larger then the disk %jd", (uintmax_t)sector,
131 if (sector == oldloc) {
137 if (sector == 0 && last == oldloc) {
153 if (sector - gpt_size <= lastdata) {
155 " for secondary GPT table", sector);
164 if (sector > oldloc)
165 newloc = sector;
166 if (sector > 0 && sector < oldloc && last >= oldloc
239 off_t sector, size = gpt->mediasz; local in function:cmd_resizedisk
    [all...]
resizedisk.c 82 resizedisk(gpt_t gpt, off_t sector, off_t size __unused, bool quiet)
95 if (sector > last) {
97 " is larger then the disk %jd", (uintmax_t)sector,
131 if (sector == oldloc) {
137 if (sector == 0 && last == oldloc) {
153 if (sector - gpt_size <= lastdata) {
155 " for secondary GPT table", sector);
164 if (sector > oldloc)
165 newloc = sector;
166 if (sector > 0 && sector < oldloc && last >= oldloc
239 off_t sector, size = gpt->mediasz; local in function:cmd_resizedisk
    [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 in function:show_parts
314 u_int32_t sector, track, cylinder; local in function:read_sector
371 u_int32_t sector; local in function:change_part
    [all...]
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 in function:show_parts
314 u_int32_t sector, track, cylinder; local in function:read_sector
371 u_int32_t sector; local in function:change_part
    [all...]
  /src/sys/arch/bebox/stand/boot/
wd.c 170 int sector, i; local in function:wdgetdisklabel
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,
wd.c 170 int sector, i; local in function:wdgetdisklabel
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 in function:wdgetdisklabel
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,
wd.c 155 int sector; local in function:wdgetdisklabel
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/sysinst/arch/shark/
md.c 202 * Clears the disk's first sector by writing all zeros over it.
210 char sector[512]; local in function:clear_mbr
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/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 in function:debug_dump_to_xml
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...]

Completed in 26 milliseconds

1 2 3 4