Lines Matching refs:dlp
874 struct disklabel *lp, dlp; in getdiskinfo() local
894 dlp.d_secsize = 512; in getdiskinfo()
895 dlp.d_nsectors = 63; in getdiskinfo()
896 dlp.d_ntracks = 255; in getdiskinfo()
897 dlp.d_secperunit = ms / dlp.d_secsize; in getdiskinfo()
898 lp = &dlp; in getdiskinfo()
900 dlp.d_secsize = 128 << type.secsize; in getdiskinfo()
901 dlp.d_nsectors = type.sectrac; in getdiskinfo()
902 dlp.d_ntracks = type.heads; in getdiskinfo()
903 dlp.d_secperunit = ms / dlp.d_secsize; in getdiskinfo()
904 lp = &dlp; in getdiskinfo()
911 dlp.d_secsize = bpb->bpbBytesPerSec; in getdiskinfo()
913 &dlp.d_secsize) == -1) in getdiskinfo()
916 dlp.d_secperunit = ms / dlp.d_secsize; in getdiskinfo()
919 &dlp.d_nsectors) == -1) { in getdiskinfo()
921 dlp.d_nsectors = 63; in getdiskinfo()
924 ioctl(fd, DIOCGFWHEADS, &dlp.d_ntracks) == -1) { in getdiskinfo()
926 if (dlp.d_secperunit <= 63*1*1024) in getdiskinfo()
927 dlp.d_ntracks = 1; in getdiskinfo()
928 else if (dlp.d_secperunit <= 63*16*1024) in getdiskinfo()
929 dlp.d_ntracks = 16; in getdiskinfo()
931 dlp.d_ntracks = 255; in getdiskinfo()
934 hs = (ms / dlp.d_secsize) - dlp.d_secperunit; in getdiskinfo()
935 lp = &dlp; in getdiskinfo()