Lines Matching defs:label
71 union label_t *label)
80 /* There a three places where we may find a valid label:
105 memcpy(label, data, sizeof(*label));
114 strncpy(type, label->vol.vollbl, 4);
115 strncpy(name, label->vol.volid, 6);
117 strncpy(type, label->lnx.vollbl, 4);
118 strncpy(name, label->lnx.volid, 6);
128 memset(label, 0, sizeof(*label));
137 union label_t *label)
151 * get start of VTOC from the disk label and then search for format1
155 blk = cchhb2blk(&label->vol.vtoc, geo) + 1;
199 union label_t *label,
211 if (label->lnx.ldl_version == 0xf2) {
212 size = label->lnx.formatted_blocks * secperblk;
235 /* first and only partition starts in the first block after the label */
246 union label_t *label,
256 blocksize = label->cms.block_size;
258 if (label->cms.disk_offset != 0) {
262 offset = label->cms.disk_offset * secperblk;
263 size = (label->cms.block_count - 1) * secperblk;
270 * and the DIAG discipline is used, then the CMS label is found
278 size = label->cms.block_count * secperblk;
303 union label_t *label;
321 label = kmalloc(sizeof(union label_t), GFP_KERNEL);
322 if (label == NULL)
334 label)) {
337 label);
340 label, labelsect, nr_sectors,
344 label, labelsect);
351 * label. If it has the LDL format, then we simply define a
352 * partition as if it had an LNX1 label.
366 kfree(label);