Lines Matching refs:dl

684 	struct	disklabel *dl;  in raattach()  local
711 dl = rx->ra_disk.dk_label; in raattach()
713 dl->d_secsize = DEV_BSIZE; in raattach()
714 dl->d_nsectors = mp->mscp_guse.guse_nspt; in raattach()
715 dl->d_ntracks = mp->mscp_guse.guse_ngpc * mp->mscp_guse.guse_group; in raattach()
716 dl->d_secpercyl = dl->d_nsectors * dl->d_ntracks; in raattach()
739 struct disklabel *dl; in ra_set_geometry() local
742 dl = ra->ra_disk.dk_label; in ra_set_geometry()
746 dg->dg_secsize = dl->d_secsize; in ra_set_geometry()
747 dg->dg_nsectors = dl->d_nsectors; in ra_set_geometry()
748 dg->dg_ntracks = dl->d_ntracks; in ra_set_geometry()
750 dg->dg_ncylinders = dl->d_ncylinders; in ra_set_geometry()
751 dg->dg_secperunit = dl->d_secperunit; in ra_set_geometry()
1005 struct disklabel *dl; in rronline_cb() local
1016 dl = ra->ra_disk.dk_label; in rronline_cb()
1017 dl->d_secperunit = (daddr_t)mp->mscp_onle.onle_unitsize; in rronline_cb()
1019 if (dl->d_secpercyl) { in rronline_cb()
1020 dl->d_ncylinders = dl->d_secperunit/dl->d_secpercyl; in rronline_cb()
1021 dl->d_type = DKTYPE_MSCP; in rronline_cb()
1022 dl->d_rpm = 3600; in rronline_cb()
1024 dl->d_type = DKTYPE_FLOPPY; in rronline_cb()
1025 dl->d_rpm = 300; in rronline_cb()
1027 rrmakelabel(dl, ra->ra_mediaid); in rronline_cb()
1032 rrmakelabel(struct disklabel *dl, long type) in rrmakelabel() argument
1036 dl->d_bbsize = BBSIZE; in rrmakelabel()
1037 dl->d_sbsize = SBLOCKSIZE; in rrmakelabel()
1040 dl->d_typename[p++] = MSCP_MID_CHAR(2, type); in rrmakelabel()
1041 dl->d_typename[p++] = MSCP_MID_CHAR(1, type); in rrmakelabel()
1043 dl->d_typename[p++] = MSCP_MID_CHAR(0, type); in rrmakelabel()
1046 dl->d_typename[p++] = '1'; in rrmakelabel()
1050 dl->d_typename[p++] = (n / 10) + '0'; in rrmakelabel()
1053 dl->d_typename[p++] = n + '0'; in rrmakelabel()
1054 dl->d_typename[p] = 0; in rrmakelabel()
1055 dl->d_npartitions = MAXPARTITIONS; in rrmakelabel()
1056 dl->d_partitions[0].p_size = dl->d_partitions[2].p_size = in rrmakelabel()
1057 dl->d_secperunit; in rrmakelabel()
1058 dl->d_partitions[0].p_offset = dl->d_partitions[2].p_offset = 0; in rrmakelabel()
1059 dl->d_interleave = dl->d_headswitch = 1; in rrmakelabel()
1060 dl->d_magic = dl->d_magic2 = DISKMAGIC; in rrmakelabel()
1061 dl->d_checksum = dkcksum(dl); in rrmakelabel()
1162 struct disklabel *dl; in ra_putonline() local
1168 dl = ra->ra_disk.dk_label; in ra_putonline()
1174 rastrategy, dl, NULL)) == NULL) { in ra_putonline()
1180 dl->d_partitions[0].p_offset = 0; in ra_putonline()
1181 dl->d_partitions[0].p_size = dl->d_secperunit; in ra_putonline()
1182 dl->d_partitions[0].p_fstype = FS_ISO9660; in ra_putonline()
1189 printf(": size %d sectors\n", dl->d_secperunit); in ra_putonline()