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

12

/illumos-gate/usr/src/cmd/format/
H A Dglobal.h124 uint_t nsect; /* # data sects/track */ variable
146 #define sectors(h) ((h) == nhead - 1 ? nsect - apc : nsect)
147 #define spc() (nhead * nsect - apc)
148 #define chs2bn(c, h, s) (((diskaddr_t)(c) * spc() + (h) * nsect + (s)))
150 #define bn2h(bn) (uint_t)(((diskaddr_t)(bn) % spc()) / nsect)
151 #define bn2s(bn) (uint_t)(((diskaddr_t)(bn) % spc()) % nsect)
H A Dauto_sense.c150 * Hence try to adjust the cylinders by reducing the "nsect/nhead".
228 uint_t *nsect, uint_t *nhead);
567 nsect = disk_geom.dkg_nsect;
574 label->dkl_nsect = nsect;
583 "DEFAULT", ncyl, acyl, nhead, nsect);
908 uint_t nsect = 0; local
991 &nsect);
996 nsect = page3->sect_track;
1007 if (nhead == 0 || nsect == 0) {
1011 &pcyl, &nhead, &nsect)) {
1389 int nsect; local
2100 adjust_disk_geometry(diskaddr_t capacity, uint_t *cyl, uint_t *nhead, uint_t *nsect) argument
[all...]
H A Dmenu_fdisk.c458 cur_parts->pinfo_map[C_PARTITION].dkl_cylno * nhead * nsect;
540 if (nhead != 0 && nsect != 0) {
541 pcyl = numsec / (nhead * nsect);
542 xstart = relsec / (nhead * nsect);
576 * if the disk has an EFI label, nhead and nsect may
580 if (nhead != 0 && nsect != 0) {
581 pcyl = lel(ip.numsect) / (nhead * nsect);
582 xstart = lel(ip.relsect) / (nhead * nsect);
588 "\tnhead = %d; nsect = %d\n", nhead, nsect);
[all...]
H A Dmenu_developer.c146 (void) printf("nsect = %d\n", nsect);
H A Dmenu_command.c300 if (!option_f && ncyl == 0 && nhead == 0 && nsect == 0 &&
308 if (nhead != 0 && nsect != 0)
756 acyl, nhead, nsect);
772 acyl, nhead, nsect);
1639 nsect = label.dkl_nsect;
1687 label.dkl_nsect = nsect;
1726 ncyl = pcyl = nsect = psect = acyl = phead = 0;
1922 for (sec = 1; ((sec < BAD_LISTCNT * 2 + 1) && (sec < nsect));
2191 for (sec = 1; ((sec < BAD_LISTCNT * 2 + 1) && (sec < nsect));
2325 fmt_print("nsect
[all...]
H A Ddefect.c162 for (sec = 0; ((sec < BAD_LISTCNT * 2) && (sec < nsect)); sec += 2) {
384 for (sec = 0; ((sec < BAD_LISTCNT * 2) && (sec < nsect)); sec += 2) {
H A Dmain.c412 nsect = cur_dtype->dtype_nsect;
536 ncyl = acyl = nhead = nsect = psect = 0;
H A Dlabel.c206 if (capacity.sc_capacity < ncyl * nhead * nsect) {
329 label.dkl_nsect = nsect;
360 cur_dtype->dtype_asciilabel, ncyl, acyl, nhead, nsect);
393 geom.dkg_nsect = nsect;
448 for (sec = 1; ((sec < BAD_LISTCNT * 2 + 1) && (sec < nsect));
1119 fmt_print("nsect: %d\n", label->dkl_nsect);
1131 fmt_print("nsect: %d\n", label->dkl_nsect);
H A Dpartition.c312 fullsz = ncyl * nhead * nsect;
338 cur_parts->vtoc.v_part[num].p_start = (daddr_t)(i * (nhead * nsect));
H A Dmenu_partition.c320 (nhead * nsect));
H A Dmodify_partition.c321 map[i].dkl_cylno * nhead * nsect;
H A Dstartup.c700 } else if (strcmp(ident, "nsect") == 0) {
1110 nsect = dtype->dtype_nsect;
1251 pinfo->vtoc.v_part[index].p_start = val1 * (nhead * nsect);
2610 * globals nhead/nsect/acyl be set up correctly.
/illumos-gate/usr/src/cmd/rmformat/
H A Drmf_slice.c967 DPRINTF1("nsect %d\n", dkg.dkg_nsect);
1230 * nhead = 64, nsect = 32
1232 * nhead = 255, nsect = 63
1249 uint32_t nhead, numcyl, nsect; local
1276 nsect = 32;
1279 nsect = 63;
1282 numcyl = (uint32_t)med_info.sm_capacity / (nhead * nsect);
1283 capacity = (diskaddr_t)nhead * nsect * numcyl;
1298 asciilabel2, numcyl, acyl, nhead, nsect);
1332 uint32_t numcyl, nhead, nsect; local
[all...]
/illumos-gate/usr/src/uts/common/sys/scsi/impl/
H A Dmode.h241 uchar_t nsect; /* logical sectors/track */ member in struct:emulex_format_params
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvdsk_common.h236 uint16_t nsect; /* number of data sectors per track */ member in struct:vd_geom
371 (dk_geom)->dkg_nsect = (vd_geom)->nsect; \
414 (vd_geom)->nsect = (dk_geom)->dkg_nsect; \
/illumos-gate/usr/src/lib/libfdisk/common/
H A Dlibfdisk.h294 extern int fdisk_init_ext_part(ext_part_t *epp, uint32_t rsect, uint32_t nsect);
H A Dlibfdisk.c1324 fdisk_init_ext_part(ext_part_t *epp, uint32_t rsect, uint32_t nsect) argument
1330 epp->ext_end_sec = rsect + nsect - 1;
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_init.c152 diskaddr_t cylsize = geomp->nhead * geomp->nsect;
163 md->c.un_nsect = geomp->nsect;
H A Dmeta_nameinfo.c87 mdgp->nsect = gp->dkg_nsect;
112 mdgp->nsect = mdev->c.un_nsect;
117 mdgp->nsect = MD_EFI_FG_SECTORS;
1011 start_blk = roundup(start_blk, (geomp->nhead * geomp->nsect));
H A Dmeta_repartition.c330 ((unsigned long long)mdgp->nhead) * mdgp->nsect;
/illumos-gate/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_stripe.c999 uint64_t nsect = 0; local
1005 (error = disk_get_nsectors(comp_disk, &nsect));
1008 uint64_t bpc = nhead * nsect * comp_disk_bps;
H A Dlayout_slice.c769 uint64_t nsect = 0; local
774 (error = disk_get_nsectors(odisk, &nsect));
776 uint64_t bytes_per_cyl = nhead * nsect * bytes_per_sect;
/illumos-gate/usr/src/cmd/fs.d/ufs/mkfs/
H A Dmkfs.c55 * [nsect ntrack bsize fsize cpg minfree rps nbpi opt apc rotdelay
62 * nsect - The number of sectors per track
505 long nsect = DFLNSECT; /* sectors per track */ variable
677 if (match("nsect=")) {
678 nsect = number(DFLNSECT, "nsect", 0);
862 * nsect
994 nsect = number(DFLNSECT, "nsect", 0);
1013 if (nsect_flag == RC_DEFAULT) nsect
[all...]
/illumos-gate/usr/src/uts/common/io/
H A Dcmlb.c1882 * Maximum number of blocks nhead nsect
1913 unsigned short nsect; local
1925 nsect = 56;
1928 nsect = 63;
1933 /* make dkg_nsect be smallest multiple of nsect */
1935 (UINT16_MAX * nhead * nsect) - 1) /
1936 (UINT16_MAX * nhead * nsect)) * nsect;
1939 cl_g->dkg_nsect = (UINT16_MAX / nsect) * nsect;
1969 unsigned short nsect; local
[all...]
/illumos-gate/usr/src/uts/common/sys/lvm/
H A Dmdiox.x582 u_int nsect;
593 u_int nsect;

Completed in 126 milliseconds

12