Home
last modified time | relevance | path

Searched refs:nsect (Results 1 – 25 of 28) sorted by relevance

12

/netbsd-src/sys/arch/atari/stand/tostools/rawwrite/
H A Drawwrite.c62 int nsect; in main() local
67 nsect = NSECT_DD; in main()
75 nsect = NSECT_HD; in main()
108 n = read(fd, buf, nsect * SECT_SIZE); in main()
115 if (n != (nsect * SECT_SIZE)) in main()
122 brwrite(buf, i, nsect); in main()
/netbsd-src/sys/arch/i386/stand/misc/
H A Drawrite.c97 static int nsect[] = {18, 15, 9}; in nsects() local
110 for (i=0; i < sizeof(nsect)/sizeof(int); ++i) { in nsects()
112 status = biosdisk(READ, drive, 0, 0, nsect[i], 1, buffer); in nsects()
114 status = biosdisk(READ, drive, 0, 0, nsect[i], 1, buffer); in nsects()
117 if (i == sizeof(nsect)/sizeof(int)) { in nsects()
121 return(nsect[i]); in nsects()
/netbsd-src/sys/arch/x68k/stand/libsa/
H A Dfd.c97 int nhead, nsect; in fdstrategy() local
109 nsect = sc->fmt.maxsec.R - sc->fmt.minsec.R + 1; in fdstrategy()
111 sect = dblk % nsect + sc->fmt.minsec.R; in fdstrategy()
112 head = (dblk / nsect) % nhead + sc->fmt.minsec.H; in fdstrategy()
113 cyl = (dblk / nsect) / nhead + sc->fmt.minsec.C; in fdstrategy()
/netbsd-src/usr.sbin/sunlabel/
H A Dsunlabel.c120 uint32_t nsect; /* Sectors-per-track */ member
203 {"nsect", &label.nsect, print_int, chval_int, update_spc, 0 },
404 label.nsect = 0; in unpack_label()
450 label.nsect = l_s[219]; in unpack_label()
453 label.spc = label.nhead * label.nsect; in unpack_label()
530 l_s[219] = label.nsect; in pack_label()
819 size = sizes + (label.nsect * (sizet in chpart()
826 (size % label.spc) / label.nsect, size % label.nsect); in chpart()
914 label.spc = label.nhead * label.nsect; in update_spc()
1033 (p[i].nblk % label.spc) / label.nsect, in print_part()
[all …]
H A Dsunlabel.doc53 means (3*16*32)+(4*32)+5=1669. This calculation always uses the nsect
82 nhead: 19 nsect: 78 obs3: 0 obs4: 0
/netbsd-src/distrib/utils/edlabel/
H A Dedlabel.c181 int nsect, ntrack, ncyl, spc; in edit_geo() local
183 nsect = ntrack = ncyl = spc = 0; in edit_geo()
189 if (sscanf(tmpbuf, "%d", &nsect) != 1) in edit_geo()
190 nsect = d->d_nsectors; in edit_geo()
197 if (!nsect || !ntrack) in edit_geo()
199 spc = nsect * ntrack; in edit_geo()
202 d->d_nsectors = nsect; in edit_geo()
/netbsd-src/sys/arch/sun3/dev/
H A Dxy.c305 xy->nsect = xy->sc_dk.dk_label->d_nsectors; in xygetdisklabel()
306 xy->sectpercyl = xy->nhead * xy->nsect; in xygetdisklabel()
574 xy->nsect = 1; in xy_init()
611 mb = xy->ncyl * (xy->nhead * xy->nsect) / (1048576 / XYFM_BPS); in xy_init()
613 device_xname(xy->sc_dev), mb, xy->ncyl, xy->nhead, xy->nsect); in xy_init()
634 if (xy->nsect != oxy->nsect || xy->pcyl != oxy->pcyl || in xy_init()
646 blk = (xy->nsect - 1) + in xy_init()
647 ((xy->nhead - 1) * xy->nsect) + in xy_init()
648 ((xy->pcyl - 1) * xy->nsect * x in xy_init()
[all...]
H A Dxd.c373 xd->nsect = xd->sc_dk.dk_label->d_nsectors; in xdgetdisklabel()
374 xd->sectpercyl = xd->nhead * xd->nsect; in xdgetdisklabel()
661 xd->nsect = 1; in xd_init()
696 mb = xd->ncyl * (xd->nhead * xd->nsect) / (1048576 / XDFM_BPS); in xd_init()
699 xd->ncyl, xd->nhead, xd->nsect); in xd_init()
716 blk = (xd->ncyl + xd->acyl - 1) * (xd->nhead * xd->nsect) + /* last cyl */ in xd_init()
717 (xd->nhead - 1) * xd->nsect; /* last head */ in xd_init()
738 if ((dkb->bt_bad[lcv].bt_trksec & 0xff) >= xd->nsect) in xd_init()
1251 drv->maxsect = iorq->xd->nsect - 1; in xdc_rqtopb()
1292 iopb->sectno = block % iorq->xd->nsect; in xdc_rqtopb()
[all...]
H A Dxyvar.h110 u_char nsect; /* number of sectors per track */ member
H A Dxdvar.h109 u_char nsect; /* number of sectors per track */ member
/netbsd-src/sys/dev/vme/
H A Dxy.c307 xy->nsect = xy->sc_dk.dk_label->d_nsectors; in xygetdisklabel()
308 xy->sectpercyl = xy->nhead * xy->nsect; in xygetdisklabel()
697 xy->nsect = 1; in xyattach()
733 mb = xy->ncyl * (xy->nhead * xy->nsect) / (1048576 / XYFM_BPS); in xyattach()
735 device_xname(xy->sc_dev), mb, xy->ncyl, xy->nhead, xy->nsect, in xyattach()
753 if (xy->nsect != oxy->nsect || xy->pcyl != oxy->pcyl || in xyattach()
765 blk = (xy->nsect - 1) + in xyattach()
766 ((xy->nhead - 1) * xy->nsect) + in xyattach()
767 ((xy->pcyl - 1) * xy->nsect * xy->nhead); in xyattach()
782 blk = (xy->ncyl + xy->acyl - 1) * (xy->nhead * xy->nsect) + in xyattach()
[all …]
H A Dxd.c391 xd->nsect = xd->sc_dk.dk_label->d_nsectors; in xdgetdisklabel()
392 xd->sectpercyl = xd->nhead * xd->nsect; in xdgetdisklabel()
816 xd->nsect = 1; in xdattach()
849 mb = xd->ncyl * (xd->nhead * xd->nsect) / (1048576 / XDFM_BPS); in xdattach()
851 device_xname(xd->sc_dev), mb, xd->ncyl, xd->nhead, xd->nsect, in xdattach()
870 blk = (xd->ncyl + xd->acyl - 1) * (xd->nhead * xd->nsect) + /* last cyl */ in xdattach()
871 (xd->nhead - 1) * xd->nsect; /* last head */ in xdattach()
891 if ((dkb->bt_bad[lcv].bt_trksec & 0xff) >= xd->nsect) in xdattach()
1427 drv->maxsect = iorq->xd->nsect - 1; in xdc_rqtopb()
1467 iopb->sectno = block % iorq->xd->nsect; in xdc_rqtopb()
[all …]
H A Dxdvar.h110 u_char nsect; /* number of sectors per track */ member
H A Dxyvar.h107 u_char nsect; /* number of sectors per track */ member
/netbsd-src/sys/arch/mmeye/stand/boot/
H A Dwd.c247 int i, nsect; in wdstrategy() local
263 nsect = howmany(size, wd->sc_label.d_secsize); in wdstrategy()
266 for (i = 0; i < nsect; i++, blkno++) { in wdstrategy()
/netbsd-src/sys/arch/cobalt/stand/boot/
H A Dwd.c271 int i, nsect; in wdstrategy() local
287 nsect = howmany(size, wd->sc_label.d_secsize); in wdstrategy()
292 for (i = 0; i < nsect; i++, blkno++) { in wdstrategy()
/netbsd-src/sys/arch/bebox/stand/boot/
H A Dwd.c286 int i, nsect; in wdstrategy() local
302 nsect = howmany(size, wd->sc_label.d_secsize); in wdstrategy()
307 for (i = 0; i < nsect; i++, blkno++) { in wdstrategy()
H A Dsd.c676 int cmdlen, nsect, i; in sdstrategy() local
693 nsect = howmany(size, lp->d_secsize); in sdstrategy()
696 for (i = 0; i < nsect; i++, blkno++) { in sdstrategy()
/netbsd-src/sys/arch/prep/stand/boot/
H A Dsd.c676 int cmdlen, nsect, i; in sdstrategy() local
693 nsect = howmany(size, lp->d_secsize); in sdstrategy()
696 for (i = 0; i < nsect; i++, blkno++) { in sdstrategy()
/netbsd-src/sys/dev/raidframe/
H A Drf_diskqueue.c378 RF_SectorCount_t nsect, void *bf, in rf_CreateDiskQueueData() argument
408 p->numSector = nsect; in rf_CreateDiskQueueData()
/netbsd-src/external/gpl2/mkhybrid/dist/
H A Diso9660.h127 char nsect [ISODCL ( 7, 8)]; member
H A Deltorito.c276 set_721(default_desc.nsect, (unsigned int) nsectors ); in FDECL1()
/netbsd-src/sys/arch/sandpoint/stand/altboot/
H A Dglobals.h178 uint64_t nsect; member
H A Ddsk.c272 d->nsect = huge; in drive_ident()
/netbsd-src/share/doc/smm/01.setup/
H A Dspell.ok426 nsect

12