Lines Matching refs:base
368 unsigned long base, struct ldmdb *ldb) in ldm_validate_tocblocks() argument
395 data = read_part_sector(state, base + off[i], §); in ldm_validate_tocblocks()
442 unsigned long base, struct ldmdb *ldb) in ldm_validate_vmdb() argument
455 data = read_part_sector(state, base + OFF_VMDB, §); in ldm_validate_vmdb()
635 static int ldm_relative(const u8 *buffer, int buflen, int base, int offset) in ldm_relative() argument
638 base += offset; in ldm_relative()
639 if (!buffer || offset < 0 || base > buflen) { in ldm_relative()
644 if (base > buflen) in ldm_relative()
645 ldm_error("base (%d) > buflen (%d)", base, buflen); in ldm_relative()
648 if (base + buffer[base] >= buflen) { in ldm_relative()
649 ldm_error("base (%d) + buffer[base] (%d) >= buflen (%d)", base, in ldm_relative()
650 buffer[base], buflen); in ldm_relative()
653 return buffer[base] + offset + 1; in ldm_relative()
1369 static bool ldm_get_vblks(struct parsed_partitions *state, unsigned long base, in ldm_get_vblks() argument
1386 data = read_part_sector(state, base + OFF_VMDB + s, §); in ldm_get_vblks()
1460 unsigned long base; in ldm_partition() local
1480 base = ldb->ph.config_start; 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()