Lines Matching refs:vpart
758 struct extpartition *vpart; in vtoc_to_label() local
852 vpart = vtoc->v_part; in vtoc_to_label()
856 for (i = 0; i < NDKMAP; i++, lmap++, vpart++) { in vtoc_to_label()
858 if ((vpart->p_start % nblks) != 0 || in vtoc_to_label()
859 (vpart->p_size % nblks) != 0) { in vtoc_to_label()
864 lmap->dkl_cylno = (blkaddr32_t)(vpart->p_start / nblks); in vtoc_to_label()
865 lmap->dkl_nblk = (blkaddr32_t)vpart->p_size; in vtoc_to_label()
868 lmap->p_start = (blkaddr32_t)vpart->p_start; in vtoc_to_label()
869 lmap->p_size = (blkaddr32_t)vpart->p_size; in vtoc_to_label()
906 struct extpartition *vpart; in label_to_vtoc() local
917 vpart = vtoc->v_part; in label_to_vtoc()
918 for (i = 0; i < V_NUMPAR; i++, vpart++) { in label_to_vtoc()
919 vpart->p_tag = default_vtoc_map[i].p_tag; in label_to_vtoc()
920 vpart->p_flag = default_vtoc_map[i].p_flag; in label_to_vtoc()
925 vpart = vtoc->v_part; in label_to_vtoc()
927 for (i = 0; i < V_NUMPAR; i++, vpart++, lpart++) { in label_to_vtoc()
928 vpart->p_tag = lpart->p_tag; in label_to_vtoc()
929 vpart->p_flag = lpart->p_flag; in label_to_vtoc()
932 vpart->p_start = (diskaddr_t)lpart->p_start; in label_to_vtoc()
933 vpart->p_size = (diskaddr_t)lpart->p_size; in label_to_vtoc()
972 vpart = vtoc->v_part; in label_to_vtoc()
974 for (i = 0; i < V_NUMPAR; i++, vpart++, lmap++) { in label_to_vtoc()
975 vpart->p_start = (diskaddr_t)(lmap->dkl_cylno * nblks); in label_to_vtoc()
976 vpart->p_size = (diskaddr_t)lmap->dkl_nblk; in label_to_vtoc()