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

1 2 3 4 5

  /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_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;
bfs_subr.c 45 #include <machine/sector.h>
69 bfs_find(int *sector)
82 /* `start' is logical sector start in UX partition table. */
94 *sector = start + bfs_partition->start_sector;
diskutil.c 147 find_partition_start(int partition, int *sector)
153 *sector = pdinfo.logical_sector +
155 printf("[partition=%d, start sector=%d]", partition, *sector);
disk.c 37 #include <machine/sector.h>
173 sector_read_n(void *self, uint8_t *buf, int sector, int count)
176 if (!__sector_rw(buf, sector, 0, count))
182 sector_read(void *self, uint8_t *buf, int sector)
185 return __sector_rw(buf, sector, 0, 1);
189 sector_write_n(void *self, uint8_t *buf, int sector, int count)
192 if (!__sector_rw(buf, sector, 0x1000, count))
198 sector_write(void *self, uint8_t *buf, int sector)
201 return __sector_rw(buf, sector, 0x1000, 1);
  /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);
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/sys/arch/ews4800mips/ews4800mips/
sector.c 1 /* $NetBSD: sector.c,v 1.7 2008/04/28 20:23:18 martin Exp $ */
33 __KERNEL_RCSID(0, "$NetBSD: sector.c,v 1.7 2008/04/28 20:23:18 martin Exp $");
38 #include <machine/sector.h>
71 sector_read_n(void *self, uint8_t *buf, daddr_t sector, int count)
76 if (!sector_read(self, buf, sector))
79 sector++;
86 sector_read(void *self, uint8_t *buf, daddr_t sector)
91 b->b_blkno = sector;
92 b->b_cylinder = sector / 100;
107 sector_write_n(void *self, uint8_t *buf, daddr_t sector, int count
    [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...]
  /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;
  /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...]
  /src/sys/arch/landisk/stand/boot/
biosdisk.h 32 u_int biosdisk_findptn(int biosdev, u_int sector);
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 in function:read_label
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/fs/v7fs/
v7fs_io_user.c 121 read_sector(void *ctx, uint8_t *buf, daddr_t sector)
127 if ((lseek(fd, (off_t)sector * blksz, SEEK_SET) < 0) ||
129 warn("sector=%ld\n", (long)sector);
137 write_sector(void *ctx, uint8_t *buf, daddr_t sector)
143 if ((lseek(fd, (off_t)sector * blksz, SEEK_SET) < 0) ||
145 warn("sector=%ld\n", (long)sector);
153 read_mmap(void *ctx, uint8_t *buf, daddr_t sector)
158 memcpy(buf, lio->addr + sector * blksz, blksz)
    [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
  /src/sys/fs/udf/
udf_strat_direct.c 163 uint32_t sector, dummy; local in function:udf_read_nodedscr_direct
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 in function:udf_write_nodedscr_direct
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 in function:udf_queue_buf_direct
280 DPRINTF(SHEDULE, ("\nudf_issue_buf READ %p : sector %d type %d,
    [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 in function:clear_mbr
216 memset(sector, 0, sizeof(sector));
217 if (pwrite(fd, &sector, sizeof(sector), 0) < 0) {
  /src/sys/arch/i386/stand/bootxx/
boot1.c 68 boot1(uint32_t biosdev, uint64_t *sector)
73 bios_sector = *sector;
118 *sector = bios_sector;
195 gpt_lookup(daddr_t sector)
214 if (readsects(&d, sector, 1, buf, 1) != 0)
225 sector++; /* skip PMBR */
231 if (readsects(&d, sector, 1, buf, 1) != 0)
248 sector++; /* skip GPT header */
255 * 128 bytes (n = 0) where there are 4 entries per sector.
257 * remain sector-aligned
    [all...]
  /src/sys/arch/landisk/stand/bootxx/
boot1.c 57 boot1(uint32_t *sector)
62 bios_sector = *sector;
98 *sector = bios_sector;
  /src/sys/arch/x68k/stand/boot_ufs/
boot.S 140 movel %d0,%d2 | read position (first sector)
228 lsrl %d5,%d2 | in sector
232 lsrl %d5,%d3 | in sector
259 | input: d2.l: pos in sector
260 | d3.l: len in sector
262 | d5: sector length (0: 256, 1: 512, 2: 1024)
278 addb %d5,%d7 | d7.b = (sector length: 0-2) + 8
295 | d6: max sector count at a time
396 movel RELOC(SCSI_BLKLEN),%d5 | sector size: 0-2
397 | XXX length must be sector aligne
    [all...]
  /src/sys/arch/x68k/stand/common/
chkfmt.s 30 | output: d0.l: min # sector (N C H R (2hex))
31 | d1.l: max # sector (N C H R (2hex))
54 movel %d3,%d2 | first sector
55 movel %d3,%d0 | sector min
57 movel %d3,%d1 | sector max
86 | output: d3.l: sector information: N C H R (2hex)
114 jbsr fdc_read_bytes | d3: sector info: C H R N (2hex)
115 rorl #8,%d3 | d3: sector info: N C H R (2hex)
  /src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/
bcm911360_entphn.dts 97 brcm,nand-oob-sector-size = <27>;
bcm958300k.dts 75 brcm,nand-oob-sector-size = <27>;
bcm958305k.dts 83 brcm,nand-oob-sector-size = <27>;

Completed in 20 milliseconds

1 2 3 4 5