Home | History | Annotate | Download | only in toolbox

Lines Matching defs:dlp

831     struct disklabel *lp, dlp;
851 dlp.d_secsize = 512;
852 dlp.d_nsectors = 63;
853 dlp.d_ntracks = 255;
854 dlp.d_secperunit = ms / dlp.d_secsize;
855 lp = &dlp;
857 dlp.d_secsize = 128 << type.secsize;
858 dlp.d_nsectors = type.sectrac;
859 dlp.d_ntracks = type.heads;
860 dlp.d_secperunit = ms / dlp.d_secsize;
861 lp = &dlp;
867 if (ioctl(fd, DIOCGDINFO, &dlp) == -1) {
868 if (bpb->bps == 0 && ioctl(fd, DIOCGSECTORSIZE, &dlp.d_secsize) == -1)
872 dlp.d_secperunit = ms / dlp.d_secsize;
874 if (bpb->spt == 0 && ioctl(fd, DIOCGFWSECTORS, &dlp.d_nsectors) == -1) {
876 dlp.d_nsectors = 63;
878 if (bpb->hds == 0 && ioctl(fd, DIOCGFWHEADS, &dlp.d_ntracks) == -1) {
880 if (dlp.d_secperunit <= 63*1*1024)
881 dlp.d_ntracks = 1;
882 else if (dlp.d_secperunit <= 63*16*1024)
883 dlp.d_ntracks = 16;
885 dlp.d_ntracks = 255;
889 hs = (ms / dlp.d_secsize) - dlp.d_secperunit;
890 lp = &dlp;