Lines Matching refs:state
265 static bool ldm_validate_privheads(struct parsed_partitions *state, in ldm_validate_privheads() argument
276 BUG_ON (!state || !ph1); in ldm_validate_privheads()
290 data = read_part_sector(state, ph[0]->config_start + off[i], in ldm_validate_privheads()
307 num_sects = get_capacity(state->disk); in ldm_validate_privheads()
353 static bool ldm_validate_tocblocks(struct parsed_partitions *state, in ldm_validate_tocblocks() argument
364 BUG_ON(!state || !ldb); in ldm_validate_tocblocks()
381 data = read_part_sector(state, base + off[i], §); in ldm_validate_tocblocks()
427 static bool ldm_validate_vmdb(struct parsed_partitions *state, in ldm_validate_vmdb() argument
436 BUG_ON (!state || !ldb); in ldm_validate_vmdb()
441 data = read_part_sector(state, base + OFF_VMDB, §); in ldm_validate_vmdb()
492 static bool ldm_validate_partition_table(struct parsed_partitions *state) in ldm_validate_partition_table() argument
500 BUG_ON(!state); in ldm_validate_partition_table()
502 data = read_part_sector(state, 0, §); in ldm_validate_partition_table()
750 ldm_get_vstr (buffer + 0x18 + r_name, comp->state, in ldm_parse_cmp3()
751 sizeof (comp->state)); in ldm_parse_cmp3()
1352 static bool ldm_get_vblks(struct parsed_partitions *state, unsigned long base, in ldm_get_vblks() argument
1361 BUG_ON(!state || !ldb); in ldm_get_vblks()
1369 data = read_part_sector(state, base + OFF_VMDB + s, §); in ldm_get_vblks()
1440 int ldm_partition(struct parsed_partitions *state) in ldm_partition() argument
1446 BUG_ON(!state); in ldm_partition()
1449 if (!ldm_validate_partition_table(state)) in ldm_partition()
1459 if (!ldm_validate_privheads(state, &ldb->ph)) in ldm_partition()
1466 if (!ldm_validate_tocblocks(state, base, ldb) || in ldm_partition()
1467 !ldm_validate_vmdb(state, base, ldb)) in ldm_partition()
1477 if (!ldm_get_vblks(state, base, ldb)) { in ldm_partition()
1483 if (ldm_create_data_partitions(state, ldb)) { in ldm_partition()