Lines Matching +full:state +full:- +full:labels
1 // SPDX-License-Identifier: GPL-2.0
36 int sgi_partition(struct parsed_partitions *state) in sgi_partition() argument
47 label = read_part_sector(state, 0, §); in sgi_partition()
49 return -1; in sgi_partition()
50 p = &label->partitions[0]; in sgi_partition()
51 magic = label->magic_mushroom; in sgi_partition()
54 state->disk->disk_name, be32_to_cpu(magic));*/ in sgi_partition()
58 ui = ((__be32 *) (label + 1)) - 1; in sgi_partition()
60 cs = *ui--; in sgi_partition()
65 state->disk->disk_name); in sgi_partition()
69 /* All SGI disk labels have 16 partitions, disks under Linux only in sgi_partition()
75 blocks = be32_to_cpu(p->num_blocks); in sgi_partition()
76 start = be32_to_cpu(p->first_block); in sgi_partition()
78 put_partition(state, slot, start, blocks); in sgi_partition()
79 if (be32_to_cpu(p->type) == LINUX_RAID_PARTITION) in sgi_partition()
80 state->parts[slot].flags = ADDPART_FLAG_RAID; in sgi_partition()
84 strlcat(state->pp_buf, "\n", PAGE_SIZE); in sgi_partition()