| /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_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;
|
| 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);
|
| 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...] |
| 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
|
| 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, §or, &varlen, NULL, (size_t)0) < 0) 59 return sector;
|
| getlabelsector.c | 50 int sector, mib[2]; local 55 varlen = sizeof(sector); 56 if (sysctl(mib, 2, §or, &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...] |
| 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...] |
| /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, §or, 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);
|
| /src/external/gpl2/lvm2/dist/tools/ |
| pvchange.c | 28 uint64_t sector; local 100 if (!(pv = pv_read(cmd, pv_name, NULL, §or, 1, 0))) {
|