Lines Matching refs:state
279 static bool ldm_validate_privheads(struct parsed_partitions *state, in ldm_validate_privheads() argument
290 BUG_ON (!state || !ph1); in ldm_validate_privheads()
304 data = read_part_sector(state, ph[0]->config_start + off[i], in ldm_validate_privheads()
321 num_sects = state->bdev->bd_inode->i_size >> 9; in ldm_validate_privheads()
367 static bool ldm_validate_tocblocks(struct parsed_partitions *state, in ldm_validate_tocblocks() argument
378 BUG_ON(!state || !ldb); in ldm_validate_tocblocks()
395 data = read_part_sector(state, base + off[i], §); in ldm_validate_tocblocks()
441 static bool ldm_validate_vmdb(struct parsed_partitions *state, in ldm_validate_vmdb() argument
450 BUG_ON (!state || !ldb); in ldm_validate_vmdb()
455 data = read_part_sector(state, base + OFF_VMDB, §); in ldm_validate_vmdb()
506 static bool ldm_validate_partition_table(struct parsed_partitions *state) in ldm_validate_partition_table() argument
514 BUG_ON(!state); in ldm_validate_partition_table()
516 data = read_part_sector(state, 0, §); in ldm_validate_partition_table()
764 ldm_get_vstr (buffer + 0x18 + r_name, comp->state, in ldm_parse_cmp3()
765 sizeof (comp->state)); in ldm_parse_cmp3()
1369 static bool ldm_get_vblks(struct parsed_partitions *state, unsigned long base, in ldm_get_vblks() argument
1378 BUG_ON(!state || !ldb); in ldm_get_vblks()
1386 data = read_part_sector(state, base + OFF_VMDB + s, §); in ldm_get_vblks()
1457 int ldm_partition(struct parsed_partitions *state) in ldm_partition() argument
1463 BUG_ON(!state); in ldm_partition()
1466 if (!ldm_validate_partition_table(state)) in ldm_partition()
1476 if (!ldm_validate_privheads(state, &ldb->ph)) in ldm_partition()
1483 if (!ldm_validate_tocblocks(state, base, ldb) || in ldm_partition()
1484 !ldm_validate_vmdb(state, base, ldb)) in ldm_partition()
1494 if (!ldm_get_vblks(state, base, ldb)) { in ldm_partition()
1500 if (ldm_create_data_partitions(state, ldb)) { in ldm_partition()