Searched refs:nhead (Results 1 - 15 of 15) sorted by relevance

/netbsd-current/sys/arch/x68k/stand/libsa/
H A Dfd.c97 int nhead, nsect; local
108 nhead = sc->fmt.maxsec.H - sc->fmt.minsec.H + 1;
112 head = (dblk / nsect) % nhead + sc->fmt.minsec.H;
113 cyl = (dblk / nsect) / nhead + sc->fmt.minsec.C;
/netbsd-current/usr.bin/systat/
H A Dnetstat.c121 struct netinfo *nhead; variable in typeref:struct:netinfo
144 while (p != nhead) {
179 nhead = (struct netinfo *)(void *)&netcb;
181 netcb.ni_forw = netcb.ni_prev = nhead;
193 for (p = netcb.ni_forw; p != nhead; p = p->ni_forw)
231 for (p = netcb.ni_forw; p != nhead; p = p->ni_forw)
276 for (p = netcb.ni_forw; p != nhead; p = p->ni_forw)
314 for (p = netcb.ni_forw; p != nhead; p = p->ni_forw) {
326 if (p == nhead) {
331 p->ni_prev = nhead;
[all...]
/netbsd-current/sys/arch/sun3/dev/
H A Dxdvar.h107 u_short sectpercyl; /* nhead*nsect */
108 u_char nhead; /* number of heads */ member in struct:xd_softc
H A Dxyvar.h108 u_short sectpercyl; /* nhead*nsect */
109 u_char nhead; /* number of heads */ member in struct:xy_softc
H A Dxy.c304 xy->nhead = xy->sc_dk.dk_label->d_ntracks;
306 xy->sectpercyl = xy->nhead * xy->nsect;
573 xy->nhead = 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);
635 xy->nhead != oxy->nhead) {
647 ((xy->nhead - 1) * xy->nsect) +
648 ((xy->pcyl - 1) * xy->nsect * xy->nhead);
662 blk = (xy->ncyl + xy->acyl - 1) * (xy->nhead * x
[all...]
H A Dxd.c372 xd->nhead = xd->sc_dk.dk_label->d_ntracks;
374 xd->sectpercyl = xd->nhead * xd->nsect;
660 xd->nhead = 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 */
736 if ((dkb->bt_bad[lcv].bt_trksec >> 8) >= xd->nhead)
1257 drv->maxhead = iorq->xd->nhead - 1;
1294 iopb->headno = block % iorq->xd->nhead;
[all...]
/netbsd-current/sys/dev/vme/
H A Dxdvar.h108 u_short sectpercyl; /* nhead*nsect */
109 u_char nhead; /* number of heads */ member in struct:xd_softc
H A Dxyvar.h105 u_short sectpercyl; /* nhead*nsect */
106 u_char nhead; /* number of heads */ member in struct:xy_softc
H A Dxy.c306 xy->nhead = xy->sc_dk.dk_label->d_ntracks;
308 xy->sectpercyl = xy->nhead * xy->nsect;
696 xy->nhead = 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,
754 xy->nhead != oxy->nhead) {
766 ((xy->nhead - 1) * xy->nsect) +
767 ((xy->pcyl - 1) * xy->nsect * xy->nhead);
782 blk = (xy->ncyl + xy->acyl - 1) * (xy->nhead * x
[all...]
H A Dxd.c390 xd->nhead = xd->sc_dk.dk_label->d_ntracks;
392 xd->sectpercyl = xd->nhead * xd->nsect;
815 xd->nhead = 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 */
889 if ((dkb->bt_bad[lcv].bt_trksec >> 8) >= xd->nhead)
1433 drv->maxhead = iorq->xd->nhead - 1;
1469 iopb->headno = block % iorq->xd->nhead;
[all...]
/netbsd-current/usr.sbin/sunlabel/
H A Dsunlabel.c100 * Note also that the geometry assumptions behind having nhead and
105 * mostly invalid these days anyway. (I just use nhead=32 nsect=64,
119 uint32_t nhead; /* Tracks-per-cylinder (usually # of heads) */ member in struct:label
124 uint32_t spc; /* Sectors per cylinder - nhead*nsect */
202 {"nhead", &label.nhead, print_int, chval_int, update_spc, 0 },
403 label.nhead = 0;
449 label.nhead = l_s[218];
453 label.spc = label.nhead * label.nsect;
529 l_s[218] = label.nhead;
[all...]
/netbsd-current/sys/fs/nfs/common/
H A Dnfs.h669 #define LIST_NEWHEAD(nhead, ohead, field) do { \
670 if (((nhead)->lh_first = (ohead)->lh_first) != NULL) \
671 (ohead)->lh_first->field.le_prev = &(nhead)->lh_first; \
/netbsd-current/usr.sbin/sysinst/
H A Ddisklabel.c97 disklabel_change_geom(struct disk_partitions *arg, int ncyl, int nhead, argument
109 disklabel_init_default_alignment(parts, nhead * nsec);
110 if (ncyl*nhead*nsec <= TINY_DISK_SIZE)
H A Dmbr.c337 mbr_init_chs(struct mbr_disk_partitions *parts, int ncyl, int nhead, int nsec) argument
341 pm->current_cylsize = nhead*nsec;
342 pm->max_chs = (unsigned long)ncyl*nhead*nsec;
344 parts->geo_head = nhead;
1057 mbr_change_disk_geom(struct disk_partitions *arg, int ncyl, int nhead, argument
1065 mbr_init_chs(parts, ncyl, nhead, nsec);
1066 mbr_init_default_alignments(parts, nhead * nsec);
/netbsd-current/sys/uvm/
H A Duvm_page.c736 struct pgflist *ohead, *nhead; local
822 nhead = &npgb->pgb_colors[nc];
823 LIST_INSERT_HEAD(nhead, pg, pageq.list);

Completed in 144 milliseconds