/netbsd-current/sys/arch/atari/stand/tostools/rawwrite/ |
H A D | rawwrite.c | 62 int nsect; local 67 nsect = NSECT_DD; 75 nsect = NSECT_HD; 108 n = read(fd, buf, nsect * SECT_SIZE); 115 if (n != (nsect * SECT_SIZE)) 122 brwrite(buf, i, nsect);
|
/netbsd-current/sys/arch/x68k/stand/libsa/ |
H A D | fd.c | 97 int nhead, nsect; local 109 nsect = sc->fmt.maxsec.R - sc->fmt.minsec.R + 1; 111 sect = dblk % nsect + sc->fmt.minsec.R; 112 head = (dblk / nsect) % nhead + sc->fmt.minsec.H; 113 cyl = (dblk / nsect) / nhead + sc->fmt.minsec.C;
|
/netbsd-current/sys/arch/i386/stand/misc/ |
H A D | rawrite.c | 97 static int nsect[] = {18, 15, 9}; local 110 for (i=0; i < sizeof(nsect)/sizeof(int); ++i) { 112 status = biosdisk(READ, drive, 0, 0, nsect[i], 1, buffer); 114 status = biosdisk(READ, drive, 0, 0, nsect[i], 1, buffer); 117 if (i == sizeof(nsect)/sizeof(int)) { 121 return(nsect[i]);
|
/netbsd-current/sys/arch/sun3/dev/ |
H A D | xdvar.h | 107 u_short sectpercyl; /* nhead*nsect */ 109 u_char nsect; /* number of sectors per track */ member in struct:xd_softc
|
H A D | xyvar.h | 108 u_short sectpercyl; /* nhead*nsect */ 110 u_char nsect; /* number of sectors per track */ member in struct:xy_softc
|
H A D | xy.c | 305 xy->nsect = xy->sc_dk.dk_label->d_nsectors; 306 xy->sectpercyl = xy->nhead * xy->nsect; 574 xy->nsect = 1; 611 mb = xy->ncyl * (xy->nhead * xy->nsect) / (1048576 / XYFM_BPS); 613 device_xname(xy->sc_dev), mb, xy->ncyl, xy->nhead, xy->nsect); 634 if (xy->nsect != oxy->nsect || xy->pcyl != oxy->pcyl || 646 blk = (xy->nsect - 1) + 647 ((xy->nhead - 1) * xy->nsect) + 648 ((xy->pcyl - 1) * xy->nsect * x [all...] |
H A D | xd.c | 373 xd->nsect = xd->sc_dk.dk_label->d_nsectors; 374 xd->sectpercyl = xd->nhead * xd->nsect; 661 xd->nsect = 1; 696 mb = xd->ncyl * (xd->nhead * xd->nsect) / (1048576 / XDFM_BPS); 699 xd->ncyl, xd->nhead, xd->nsect); 716 blk = (xd->ncyl + xd->acyl - 1) * (xd->nhead * xd->nsect) + /* last cyl */ 717 (xd->nhead - 1) * xd->nsect; /* last head */ 738 if ((dkb->bt_bad[lcv].bt_trksec & 0xff) >= xd->nsect) 1251 drv->maxsect = iorq->xd->nsect - 1; 1292 iopb->sectno = block % iorq->xd->nsect; [all...] |
/netbsd-current/distrib/utils/edlabel/ |
H A D | edlabel.c | 181 int nsect, ntrack, ncyl, spc; local 183 nsect = ntrack = ncyl = spc = 0; 189 if (sscanf(tmpbuf, "%d", &nsect) != 1) 190 nsect = d->d_nsectors; 197 if (!nsect || !ntrack) 199 spc = nsect * ntrack; 202 d->d_nsectors = nsect;
|
/netbsd-current/usr.sbin/sunlabel/ |
H A D | sunlabel.c | 101 * nsect assume that the sect/trk and trk/cyl values are constant 105 * mostly invalid these days anyway. (I just use nhead=32 nsect=64, 120 uint32_t nsect; /* Sectors-per-track */ member in struct:label 124 uint32_t spc; /* Sectors per cylinder - nhead*nsect */ 132 * tag is a short name for the field, like "apc" or "nsect". loc is a 203 {"nsect", &label.nsect, print_int, chval_int, update_spc, 0 }, 404 label.nsect = 0; 450 label.nsect = l_s[219]; 453 label.spc = label.nhead * label.nsect; [all...] |
/netbsd-current/sys/dev/vme/ |
H A D | xdvar.h | 108 u_short sectpercyl; /* nhead*nsect */ 110 u_char nsect; /* number of sectors per track */ member in struct:xd_softc
|
H A D | xyvar.h | 105 u_short sectpercyl; /* nhead*nsect */ 107 u_char nsect; /* number of sectors per track */ member in struct:xy_softc
|
H A D | xy.c | 307 xy->nsect = xy->sc_dk.dk_label->d_nsectors; 308 xy->sectpercyl = xy->nhead * xy->nsect; 697 xy->nsect = 1; 733 mb = xy->ncyl * (xy->nhead * xy->nsect) / (1048576 / XYFM_BPS); 735 device_xname(xy->sc_dev), mb, xy->ncyl, xy->nhead, xy->nsect, 753 if (xy->nsect != oxy->nsect || xy->pcyl != oxy->pcyl || 765 blk = (xy->nsect - 1) + 766 ((xy->nhead - 1) * xy->nsect) + 767 ((xy->pcyl - 1) * xy->nsect * x [all...] |
H A D | xd.c | 391 xd->nsect = xd->sc_dk.dk_label->d_nsectors; 392 xd->sectpercyl = xd->nhead * xd->nsect; 816 xd->nsect = 1; 849 mb = xd->ncyl * (xd->nhead * xd->nsect) / (1048576 / XDFM_BPS); 851 device_xname(xd->sc_dev), mb, xd->ncyl, xd->nhead, xd->nsect, 870 blk = (xd->ncyl + xd->acyl - 1) * (xd->nhead * xd->nsect) + /* last cyl */ 871 (xd->nhead - 1) * xd->nsect; /* last head */ 891 if ((dkb->bt_bad[lcv].bt_trksec & 0xff) >= xd->nsect) 1427 drv->maxsect = iorq->xd->nsect - 1; 1467 iopb->sectno = block % iorq->xd->nsect; [all...] |
/netbsd-current/sys/arch/mmeye/stand/boot/ |
H A D | wd.c | 247 int i, nsect; local 263 nsect = howmany(size, wd->sc_label.d_secsize); 266 for (i = 0; i < nsect; i++, blkno++) {
|
/netbsd-current/sys/arch/cobalt/stand/boot/ |
H A D | wd.c | 271 int i, nsect; local 287 nsect = howmany(size, wd->sc_label.d_secsize); 292 for (i = 0; i < nsect; i++, blkno++) {
|
/netbsd-current/sys/arch/bebox/stand/boot/ |
H A D | wd.c | 286 int i, nsect; local 302 nsect = howmany(size, wd->sc_label.d_secsize); 307 for (i = 0; i < nsect; i++, blkno++) {
|
H A D | sd.c | 676 int cmdlen, nsect, i; local 693 nsect = howmany(size, lp->d_secsize); 696 for (i = 0; i < nsect; i++, blkno++) {
|
/netbsd-current/external/gpl2/mkhybrid/dist/ |
H A D | iso9660.h | 127 char nsect [ISODCL ( 7, 8)]; member in struct:eltorito_defaultboot_entry
|
H A D | eltorito.c | 276 set_721(default_desc.nsect, (unsigned int) nsectors );
|
/netbsd-current/sys/arch/sandpoint/stand/altboot/ |
H A D | globals.h | 178 uint64_t nsect; member in struct:disk
|
H A D | dsk.c | 272 d->nsect = huge;
|
/netbsd-current/sys/dev/raidframe/ |
H A D | rf_diskqueue.c | 378 RF_SectorCount_t nsect, void *bf, 408 p->numSector = nsect; 377 rf_CreateDiskQueueData(RF_IoType_t typ, RF_SectorNum_t ssect, RF_SectorCount_t nsect, void *bf, RF_StripeNum_t parityStripeID, RF_ReconUnitNum_t which_ru, void (*wakeF) (void *, int), void *arg, RF_AccTraceEntry_t *tracerec, RF_Raid_t *raidPtr, RF_DiskQueueDataFlags_t flags, const struct buf *mbp) argument
|
/netbsd-current/sys/arch/prep/stand/boot/ |
H A D | sd.c | 676 int cmdlen, nsect, i; local 693 nsect = howmany(size, lp->d_secsize); 696 for (i = 0; i < nsect; i++, blkno++) {
|
/netbsd-current/external/gpl3/binutils.old/dist/bfd/ |
H A D | mach-o.c | 2556 unsigned nsect; local 2558 nsect = bfd_count_sections (abfd); 2562 if (mdata->nsects == nsect 2567 if (nsect > 255) 2570 " maximum is 255,\n"), nsect); 2574 mdata->nsects = nsect;
|
/netbsd-current/external/gpl3/binutils/dist/bfd/ |
H A D | mach-o.c | 2572 unsigned nsect; local 2575 nsect = bfd_count_sections (abfd); 2579 if (mdata->nsects == nsect 2584 if (nsect > 255) 2587 " maximum is 255,\n"), nsect); 2591 mdata->nsects = nsect;
|