Lines Matching defs:ms
69 g_sunlabel_modify(struct g_geom *gp, struct g_sunlabel_softc *ms, u_char *sec0)
88 ms->sectorsize,
99 ms->sectorsize,
102 ms->nalt = sl.sl_acylinders;
103 ms->nheads = sl.sl_ntracks;
104 ms->nsects = sl.sl_nsectors;
111 MD5Update(&md5sum, sec0, ms->sectorsize);
112 MD5Final(ms->labelsum, &md5sum);
124 struct g_sunlabel_softc *ms;
132 ms = gsp->softc;
142 error = g_sunlabel_modify(gp, ms, p);
154 struct g_sunlabel_softc *ms;
157 ms = gsp->softc;
161 ms->nsects, ms->nheads, ms->nalt);
167 struct g_sunlabel_softc *ms;
178 hp->error = g_sunlabel_modify(hp->gp, hp->ms, hp->label);
208 h0h0.ms = gsp->softc;
263 struct g_sunlabel_softc *ms;
274 gp = g_slice_new(mp, 8, pp, &cp, &ms, sizeof *ms, g_sunlabel_start);
279 ms->sectorsize = cp->provider->sectorsize;
280 if (ms->sectorsize < 512)
283 buf = g_read_data(cp, 0, ms->sectorsize, NULL);
293 MD5Update(&md5sum, buf, ms->sectorsize);
294 MD5Final(ms->labelsum, &md5sum);
297 if (!error && !bcmp(ms->labelsum, hash, sizeof(hash))) {
302 g_sunlabel_modify(gp, ms, buf);