Lines Matching refs:l
278 struct bsd_disklabel *l; in parse_bsd() local
282 l = read_part_sector(state, offset + 1, §); in parse_bsd()
283 if (!l) in parse_bsd()
285 if (le32_to_cpu(l->d_magic) != BSD_DISKMAGIC) { in parse_bsd()
293 if (le16_to_cpu(l->d_npartitions) < max_partitions) in parse_bsd()
294 max_partitions = le16_to_cpu(l->d_npartitions); in parse_bsd()
295 for (p = l->d_partitions; p - l->d_partitions < max_partitions; p++) { in parse_bsd()
306 le32_to_cpu(l->d_partitions[2].p_offset) == 0) in parse_bsd()
318 if (le16_to_cpu(l->d_npartitions) > max_partitions) { in parse_bsd()
320 le16_to_cpu(l->d_npartitions) - max_partitions); in parse_bsd()
361 struct unixware_disklabel *l; in parse_unixware() local
364 l = read_part_sector(state, offset + 29, §); in parse_unixware()
365 if (!l) in parse_unixware()
367 if (le32_to_cpu(l->d_magic) != UNIXWARE_DISKMAGIC || in parse_unixware()
368 le32_to_cpu(l->vtoc.v_magic) != UNIXWARE_DISKMAGIC2) { in parse_unixware()
378 p = &l->vtoc.v_slice[1]; in parse_unixware()
380 while (p - &l->vtoc.v_slice[0] < UNIXWARE_NUMSLICE) { in parse_unixware()