Lines Matching refs:pp

497 	struct xbsd_partition *pp;  in xbsd_print_disklabel()  local
543 pp = lp->d_partitions; in xbsd_print_disklabel()
544 for (i = 0; i < lp->d_npartitions; i++, pp++) { in xbsd_print_disklabel()
545 if (pp->p_size) { in xbsd_print_disklabel()
549 (unsigned long) pp->p_offset / lp->d_secpercyl + 1, in xbsd_print_disklabel()
550 (pp->p_offset % lp->d_secpercyl) ? '*' : ' ', in xbsd_print_disklabel()
551 (unsigned long) (pp->p_offset + pp->p_size + lp->d_secpercyl - 1) / lp->d_secpercyl, in xbsd_print_disklabel()
552 ((pp->p_offset + pp->p_size) % lp->d_secpercyl) ? '*' : ' ', in xbsd_print_disklabel()
553 (long) pp->p_size / lp->d_secpercyl, in xbsd_print_disklabel()
554 (pp->p_size % lp->d_secpercyl) ? '*' : ' ' in xbsd_print_disklabel()
559 (long) pp->p_offset, in xbsd_print_disklabel()
560 (long) pp->p_offset + pp->p_size - 1, in xbsd_print_disklabel()
561 (long) pp->p_size in xbsd_print_disklabel()
565 if ((unsigned) pp->p_fstype < ARRAY_SIZE(xbsd_fstypes)-1) in xbsd_print_disklabel()
566 printf("%8.8s", xbsd_fstypes[pp->p_fstype]); in xbsd_print_disklabel()
568 printf("%8x", pp->p_fstype); in xbsd_print_disklabel()
570 switch (pp->p_fstype) { in xbsd_print_disklabel()
573 (long) pp->p_fsize, (long) pp->p_fsize * pp->p_frag, ""); in xbsd_print_disklabel()
577 (long) pp->p_fsize, (long) pp->p_fsize * pp->p_frag, pp->p_cpg); in xbsd_print_disklabel()
854 struct xbsd_partition *pp; in xbsd_initlabel() local
893 pp = &d->d_partitions[2]; /* Partition C should be NetBSD partition */ in xbsd_initlabel()
895 pp->p_offset = get_start_sect(p); in xbsd_initlabel()
896 pp->p_size = get_nr_sects(p); in xbsd_initlabel()
897 pp->p_fstype = BSD_FS_UNUSED; in xbsd_initlabel()
898 pp = &d->d_partitions[3]; /* Partition D should be whole disk */ in xbsd_initlabel()
900 pp->p_offset = 0; in xbsd_initlabel()
901 pp->p_size = d->d_secperunit; in xbsd_initlabel()
902 pp->p_fstype = BSD_FS_UNUSED; in xbsd_initlabel()
905 pp = &d->d_partitions[2]; /* Partition C should be the whole disk */ in xbsd_initlabel()
906 pp->p_offset = 0; in xbsd_initlabel()
907 pp->p_size = d->d_secperunit; in xbsd_initlabel()
908 pp->p_fstype = BSD_FS_UNUSED; in xbsd_initlabel()